diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-06-22 22:57:08 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-06-22 22:57:08 +0200 |
| commit | f9b7c2a14c939d0bb7d1ac2fcca3116e38e37f74 (patch) | |
| tree | cc20775f2d70416ef6414d265b7e1d44cce6fece /docker/integration_test/web/Dockerfile | |
| parent | 9cb8a56b406c46244e936c2f40830d0e89dba785 (diff) | |
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.
Diffstat (limited to 'docker/integration_test/web/Dockerfile')
| -rw-r--r-- | docker/integration_test/web/Dockerfile | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
