Skip to content

Commit 8ddc4a5

Browse files
committed
build: update node to 22.12.0
Signed-off-by: Alessandro Yuichi Okimoto <yuichijpn@gmail.com>
1 parent d8da07d commit 8ddc4a5

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{
22
"name": "bucketeer",
33
"image": "ghcr.io/bucketeer-io/bucketeer-devcontainer:latest",
4+
"privileged": true,
5+
"capAdd": [
6+
"SYS_ADMIN"
7+
],
8+
"securityOpt": [
9+
"seccomp:unconfined"
10+
],
11+
"init": true,
12+
"runArgs": [
13+
"--cgroupns=host"
14+
],
415
"mounts": [
516
// Persistent Go modules cache
617
"source=bucketeer-go-mod-cache,target=/go/pkg/mod,type=volume",

.devcontainer/setup.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,19 @@ main() {
362362
}
363363

364364
# Run main function
365-
main "$@"
365+
main "$@"
366+
367+
# Start Docker daemon automatically after main setup is complete
368+
if ! docker info > /dev/null 2>&1; then
369+
echo "🐳 Starting Docker daemon..."
370+
nohup sudo dockerd > /tmp/dockerd.log 2>&1 < /dev/null &
371+
# Wait for Docker to be ready
372+
while ! docker info > /dev/null 2>&1; do
373+
sleep 1
374+
done
375+
echo "✅ Docker daemon started successfully"
376+
# Reset cursor position for clean terminal state
377+
printf "\r"
378+
else
379+
echo "✅ Docker daemon already running"
380+
fi

.github/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ RUN ARCH=$(dpkg --print-architecture) \
107107
arm64) NODE_ARCH="arm64" ;; \
108108
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
109109
esac \
110-
&& curl -fsSL "https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-${NODE_ARCH}.tar.xz" | tar -C /usr/local --strip-components=1 -xJ \
110+
&& curl -fsSL "https://nodejs.org/dist/v22.11.0/node-v22.12.0-linux-${NODE_ARCH}.tar.xz" | tar -C /usr/local --strip-components=1 -xJ \
111111
&& npm install -g yarn
112112

113113
# Install kubectl, helm, and minikube

0 commit comments

Comments
 (0)