Skip to content

Commit 0358ce0

Browse files
authored
Add devcontainer configuration (#25)
1 parent 519ba21 commit 0358ce0

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.devcontainer/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
2+
3+
ENV VIRTUAL_ENV=/opt/venv
4+
RUN python -m venv $VIRTUAL_ENV
5+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
6+
RUN sudo chown -R vscode:vscode $VIRTUAL_ENV
7+
8+
RUN pip install loguru maturin[patchelf]

.devcontainer/devcontainer.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "Iggy Python SDK devcontainer",
3+
"dockerComposeFile": "docker-compose.yml",
4+
service: "devcontainer",
5+
"features": {
6+
"ghcr.io/devcontainers/features/rust:1": {}
7+
}
8+
}

.devcontainer/docker-compose.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
devcontainer:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
network_mode: service:iggy
7+
command: sleep infinity
8+
9+
iggy:
10+
image: iggyrs/iggy:latest
11+
restart: unless-stopped

0 commit comments

Comments
 (0)