Skip to content

Commit 81ed522

Browse files
committed
chore: apply std postXxx scripts to all containers
1 parent 9173912 commit 81ed522

14 files changed

Lines changed: 44 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"--network=host"
2323
],
2424
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
25-
"postCreateCommand": "bash ${SCRIPTS_DIR}/postCreate.sh",
26-
"postStartCommand": "bash ${SCRIPTS_DIR}/postStart.sh",
27-
"postAttachCommand": "bash ${SCRIPTS_DIR}/postAttach.sh",
25+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
26+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
27+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
2828
"features": {
2929
},
3030
"customizations": {

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ build-all: build-base-image build-node-24-image build-node-24-python-3-10-image
6565
build-regression-tests-image
6666

6767
build-image: guard-CONTAINER_NAME guard-BASE_VERSION_TAG guard-BASE_FOLDER guard-IMAGE_TAG
68+
workspace_folder="$${CONTAINER_NAME}"; \
69+
case "$${CONTAINER_NAME}" in \
70+
eps_*) workspace_folder="$$(printf '%s' "$${CONTAINER_NAME}" | tr '_' '-')" ;; \
71+
esac; \
6872
npx devcontainer build \
69-
--workspace-folder ./src/$${BASE_FOLDER}/$${CONTAINER_NAME} \
73+
--workspace-folder ./src/$${BASE_FOLDER}/$${workspace_folder} \
7074
$(NO_CACHE_FLAG) \
7175
--push false \
7276
--output type=image,name="${CONTAINER_PREFIX}$${CONTAINER_NAME}:$${IMAGE_TAG}",push=false,compression=zstd \

src/base/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"IMAGE_TAG": "${localEnv:IMAGE_TAG}"
1313
}
1414
},
15+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
16+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
17+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1518
"features": {
1619
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
1720
"version": "latest",

src/base_node/node_24/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

src/languages/node_24_python_3_10/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

src/languages/node_24_python_3_12/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

src/languages/node_24_python_3_13/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

src/languages/node_24_python_3_14/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

src/projects/eps-data-extract/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

src/projects/eps-storage-terraform/.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"context": "."
1515
},
16+
"postCreateCommand": "bash ${SCRIPTS_DIR}/post_create.sh",
17+
"postStartCommand": "bash ${SCRIPTS_DIR}/post_start.sh",
18+
"postAttachCommand": "bash ${SCRIPTS_DIR}/post_attach.sh",
1619
"features": {}
1720
}
1821

0 commit comments

Comments
 (0)