Skip to content

Commit

Permalink
Fix(Installation): Adjust the data directory's permissions to 777 to …
Browse files Browse the repository at this point in the history
…allow access for users in the container. (#8876)

* Fix(Installation): Update docker-compose.yaml in the installation example 'docker-compose-file' to specify the container execution user as 'root' to ensure the mounted volume can be accessed.

* Fix(Installation): Adjust the data directory's permissions to 777 to allow access for other users.

* Fix(Installation): Add comment in 'prepare-directories.sh'

* Supplement the changelog

* update the type to 'NON_USER_FACING' in the changelog file 'installation-fix.yaml'

---------

Co-authored-by: Sam Heilbron <SamHeilbron@gmail.com>
  • Loading branch information
orange-guo and sam-heilbron committed Nov 30, 2023
1 parent bf73565 commit a2e18d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/v1.16.0-beta27/installation-fix.yaml
@@ -0,0 +1,4 @@
changelog:
- type: NON_USER_FACING
description: >-
Adjust the permissions of the 'data' directory in the 'docker-compose-file' setup to 777 to grant access to users within the container.
3 changes: 3 additions & 0 deletions install/docker-compose-file/prepare-directories.sh
Expand Up @@ -11,4 +11,7 @@ mkdir -p ./data/artifact/artifacts/gloo-system
mkdir -p ./data/config/{authconfigs,gateways,graphqlapis,proxies,ratelimitconfigs,routeoptions,routetables,upstreamgroups,upstreams,virtualhostoptions,virtualservices,httpgateways,tcpgateways}/gloo-system
mkdir -p ./data/secret/secrets/{default,gloo-system}

# Make sure the user in the container can read/write to the data folder
chmod -R 777 ./data

echo "Done"

0 comments on commit a2e18d6

Please sign in to comment.