Skip to content

Commit

Permalink
fix: adjust BASE_DOCKER_PATH environment var for production launch [#1]
Browse files Browse the repository at this point in the history
  • Loading branch information
d3p1 committed May 19, 2024
1 parent ea51237 commit cd3fae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/setup/bin/bootstrap/production/configure-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ _configure_docker_rootless_mode() {
##
# @note Export environment variable required for
# Docker Compose `traefik` service
# @note The `$DOCKER_HOST` variable is created by the rootless mode script
# @note The `$DOCKER_PATH` variable is created by the rootless mode script
##
BASE_DOCKER_PATH=$DOCKER_HOST
BASE_DOCKER_PATH=$DOCKER_PATH
export BASE_DOCKER_PATH
}

Expand Down
3 changes: 2 additions & 1 deletion src/setup/bin/lib/docker/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ configure_docker_rootless_mode() {
# communicate with it
##
PATH="/usr/bin:$PATH"
DOCKER_HOST="unix://$XDG_RUNTIME_DIR/docker.sock"
DOCKER_PATH="$XDG_RUNTIME_DIR/docker.sock"
DOCKER_HOST="unix://$DOCKER_PATH"
export PATH
export DOCKER_HOST

Expand Down

0 comments on commit cd3fae4

Please sign in to comment.