Chris Lamb wrote:
> Whilst I don't have a _minimal_ Dockerfile, looking at my setup I think
> the "non-standard" things I do are:
> 
>   $ docker \
>     --tty --user=$(id -u) \
>     --group-add=$(id -g) \
>     --volume=/tmp:/tmp \
>     --volume=/home:/home
> 
> .. particularly the last two.
> 

I'm sharing the following simple Dockerfile the resulting container builds the
package without issue on my system. I also tried changing the timezone of the
container from the default "Etc/UTC" to "Etc/GMT", "Europe/London",
"Europe/Zurich" and "Pacific/Aukland" and it didn't make any difference. I also
tried to build in a directory bind-mounted with --volume from the host and the
build also succeeded in that case.

# Dockerfile
FROM debian:unstable

RUN \
  echo "deb-src http://deb.debian.org/debian unstable main" >> 
/etc/apt/sources.list; \
  apt-get update; \
  useradd --create-home --shell /bin/bash user; \
  apt-get build-dep -y bup; \
  apt-get install -y fakeroot; \
  su user -c 'cd; apt-get source bup'

CMD su user -c 'cd ~/bup-0.29; dpkg-buildpackage -uc -us'
# Dockerfile end


> If you can't reproduce, feel feel to close...

Could you try a build on your system with the above Dockerfile?

Cheers,
-- Florian

Attachment: signature.asc
Description: PGP signature

Reply via email to