-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from trifork/feature/devcontainer-support
devcontainer support
- Loading branch information
Showing
7 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ghcr.io/containerbase/base:9.17.3 | ||
|
||
COPY tools/*.sh /usr/local/containerbase/tools/ | ||
|
||
# renovate: datasource=github-releases depName=docker packageName=moby/moby | ||
ARG DOCKER_VERSION=v24.0.5 | ||
RUN install-tool docker | ||
|
||
# renovate: datasource=github-releases depName=kubectl packageName=kubernetes/kubernetes | ||
ARG KUBECTL_VERSION=v1.28.0 | ||
RUN install-tool kubectl | ||
|
||
# renovate: datasource=github-releases depName=kind packageName=kubernetes-sigs/kind | ||
ARG KIND_VERSION=v0.20.0 | ||
RUN install-tool kind | ||
|
||
# renovate: datasource=github-releases depName=helm packageName=helm/helm | ||
ARG HELM_VERSION=v3.12.3 | ||
RUN install-tool helm | ||
|
||
# renovate: datasource=github-releases depName=chart-testing packageName=helm/chart-testing | ||
ARG CHART_TESTING_VERSION=v3.8.0 | ||
RUN install-tool chart-testing | ||
|
||
# renovate: datasource=github-releases depName=helm-docs packageName=norwoodj/helm-docs | ||
ARG HELM_DOCS_VERSION=1.11.0 | ||
RUN install-tool helm-docs | ||
|
||
# renovate: datasource=github-releases depName=kubeval packageName=instrumenta/kubeval | ||
ARG KUBEVAL_VERSION=v0.16.1 | ||
RUN install-tool kubeval |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "cheetah-charts", | ||
"dockerFile": "Dockerfile", | ||
// "remoteUser": "user", | ||
"runArgs": ["--init"], | ||
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"], | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker", | ||
"ms-kubernetes-tools.vscode-kubernetes-tools", | ||
"ms-vscode.makefile-tools", | ||
"jinliming2.vscode-go-template" | ||
], | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
check_semver "$TOOL_VERSION" | ||
|
||
curl --silent --show-error --fail --location --output /tmp/chart-testing.tar.gz https://github.com/helm/chart-testing/releases/download/v"$TOOL_VERSION"/chart-testing_"$TOOL_VERSION"_linux_amd64.tar.gz | ||
tar -xf /tmp/chart-testing.tar.gz -C /usr/local/bin/ ct | ||
mkdir -p /etc/ct | ||
tar -xf /tmp/chart-testing.tar.gz -C /etc/ct --strip-components=1 etc | ||
rm /tmp/chart-testing.tar.gz | ||
|
||
ct version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
check_semver "$TOOL_VERSION" | ||
|
||
curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"$TOOL_VERSION"/helm-docs_"$TOOL_VERSION"_Linux_x86_64.tar.gz | ||
tar -xf /tmp/helm-docs.tar.gz -C /usr/local/bin/ helm-docs | ||
rm /tmp/helm-docs.tar.gz | ||
|
||
helm-docs --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
check_semver "$TOOL_VERSION" | ||
|
||
curl --silent --show-error --fail --location --output /usr/local/bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/v$TOOL_VERSION/kind-linux-amd64" | ||
chmod +x /usr/local/bin/kind | ||
|
||
kind version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
check_semver "$TOOL_VERSION" | ||
|
||
curl -sSL -o /usr/local/bin/kubectl "https://storage.googleapis.com/kubernetes-release/release/v$TOOL_VERSION/bin/linux/amd64/kubectl" | ||
chmod +x /usr/local/bin/kubectl | ||
|
||
kubectl version --client=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
check_semver "$TOOL_VERSION" | ||
|
||
curl --silent --show-error --fail --location --output /tmp/kubeval.tar.gz "https://github.com/instrumenta/kubeval/releases/download/v$TOOL_VERSION/kubeval-linux-amd64.tar.gz" | ||
tar -xf /tmp/kubeval.tar.gz -C /usr/local/bin/ kubeval | ||
rm /tmp/kubeval.tar.gz | ||
|
||
kubeval --version |