We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb132c0 commit 705bd42Copy full SHA for 705bd42
1 file changed
startupscript/butane/005-parse-devcontainer.sh
@@ -78,6 +78,11 @@ if [[ -d "${DEVCONTAINER_FEATURES_PATH}" ]]; then
78
rsync -a --ignore-existing "${DEVCONTAINER_FEATURES_PATH}/" "${DEVCONTAINER_PATH}/.devcontainer/features"
79
fi
80
81
+# Rewrite ghcr.io references to use the GAR pull-through cache
82
+readonly GHCR_CACHE="us-central1-docker.pkg.dev/workbench-app-cache/ghcr-cache"
83
+sed -i "s|ghcr\.io/|${GHCR_CACHE}/|g" "${DEVCONTAINER_CONFIG_PATH}"
84
+find "${DEVCONTAINER_PATH}/.devcontainer/features" -name devcontainer-feature.json -exec sed -i "s|ghcr\.io/|${GHCR_CACHE}/|g" {} +
85
+
86
replace_template_options() {
87
local TEMPLATE_PATH="$1"
88
0 commit comments