Skip to content

Commit 05b3e72

Browse files
committed
removing execution_image command line arg to env variable
1 parent 423f473 commit 05b3e72

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

deploy/saturn/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ module "container" {
8686
"-secret=${var.secret_id}",
8787
"-subscription=${google_pubsub_subscription.queue.name}",
8888
"-parallel=${var.parallelism}",
89-
"-execution-image=${var.image}",
9089
]
9190

9291
# Environment variables for Docker-in-Docker path translation
@@ -98,6 +97,10 @@ module "container" {
9897
{
9998
name = "SCAFFOLD_CONTAINER_PATH"
10099
value = "/scaffolds"
100+
},
101+
{
102+
name = "EXECUTION_IMAGE"
103+
value = "${var.image}"
101104
}
102105
]
103106

saturn/cmd/saturn/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var (
2828
scaffoldRoot *string = flag.String("scaffold", "/scaffolds", "the root directory for saving scaffolds")
2929
parallelism *uint = flag.Uint("parallel", 1, "the number of scaffolds to run in parallel")
3030
onSaturn *bool = flag.Bool("onsaturn", true, "run on saturn")
31-
executionImage *string = flag.String("execution-image", "", "the docker image to isolate compile/execution tasks")
31+
executionImage *string = flag.String("execution-image", os.Getenv("EXECUTION_IMAGE"), "the docker image to isolate compile/execution tasks")
3232
)
3333

3434
func main() {

saturn/development/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ services:
3232
- RUN_ID=${RUN_ID:-default}
3333
- SCAFFOLD_HOST_PATH=${PWD}/${SCAFFOLD_DIR:-scaffolds}
3434
- SCAFFOLD_CONTAINER_PATH=/scaffolds
35+
- EXECUTION_IMAGE=development-saturn
3536
volumes:
3637
- ./:/development
3738
- ${SCAFFOLD_DIR:-./scaffolds}:/scaffolds
@@ -43,7 +44,6 @@ services:
4344
-onsaturn=false
4445
-secret=/development/secrets/secret.json
4546
-scaffold=/scaffolds
46-
-execution-image=development-saturn
4747
depends_on:
4848
pubsub-emulator:
4949
condition: service_healthy

0 commit comments

Comments
 (0)