Body: <p>I am trying to create a way for our developers to be able to build deb packages from their Windows machines. We would like to reuse what we have for *nix so I've written a few batch scripts which are failing. </p>
  
  <p>So we are using Ubuntu as our base image and building upon that. Below is the error I am getting when trying to build. I've removed some company details but is still clear</p>
  
  <pre><code>dpkg-source: info: building &lt;package&gt; in &lt;package&gt;.tar.gz
  md5sum: &lt;package&gt;.tar.gz: Invalid argument
  dpkg-source: error: md5sum &lt;package&gt;.tar.gz gave error exit status 1
  dpkg-buildpackage: error: dpkg-source -b &lt;package&gt; gave error exit status 1
  debuild: fatal error at line 1364:
  dpkg-buildpackage -rfakeroot -D -us -uc failed
  </code></pre>
  
  <p>Command used to start container <code>docker run --rm  -v %cd%:/target debuild-%1 %*</code></p>
  
  <p>Commands run inside entrypoint for container</p>
  
  <pre><code>mk-build-deps --install --remove --tool "apt-get --no-install-recommends --yes"
  eval "debuild $DOCKER_DEBUILD_OPTS -us -uc --lintian-opts --allow-root"
  </code></pre>
  
  <p>Now this all works on Linux and Mac (with the docker run command changed to bash clearly). </p>
  
  <p>What are some possible reasons this is happening?</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-10-16T07:41:44.583Z
Comments: Can you check whether the volume is actually mounted?
Comments: Bruce Becker
Comments: CC BY-SA 4.0
Comments: 2019-10-16T12:11:52.683Z
Comments: @BruceBecker Yes the volume is mounted, I am able to have it output a single file to the local Windows file system but not all required ones.
Comments: joshk132
Tags: <docker><linux><windows><builds>
Title: Issue building deb package using Docker/Windows
UserDisplayName: joshk132
ThreadText: # Issue building deb package using Docker/Windows
  
  (Asked by: username_0 on 2019-10-15)
  
  I am trying to create a way for our developers to be able to build deb packages from their Windows machines. We would like to reuse what we have for \*nix so I've written a few batch scripts which are failing.
  
  So we are using Ubuntu as our base image and building upon that. Below is the error I am getting when trying to build. I've removed some company details but is still clear
  
  ```
  dpkg-source: info: building <package> in <package>.tar.gz
  md5sum: <package>.tar.gz: Invalid argument
  dpkg-source: error: md5sum <package>.tar.gz gave error exit status 1
  dpkg-buildpackage: error: dpkg-source -b <package> gave error exit status 1
  debuild: fatal error at line 1364:
  dpkg-buildpackage -rfakeroot -D -us -uc failed
  
  ```
  
  Command used to start container `docker run --rm -v %cd%:/target debuild-%1 %*`
  
  Commands run inside entrypoint for container
  
  ```
  mk-build-deps --install --remove --tool "apt-get --no-install-recommends --yes"
  eval "debuild $DOCKER_DEBUILD_OPTS -us -uc --lintian-opts --allow-root"
  
  ```
  
  Now this all works on Linux and Mac (with the docker run command changed to bash clearly).
  
  What are some possible reasons this is happening?
  
  **Tags:** docker, linux, windows, builds
  
  > **Comments:**
  > **username_1**: Can you check whether the volume is actually mounted?  
  > **username_0**: @username_1 Yes the volume is mounted, I am able to have it output a single file to the local Windows file system but not all required ones.  
  
  ---
  
  ## 0 answers
  
  