Skip to content

Commit afb5113

Browse files
committed
feat(devcontainer): added devcontainer configuration
1 parent 56402e6 commit afb5113

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM sprkldev/sprkl-node:0.0.43
2+
3+
RUN apk add git curl docker
4+
5+
RUN mkdir -p /root/.docker/cli-plugins && \
6+
curl -SL https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 -o /root/.docker/cli-plugins/docker-compose && \
7+
chmod +x /root/.docker/cli-plugins/docker-compose
8+
9+
ENV DOCKER_HOST=unix:///var/run/docker-host.sock

.devcontainer/devcontainer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"build": {
3+
"dockerfile": "Dockerfile",
4+
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
5+
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
6+
"args": { "VARIANT": "ubuntu-22.04" }
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": ["sprkldev.sprkl-vscode"]
11+
}
12+
},
13+
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"],
14+
"runArgs": ["--network=host"]
15+
}

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ services:
5050
VITE_CATALOG_URL: http://catalog:3000
5151
VITE_ORDERS_URL: http://orders:3000
5252
VITE_PAYMENTS_URL: http://payments:3000
53-
volumes:
54-
- "./shop/src:/code/src"
5553
ports:
5654
- "80:5000"
5755

0 commit comments

Comments
 (0)