Skip to content

Commit f52c8eb

Browse files
Add lazydocker
1 parent 6f2fa5e commit f52c8eb

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

src/lazydocker/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# lazydocker (lazydocker)
2+
3+
lazydocker binary
4+
5+
## Example Usage
6+
7+
```json
8+
"features": {
9+
"ghcr.io/code-fabrik/features/lazydocker:1": {}
10+
}
11+
```
12+
13+
## Options
14+
15+
| Options Id | Description | Type | Default Value |
16+
| ---------- | ----------- | ---- | ------------- |
17+
18+
---
19+
20+
_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/code-fabrik/features/blob/main/src/lazydocker/devcontainer-feature.json). Add additional notes to a `NOTES.md`._
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "lazydocker",
3+
"id": "lazydocker",
4+
"version": "1.0.3",
5+
"description": "lazydocker binary",
6+
"options": {
7+
"version": {
8+
"type": "string",
9+
"default": "0.24.1"
10+
}
11+
},
12+
"installsAfter": [
13+
"ghcr.io/devcontainers/features/common-utils"
14+
]
15+
}

src/lazydocker/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -i
2+
3+
set -e
4+
5+
if [[ $(uname -m) == "x86_64" ]]; then
6+
curl -Lo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${VERSION}_Linux_x86_64.tar.gz"
7+
elif [[ $(uname -m) == "aarch64" ]]; then
8+
curl -Lo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${VERSION}_Linux_arm64.tar.gz"
9+
else
10+
echo "Unsupported architecture"
11+
exit 1
12+
fi
13+
tar xf lazydocker.tar.gz lazydocker
14+
install lazydocker /usr/local/bin

0 commit comments

Comments
 (0)