Skip to content

Commit 8f5b07b

Browse files
committed
puid guid
1 parent f9402f7 commit 8f5b07b

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/test-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v4
88
- name: compose up
99
run: |-
10-
UID="$(id -u)" GID="$(id -g)" docker compose -f docker-compose.unit.yml up -d --wait --build
10+
PUID="$(id -u)" PGID="$(id -g)" docker compose -f docker-compose.unit.yml up -d --wait --build
1111
- name: show logs
1212
if: failure()
1313
run: |-

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v4
88
- name: compose up
99
run: |-
10-
UID="$(id -u)" GID="$(id -g)" docker compose up -d --wait --build
10+
PUID="$(id -u)" PGID="$(id -g)" docker compose up -d --wait --build
1111
- name: show logs
1212
if: failure()
1313
run: |-

docker-compose.unit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ services:
33
rz:
44
build:
55
context: .
6+
args:
7+
PUID: ${PUID}
8+
PGID: ${PGID}
69
dockerfile: docker/unit/Dockerfile
710
environment:
811
CHROME_HOSTNAME: chrome # Point to the chrome container for testing

docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ services:
2626
build:
2727
context: .
2828
args:
29-
PUID: ${UID}
30-
PGID: ${GID}
29+
PUID: ${PUID}
30+
PGID: ${PGID}
3131
platform: linux/amd64
3232
command: bundle exec sidekiq -C config/sidekiq.yml
3333
environment:
@@ -46,9 +46,9 @@ services:
4646
rails:
4747
build:
4848
context: .
49-
args:
50-
PUID: ${UID}
51-
PGID: ${GID}
49+
args::
50+
PUID: ${PUID}
51+
PGID: ${PGID}
5252
platform: linux/amd64
5353
container_name: rails
5454
command: sh -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
@@ -78,9 +78,9 @@ services:
7878
rails_startup:
7979
build:
8080
context: .
81-
args:
82-
PUID: ${UID}
83-
PGID: ${GID}
81+
args::
82+
PUID: ${PUID}
83+
PGID: ${PGID}
8484
platform: linux/amd64
8585
environment:
8686
DATABASE_URL: postgres://postgres:postgres@db

0 commit comments

Comments
 (0)