<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>

CC BY-SA 4.0
2019-10-16T07:41:44.583Z
Can you check whether the volume is actually mounted?
Bruce Becker
CC BY-SA 4.0
2019-10-16T12:11:52.683Z
@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.
joshk132
<docker><linux><windows><builds>
Issue building deb package using Docker/Windows
joshk132
# 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  in .tar.gz
md5sum: .tar.gz: Invalid argument
dpkg-source: error: md5sum .tar.gz gave error exit status 1
dpkg-buildpackage: error: dpkg-source -b  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**: @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.  

---

## 0 answers

