Skip to content

Commit

Permalink
added dev container
Browse files Browse the repository at this point in the history
Signed-off-by: Prati28 <[email protected]>
  • Loading branch information
psankhe28 committed Oct 19, 2024
1 parent 13b8710 commit 1bf6518
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3.8

RUN apt-get update && apt-get install -y \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /workspace

COPY . .

RUN pip install -r docs/pip-requirements.txt

ENV MKDOCS_PORT=8000

EXPOSE ${MKDOCS_PORT}

CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Caliper Development",
"context": "..",
"dockerFile": "Dockerfile",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.defaultInterpreterPath": "/usr/local/bin/python"
},
"extensions": [
"ms-python.python",
"esbenp.prettier-vscode",
"ms-azuretools.vscode-docker"
]
}
},
"postCreateCommand": "cd docs && pip install -r pip-requirements.txt && mkdocs build",
"remoteUser": "vscode",
"forwardPorts": [8000]
}

0 comments on commit 1bf6518

Please sign in to comment.