File tree 4 files changed +44
-3
lines changed
4 files changed +44
-3
lines changed Original file line number Diff line number Diff line change
1
+ # redis-cli
2
+
3
+ Install the [ Redis command line utility] ( https://redis.io/docs/connect/cli/ ) .
4
+
5
+ ## Usage
6
+
7
+ ``` json
8
+ "features" : {
9
+ "ghcr.io/CargoSense/devcontainer-features/redis-cli:1" : {}
10
+ }
11
+ ```
12
+
13
+ ## Options
14
+
15
+ | Option ID | Description | Type | Default Value |
16
+ | :----------| :----------------------------------| :-------| :--------------|
17
+ | ` version ` | The redis-cli version to install. | string | ` os-provided ` |
18
+
19
+ ## OS Support
20
+
21
+ This Feature should work on recent versions of Debian/Ubuntu and Linux distributions using the [ apt] ( https://wiki.debian.org/AptCLI ) management tool.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " Redis CLI" ,
3
+ "id" : " redis-cli" ,
4
+ "version" : " 1.0.0" ,
5
+ "description" : " Install the Redis command line utility." ,
6
+ "options" : {
7
+ "version" : {
8
+ "type" : " string" ,
9
+ "proposals" : [
10
+ " os-provided"
11
+ ],
12
+ "default" : " os-provided" ,
13
+ "description" : " Select or enter a Redis CLI version."
14
+ }
15
+ },
16
+ "installsAfter" : [
17
+ " ghcr.io/devcontainers/features/common-utils"
18
+ ]
19
+ }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ curl_installed=""
22
22
23
23
if ! type curl > /dev/null 2>&1 ; then
24
24
apt update --yes
25
- apt install --no-install-recommends --yes curl ca-certificates
25
+ apt install --no-install-recommends --yes curl ca-certificates xz-utils
26
26
27
27
curl_installed=" true"
28
28
fi
@@ -43,10 +43,11 @@ case "${machine}" in
43
43
esac
44
44
45
45
# https://github.com/koalaman/shellcheck/releases/download/v0.9.0/shellcheck-v0.9.0.linux.aarch64.tar.xz
46
- url=" https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION} /shellcheck-v${SHELLCHECK_VERSION} .linux.${arch} .tar.xz"
46
+ file=" shellcheck-v${SHELLCHECK_VERSION} .linux.${arch} .tar.xz"
47
+ url=" https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION} /${file} "
47
48
48
49
curl -sSL " ${url} " | tar --strip-components=1 -Jxvf - -C " ${INSTALL_PATH} " " shellcheck-v${SHELLCHECK_VERSION} /shellcheck"
49
50
50
51
if [ -n " ${curl_installed} " ]; then
51
- apt purge curl --autoremove --yes
52
+ apt purge curl xz-utils --autoremove --yes
52
53
fi
You can’t perform that action at this time.
0 commit comments