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

Commit b7540ed

Browse files
committed
add missing variable
1 parent 6df1f03 commit b7540ed

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

localstack/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
# path to local Docker UNIX domain socket
5757
DOCKER_SOCK = os.environ.get('DOCKER_SOCK', '').strip() or '/var/run/docker.sock'
5858

59+
# additional flags to pass to "docker run" when starting the stack in Docker
60+
DOCKER_FLAGS = os.environ.get('DOCKER_FLAGS', '').strip()
61+
5962
# command used to run Docker containers (e.g., set to "sudo docker" to run as sudo)
6063
DOCKER_CMD = os.environ.get('DOCKER_CMD', '').strip() or 'docker'
6164

localstack/services/infra.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ def start_infra_in_docker():
508508
'-v "%s:/tmp/localstack" -v "%s:%s" ' +
509509
'-e DOCKER_HOST="unix://%s" ' +
510510
'-e HOST_TMP_FOLDER="%s" "%s" %s') % (
511-
config.DOCKER_CMD, interactive, entrypoint, env_str, user_flags, plugin_run_params, port_mappings,
512-
container_name, data_dir_mount, config.TMP_FOLDER, config.DOCKER_SOCK, config.DOCKER_SOCK,
513-
config.DOCKER_SOCK, config.HOST_TMP_FOLDER, image_name, cmd
511+
config.DOCKER_CMD, interactive, entrypoint, env_str, user_flags, plugin_run_params,
512+
container_name, port_mappings, data_dir_mount, config.TMP_FOLDER, config.DOCKER_SOCK,
513+
config.DOCKER_SOCK, config.DOCKER_SOCK, config.HOST_TMP_FOLDER, image_name, cmd
514514
)
515515

516516
mkdir(config.TMP_FOLDER)

0 commit comments

Comments
 (0)