Skip to content

Commit ec8aeb7

Browse files
committed
Or this
1 parent 8e8f87f commit ec8aeb7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ COPY src/ src/
8686
COPY build/.env build/.env
8787

8888
# Create the user, with a home directory
89-
RUN groupadd --gid 1002 sourcegraph && \
90-
useradd --uid 1001 --gid sourcegraph --create-home --home-dir /home/sourcegraph sourcegraph
89+
RUN groupadd sourcegraph --gid 10002 && \
90+
useradd sourcegraph --uid 10001 --gid sourcegraph --create-home --home-dir /home/sourcegraph
9191

9292
# Give ownership of the whole /sg dir and all its contents to the new user
9393
RUN chown -R sourcegraph:sourcegraph /sg

build/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ services:
2525
# image: ghcr.io/sourcegraph/repo-converter:HEAD
2626
image: repo-converter:build
2727
restart: never
28-
user: "1000:1000"
29-
userns_mode: "keep-id:uid=1000,gid=1000"
28+
user: "10001:10002"
29+
userns_mode: "keep-id:uid=10001,gid=10002"
3030
volumes:
3131
- ../dev/toprc:/root/.config/procps/toprc:z # `top` config file
3232
- ../config/repos-to-convert.yaml:/sg/repos-to-convert.yaml:ro

0 commit comments

Comments
 (0)