Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
add missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
whummer committed Jul 17, 2019
1 parent 6df1f03 commit b7540ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions localstack/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
# path to local Docker UNIX domain socket
DOCKER_SOCK = os.environ.get('DOCKER_SOCK', '').strip() or '/var/run/docker.sock'

# additional flags to pass to "docker run" when starting the stack in Docker
DOCKER_FLAGS = os.environ.get('DOCKER_FLAGS', '').strip()

# command used to run Docker containers (e.g., set to "sudo docker" to run as sudo)
DOCKER_CMD = os.environ.get('DOCKER_CMD', '').strip() or 'docker'

Expand Down
6 changes: 3 additions & 3 deletions localstack/services/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ def start_infra_in_docker():
'-v "%s:/tmp/localstack" -v "%s:%s" ' +
'-e DOCKER_HOST="unix://%s" ' +
'-e HOST_TMP_FOLDER="%s" "%s" %s') % (
config.DOCKER_CMD, interactive, entrypoint, env_str, user_flags, plugin_run_params, port_mappings,
container_name, data_dir_mount, config.TMP_FOLDER, config.DOCKER_SOCK, config.DOCKER_SOCK,
config.DOCKER_SOCK, config.HOST_TMP_FOLDER, image_name, cmd
config.DOCKER_CMD, interactive, entrypoint, env_str, user_flags, plugin_run_params,
container_name, port_mappings, data_dir_mount, config.TMP_FOLDER, config.DOCKER_SOCK,
config.DOCKER_SOCK, config.DOCKER_SOCK, config.HOST_TMP_FOLDER, image_name, cmd
)

mkdir(config.TMP_FOLDER)
Expand Down

0 comments on commit b7540ed

Please sign in to comment.