Skip to content

Commit 8029b83

Browse files
committed
Update features from sources
1 parent 4747aec commit 8029b83

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Contributions, issues and such are welcomed **in their own open source projects*
3030
| [Restore terminals](./src/restore-terminals/README.md) | [v0.0.1](https://gitlab.com/geekstuff.dev/devcontainers/features/restore-terminals/-/tree/v0.0.1) | [ghcr.io/geekstuff-dev/devcontainers-features/restore-terminals](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Frestore-terminals) |
3131
| [Rust](./src/rust/README.md) | [v0.0.4](https://gitlab.com/geekstuff.dev/devcontainers/features/rust/-/tree/v0.0.4) | [ghcr.io/geekstuff-dev/devcontainers-features/rust](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Frust) |
3232
| [Shared cache](./src/shared-cache/README.md) | [v0.0.1](https://gitlab.com/geekstuff.dev/devcontainers/features/shared-cache/-/tree/v0.0.1) | [ghcr.io/geekstuff-dev/devcontainers-features/shared-cache](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fshared-cache) |
33+
| [Shellcheck](./src/shellcheck/README.md) | [v0.0.1](https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/tree/v0.0.1) | [ghcr.io/geekstuff-dev/devcontainers-features/shellcheck](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fshellcheck) |
3334
| [Starship](./src/starship/README.md) | [v0.1.0](https://gitlab.com/geekstuff.dev/devcontainers/features/starship/-/tree/v0.1.0) | [ghcr.io/geekstuff-dev/devcontainers-features/starship](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fstarship) |
3435
| [TF Backend Gitlab](./src/tf-backend-gitlab/README.md) | [v0.1.0](https://gitlab.com/geekstuff.dev/devcontainers/features/tf-backend-gitlab/-/tree/v0.1.0) | [ghcr.io/geekstuff-dev/devcontainers-features/tf-backend-gitlab](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Ftf-backend-gitlab) |
3536
| [Terraform](./src/terraform/README.md) | [v0.2.2](https://gitlab.com/geekstuff.dev/devcontainers/features/terraform/-/tree/v0.2.2) | [ghcr.io/geekstuff-dev/devcontainers-features/terraform](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fterraform) |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "Shellcheck",
3+
"id": "shellcheck",
4+
"version": "0.0.1",
5+
"description": "Installs Shell check",
6+
"documentationURL": "https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/blob/v0.0.1/README.md",
7+
"licenseURL": "https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/blob/v0.0.1/LICENSE",
8+
"options": {
9+
"version": {
10+
"type": "string",
11+
"default": "v0.10.0",
12+
"description": "Select Shellcheck version"
13+
}
14+
}
15+
}

src/shellcheck/install.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# Load http proxy if set in basic feature
6+
if test -e $LIB_DEVCONTAINER_FEATURES/buildtime-http-proxy.sh; then
7+
. $LIB_DEVCONTAINER_FEATURES/buildtime-http-proxy.sh
8+
fi
9+
10+
if test -z "$VERSION"; then
11+
VERSION="v0.10.0"
12+
fi
13+
14+
TMP_DIR=$(mktemp -d)
15+
TARGET="$TMP_DIR/shellcheck.tar.xz"
16+
BIN="$TMP_DIR/shellcheck-${VERSION}/shellcheck"
17+
18+
# install if not present
19+
if ! command -v shellcheck &>/dev/null; then
20+
curl -fsSL -o $TARGET https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-${VERSION}.linux.x86_64.tar.xz
21+
tar -C $TMP_DIR -zxf $TARGET
22+
install -m a+rx $BIN /usr/local/bin
23+
rm -rf $TMP_DIR
24+
fi

0 commit comments

Comments
 (0)