Skip to content

Commit

Permalink
Rename UID and GID env variables in the acceptance compose scripts
Browse files Browse the repository at this point in the history
with UID and GID, I'm getting the following error in macos, renamed
as GSUID and GSGID.

```
UID: readonly variable
```
  • Loading branch information
groldan committed Oct 25, 2024
1 parent ef2e8c9 commit 4aec64e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions compose/acceptance_datadir
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#/bin/bash

UID=$(id -u)
GID=$(id -g)
GSUID=$(id -u)
GSGID=$(id -g)

GS_USER=$UID:$GID COMPOSE_PROJECT_NAME=gscloud-acceptance-datadir \
GS_USER=$GSUID:$GSGID COMPOSE_PROJECT_NAME=gscloud-acceptance-datadir \
docker compose \
-f compose.yml \
-f catalog-datadir.yml \
Expand Down
2 changes: 1 addition & 1 deletion compose/catalog-datadir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
init-datadir:
image: alpine:3.18.4
user: ${GS_USER}
command: sh -c "cd /opt/app/data_directory; if [ ! -f global.xml ]; then tar xfvz /tmp/datadir.tgz; fi"
command: sh -c "cd /opt/app/data_directory; if [ ! -f global.xml ]; then tar xvzf /tmp/datadir.tgz; fi"
volumes:
- datadir:/opt/app/data_directory
- ./catalog-datadir.tgz:/tmp/datadir.tgz
Expand Down
2 changes: 1 addition & 1 deletion config
Submodule config updated 1 files
+2 −0 geoserver.yml

0 comments on commit 4aec64e

Please sign in to comment.