Compare commits
No commits in common. "8be2a3be33da71f7f1491469969c6b9a3379259b" and "32d82561e0c8b3a25109906fb140cbd1b2141dd7" have entirely different histories.
8be2a3be33
...
32d82561e0
|
@ -1,5 +1,7 @@
|
|||
FROM nixos/nix
|
||||
|
||||
RUN mv /nix/store/ /nix/store-upstream/
|
||||
|
||||
# installed from alpine to not pollute nix store
|
||||
RUN apk add --no-cache \
|
||||
git \
|
||||
|
@ -12,6 +14,6 @@ RUN wget -O- https://github.com/drone-runners/drone-runner-exec/releases/downloa
|
|||
COPY entrypoint.sh /
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENV DRONE_RUNNER_ENVIRON=NIX_PATH:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs,NIX_STORE:/nix/store-ci
|
||||
ENV DRONE_RUNNER_ENVIRON=NIX_PATH:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
echo "Bootstrapping initial nix store…"
|
||||
mkdir -p /nix/store-ci
|
||||
chmod 1775 /nix/store-ci
|
||||
chgrp nixbld /nix/store-ci
|
||||
rsync -a /nix/store/./ /nix/store-ci
|
||||
NIX_STORE=/nix/store-ci nix-daemon &
|
||||
echo "Restoring upstream nix store…"
|
||||
mkdir -p /nix/store
|
||||
chmod 1775 /nix/store
|
||||
chgrp nixbld /nix/store
|
||||
rsync -a /nix/store-upstream/./ /nix/store
|
||||
nix-daemon &
|
||||
exec su-exec nobody:nogroup /usr/local/bin/drone-runner-exec
|
||||
|
|
Reference in New Issue