Define Container for Codespaces (#8561)

pull/8603/head
Karsten Jeschkies 2 years ago committed by GitHub
parent b8118b1e7b
commit eeca4589fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .devcontainer/devcontainer.json
  2. 2
      loki-build-image/version-updater.sh

@ -0,0 +1,14 @@
{
"image": "grafana/loki-build-image:0.28.1",
"containerEnv": {
"BUILD_IN_CONTAINER": "false"
},
"customizations": {
"vscode": {
"settings": {},
"extensions": ["golang.go", "Grafana.vscode-jsonnet"]
}
},
"features": {
}
}

@ -19,7 +19,7 @@ fi
echo "Updating loki-build-image references to '${VERSION}'"
find . -type f \( -name '*.yml' -o -name '*.yaml' -o -name '*Dockerfile*' \) -exec grep -lE "grafana/loki-build-image:[0-9]+" {} \; | grep -ve '.drone' |
find . -type f \( -name '*.yml' -o -name '*.yaml' -o -name '*Dockerfile*' -o -name '*devcontainer.json' \) -exec grep -lE "grafana/loki-build-image:[0-9]+" {} \; | grep -ve '.drone' |
while read -r x; do
echo "Updating ${x}"
${SED} -i -re "s,grafana/loki-build-image:[0-9]+\.[0-9]+\.[0-9]+,grafana/loki-build-image:${VERSION},g" "${x}"

Loading…
Cancel
Save