Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
| [nixos.org](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/nixos.org) | `nix` — the Nix package manager | curl | 1.0.2 |
| [nvidia.com/cuda](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/nvidia.com-cuda) | NVIDIA CUDA Toolkit for GPU computing | curl | 1.0.2 |
| [onecli.sh/cli](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/onecli.sh-cli) | `onecli` — manage agents, secrets, rules, and configuration from the terminal | gh release | 1.0.3 |
| [opencode.ai](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai) | `opencode` — AI coding agent in the terminal | gh release | 1.0.6 |
| [opencode.ai](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai) | `opencode` — AI coding agent in the terminal | gh release | 1.0.7 |
| [pi.dev](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pi.dev) | `pi` — minimal terminal coding harness | gh release | 1.0.3 |
| [pkgx.sh](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pkgx.sh) | `pkgx` — run any package without installing | curl | 1.0.2 |
| [pulumi.com](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/pulumi.com) | `pulumi` — infrastructure as code in any language | gh release | 1.0.3 |
Expand Down
2 changes: 1 addition & 1 deletion src/opencode.ai/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencode.ai",
"id": "opencode.ai",
"version": "1.0.6",
"version": "1.0.7",
"description": "Install \"opencode\" binary",
"documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/opencode.ai",
"options": {
Expand Down
7 changes: 4 additions & 3 deletions src/opencode.ai/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ curl_download_tarball() {
rm "$temp_file"
}
debian_get_arch() {
local arch
arch=$(uname -m)
if [[ "$arch" == "aarch64" ]]; then
arch="arm64"
arch="arm64"
elif [[ "$arch" == "x86_64" ]]; then
arch="x64"
arch="x64"
fi
echo "$arch"
# echo "$(dpkg --print-architecture)" --- IGNORE ---
}
echo_banner() {
local text="$1"
Expand Down Expand Up @@ -140,6 +140,7 @@ install() {
readonly binaryTargetPath="${binaryTargetFolder}/${binaryName}"
curl_download_tarball "$downloadUrl" "$binaryTargetFolder"
chmod 755 "$binaryTargetPath"
apt_get_cleanup
}
echo_banner "devcontainer.community"
echo "Installing $name..."
Expand Down
3 changes: 1 addition & 2 deletions test/opencode.ai/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ source dev-container-features-test-lib
# The 'check' command comes from the dev-container-features-test-lib. Syntax is...
# check <LABEL> <cmd> [args...]

# check "execute command" bash -c "opencode"
check "check existence" bash -c "ls -lah /usr/local/bin/opencode"
check "check version output" bash -c "opencode --version"

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
Expand Down
Loading