Skip to content

Commit 51548d9

Browse files
committed
added dev container
1 parent 23e94b4 commit 51548d9

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

Diff for: .devcontainer/Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/python-3/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
4+
ARG VARIANT="3.10-bullseye"
5+
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
6+
7+
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
8+
ARG NODE_VERSION="none"
9+
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
10+
11+
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
12+
#RUN virtualenv ~/.venv \
13+
# && echo 'source ~/.venv/bin/activate' >> ~/.bashrc
14+
#COPY requirements.txt /tmp/pip-tmp/
15+
#RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
16+
# && rm -rf /tmp/pip-tmp
17+
18+
# [Optional] Uncomment this section to install additional OS packages.
19+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
20+
&& apt-get -y install --no-install-recommends vim \
21+
&& apt-get install -y ruby-full
22+
23+
# [Optional] Uncomment this line to install global node packages.
24+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

Diff for: .devcontainer/devcontainer.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"customizations": {
3+
"codespaces": {
4+
},
5+
"vscode": {
6+
"extensions": [
7+
"ms-python.python",
8+
"ms-python.pylint",
9+
"ms-toolsai.jupyter",
10+
"github.copilot",
11+
"github.copilot-chat",
12+
"github.copilot-labs",
13+
"ahmadawais.shades-of-purple"
14+
],
15+
"settings": {
16+
"workbench.colorTheme": "Shades of Purple (Super Dark)"
17+
}
18+
}
19+
}
20+
}

Diff for: README.md

+10
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ git commit -m "Initial Commit"
1515
git push
1616
```
1717

18+
```
19+
nano ~/.bashrc
20+
source .venv/bin/activate
21+
22+
```
23+
24+
```
25+
chmod +x main.py
26+
./main.py
27+
```

Diff for: main.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/usr/bin/env python

0 commit comments

Comments
 (0)