From f9b7c2a14c939d0bb7d1ac2fcca3116e38e37f74 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 22 Jun 2025 22:57:08 +0200 Subject: Add support for pushing changes to a translation review Finally got around to fixing the pre-receive hook to include quarantined objects so the hook actually can run git commands on the not-yet-accepted commits. As part of that, had to make sure git hook and eyeballs server had the same path to the repo or confusion will appear. --- docker/integration_test/web/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docker/integration_test/web/Dockerfile') diff --git a/docker/integration_test/web/Dockerfile b/docker/integration_test/web/Dockerfile index b9b2ad7..b102d4d 100644 --- a/docker/integration_test/web/Dockerfile +++ b/docker/integration_test/web/Dockerfile @@ -8,19 +8,19 @@ COPY server/target/x86_64-unknown-linux-musl/debug/eyeballs-githook /app/eyeball COPY server/target/debug/eyeballs /app/eyeballs COPY docker/integration_test/web/setup.sh /app/setup.sh -RUN mkdir -p /git/auth /git/repos +RUN mkdir -p /git/auth /srv/git # git image runs as default git user, with uid 1000 gid 1000. # we need the same, but it can't be named git (as package git installs a git user) # so add another user with 1000 gid 1000 and make sure that shared files -# (/git/auth and /git/repos) are owned by that user and not root. +# (/git/auth and /srv/git) are owned by that user and not root. RUN useradd --no-create-home --uid 1000 --user-group -s /usr/bin/nologin alf RUN chown alf:alf /app RUN chown alf:alf /git/auth -RUN chown alf:alf /git/repos +RUN chown alf:alf /srv/git VOLUME /git/auth -VOLUME /git/repos +VOLUME /srv/git USER alf:alf -- cgit v1.2.3-70-g09d2