diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2015-07-16T20·20+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-17T09·06+0200 |
commit | 5845ffdf1354d2acfd4a840dcfd9556742880176 (patch) | |
tree | cafab2747905a4f3534ca9a4a09d28347291f5a6 | |
parent | 467977f20326f704b259157652ee9b7ba2efaa78 (diff) |
Add Dockerfile
-rw-r--r-- | misc/docker/Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/docker/Dockerfile b/misc/docker/Dockerfile new file mode 100644 index 000000000000..342c28eda34d --- /dev/null +++ b/misc/docker/Dockerfile @@ -0,0 +1,23 @@ +FROM busybox + +RUN set -x \ + && wget -O- http://nixos.org/releases/nix/nix-1.9/nix-1.9-x86_64-linux.tar.bz2 | \ + bzcat - | tar xf - \ + && echo "nixbld:x:30000:nixbld1,nixbld10,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9" >> /etc/group \ + && for i in $(seq 1 9); do echo "nixbld$i:x:3000$i:30000:::" >> /etc/passwd; done \ + && sed -i 's/\$HOME\/\.nix-profile\/etc\/ssl\/certs\/ca-bundle\.crt/\$HOME\/\.nix-profile\/etc\/ca-bundle\.crt/g' nix-1.9-x86_64-linux/install \ + && mkdir -m 0755 /nix && USER=root sh nix-1.9-x86_64-linux/install \ + && echo ". /root/.nix-profile/etc/profile.d/nix.sh" >> /etc/profile \ + && rm -r /nix-1.9-x86_64-linux + +ONBUILD ENV \ + ENV=/etc/profile \ + PATH=/root/.nix-profile/bin:/root/.nix-profile/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ + GIT_SSL_CAINFO=/root/.nix-profile/etc/ca-bundle.crt \ + SSL_CERT_FILE=/root/.nix-profile/etc/ca-bundle.crt + +ENV \ + ENV=/etc/profile \ + PATH=/root/.nix-profile/bin:/root/.nix-profile/sbin:/bin:/sbin:/usr/bin:/usr/sbin \ + GIT_SSL_CAINFO=/root/.nix-profile/etc/ca-bundle.crt \ + SSL_CERT_FILE=/root/.nix-profile/etc/ca-bundle.crt |