File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
localstack-core/localstack Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -870,6 +870,9 @@ def populate_edge_configuration(
870
870
or (EXTERNAL_SERVICE_PORTS_START + 50 )
871
871
)
872
872
873
+ # The default container runtime to use
874
+ CONTAINER_RUNTIME = os .environ .get ("CONTAINER_RUNTIME" , "" ).strip () or "docker"
875
+
873
876
# PUBLIC v1: -Xmx512M (example) Currently not supported in new provider but possible via custom entrypoint.
874
877
# Allow passing custom JVM options to Java Lambdas executed in Docker.
875
878
LAMBDA_JAVA_OPTS = os .environ .get ("LAMBDA_JAVA_OPTS" , "" ).strip ()
@@ -979,7 +982,7 @@ def populate_edge_configuration(
979
982
980
983
# PUBLIC: docker (default), kubernetes (pro)
981
984
# Where Lambdas will be executed.
982
- LAMBDA_RUNTIME_EXECUTOR = os .environ .get ("LAMBDA_RUNTIME_EXECUTOR" , "" ).strip ()
985
+ LAMBDA_RUNTIME_EXECUTOR = os .environ .get ("LAMBDA_RUNTIME_EXECUTOR" , CONTAINER_RUNTIME ).strip ()
983
986
984
987
# PUBLIC: 20 (default)
985
988
# How many seconds Lambda will wait for the runtime environment to start up.
@@ -1239,6 +1242,7 @@ def use_custom_dns():
1239
1242
"CFN_STRING_REPLACEMENT_DENY_LIST" ,
1240
1243
"CFN_VERBOSE_ERRORS" ,
1241
1244
"CI" ,
1245
+ "CONTAINER_RUNTIME" ,
1242
1246
"CUSTOM_SSL_CERT_PATH" ,
1243
1247
"DEBUG" ,
1244
1248
"DEBUG_HANDLER_CHAIN" ,
Original file line number Diff line number Diff line change 8
8
LOG = logging .getLogger (__name__ )
9
9
10
10
TRACKED_ENV_VAR = [
11
+ "CONTAINER_RUNTIME" ,
11
12
"DEBUG" ,
12
13
"DEFAULT_REGION" , # Not functional; deprecated in 0.12.7, removed in 3.0.0
13
14
"DISABLE_CORS_CHECK" ,
17
18
"DNS_ADDRESS" ,
18
19
"DYNAMODB_ERROR_PROBABILITY" ,
19
20
"EAGER_SERVICE_LOADING" ,
21
+ "ECS_TASK_EXECUTOR" ,
20
22
"EDGE_PORT" ,
21
23
"ENFORCE_IAM" ,
22
24
"IAM_SOFT_MODE" ,
You can’t perform that action at this time.
0 commit comments