2

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?

2
  • Can you check whether the volume is actually mounted? Oct 16, 2019 at 7:41
  • @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
    Oct 16, 2019 at 12:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.