Skip to content
Open
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
15 changes: 15 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,18 @@ RUN bash -c 'set -euo pipefail && \
tar -xzf /tmp/leeway.tar.gz -C /tmp && \
install -m 755 /tmp/leeway /usr/local/bin/ && \
rm /tmp/leeway.tar.gz /tmp/leeway'

# Install Node.js
ENV NODE_MAJOR=20
ADD https://raw.githubusercontent.com/gitpod-io/workspace-images/main/base/install-packages /usr/bin/install-packages
RUN chmod +x /usr/bin/install-packages
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \
install-packages nodejs && \
rm -rf /usr/include/node/openssl/archs/{aix64-gcc-as,BSD-x86,BSD-x86_64,darwin64-arm64-cc,darwin64-x86_64-cc,darwin-i386-cc,linux32-s390x,linux64-loongarch64,linux64-mips64,linux64-riscv64,linux64-s390x,linux-armv4,linux-ppc64le,solaris64-x86_64-gcc,solaris-x86-gcc,VC-WIN32} && \
rm -rf /usr/share/doc/nodejs && \
rm -rf ./.npm/_cacache

# Install claude-code globally
RUN npm i -g @anthropic-ai/claude-code
11 changes: 6 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "18"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.24"
},
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/dhoeric/features/google-cloud-cli:1": {},
"ghcr.io/devcontainers/features/aws-cli:1": {}
},
"forwardPorts": [8080, 3000, 9000],
"forwardPorts": [
8080,
3000,
9000
],
"portsAttributes": {
"8080": {
"label": "Application Server",
Expand All @@ -29,4 +30,4 @@
"onAutoForward": "notify"
}
}
}
}
10 changes: 10 additions & 0 deletions .gitpod/automations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,13 @@ tasks:
- install-deps
triggeredBy:
- manual

setup-claude-code-key:
name: Key for Claude Code
command: |
[ -f /opt/.anthropic_key.sh ] && {
install -D -m 755 /opt/.anthropic_key.sh ~/.claude/.anthropic_key.sh
result=$(cat ~/.claude/settings.json 2>/dev/null || echo "{}" | jq '.apiKeyHelper = "~/.claude/.anthropic_key.sh"') && echo "$result" > ~/.claude/settings.json || true
} || true
triggeredBy:
- postEnvironmentStart
Loading