File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
3434func main () {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments