Skip to content

Commit bcfa306

Browse files
committed
refactor: restructure to src/features and test/features for GHCR path
1 parent 8ca336d commit bcfa306

15 files changed

Lines changed: 9 additions & 64 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: devcontainers/action@v1
2222
with:
2323
publish-features: "true"
24-
base-path-to-features: "./features"
24+
base-path-to-features: "./src/features"
2525
generate-docs: "true"
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

features-test/antigravity-nix/scenarios.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

features-test/node/test.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

features/antigravity-nix/devcontainer-feature.json renamed to src/features/antigravity-nix/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "antigravity-nix",
33
"version": "1.0.0",
44
"name": "Antigravity Nix",
5-
"description": "Consolidated devcontainer feature: creates vscode user, installs Nix with flakes, and essential tools (wget, git, curl, sudo) for Antigravity IDE",
5+
"description": "Creates vscode user, installs Nix with flakes, and essential tools for Antigravity IDE",
66
"options": {},
77
"containerEnv": {
88
"NIX_CONF_DIR": "/etc/nix"
File renamed without changes.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ set -e
33

44
echo "=== Dataform CLI Feature ==="
55

6-
# Check if npm is available
76
if ! command -v npm &> /dev/null; then
87
echo "Error: npm is not installed. This feature depends on the Node.js feature."
98
exit 1
109
fi
1110

12-
# Install Dataform CLI globally
1311
npm install -g @dataform/cli
1412

1513
echo "Dataform CLI installed successfully!"

features/gcloud-cli/devcontainer-feature.json renamed to src/features/gcloud-cli/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "gcloud-cli",
33
"version": "1.0.0",
44
"name": "Google Cloud CLI",
5-
"description": "Installs the Google Cloud CLI (gcloud) via official Debian packages",
5+
"description": "Installs the Google Cloud CLI via official Debian packages",
66
"options": {},
77
"installsAfter": [
88
"ghcr.io/duizendstra/devcontainer/features/antigravity-nix"
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,16 @@ set -e
33

44
echo "=== Google Cloud CLI Feature ==="
55

6-
# Ensure prerequisites are installed
76
apt-get update
87
apt-get install -y apt-transport-https ca-certificates gnupg curl
98

10-
# Trust Google Cloud public key
119
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
1210

13-
# Add distribution URI as a package source
1411
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
1512

16-
# Install the CLI
1713
apt-get update
1814
apt-get install -y google-cloud-cli
1915

20-
# Cleanup
2116
apt-get clean
2217
rm -rf /var/lib/apt/lists/*
2318

File renamed without changes.

0 commit comments

Comments
 (0)