File tree Expand file tree Collapse file tree 3 files changed +67
-1
lines changed
Expand file tree Collapse file tree 3 files changed +67
-1
lines changed Original file line number Diff line number Diff line change 1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/devcontainers/templates/tree/main/src/python
3+ {
4+ "name" : " Python 3" ,
5+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+ "image" : " mcr.microsoft.com/devcontainers/python:0-3.10" ,
7+ "features" : {
8+ "ghcr.io/devcontainers/features/node:1" : {
9+ "nodeGypDependencies" : true ,
10+ "version" : " 16"
11+ }
12+ },
13+ "customizations" : {
14+ "vscode" : {
15+ "settings" : {
16+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
17+ "workbench.editorAssociations" : {
18+ "*.md" : " vscode.markdown.preview.editor"
19+ }
20+ },
21+ "extensions" : [" learn-pack.learnpack-vscode" ]
22+ }
23+ },
24+ "onCreateCommand" : " pip3 install pytest==6.2.5 pytest-testdox mock && npm i @learnpack/learnpack@2.1.20 -g && learnpack plugins:install @learnpack/python@1.0.0"
25+
26+ // Features to add to the dev container. More info: https://containers.dev/features.
27+ // "features": {},
28+
29+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
30+ // "forwardPorts": [],
31+
32+ // Use 'postCreateCommand' to run commands after the container is created.
33+ // "postCreateCommand": "pip3 install --user -r requirements.txt",
34+
35+ // Configure tool-specific properties.
36+ // "customizations": {},
37+
38+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
39+ // "remoteUser": "root"
40+ }
Original file line number Diff line number Diff line change 22/*
33
44! .gitignore
5+ ! .devcontainer
6+ ! .devcontainer /*
57! .gitpod.yml
68! .gitpod.Dockerfile
79! bc.json
Original file line number Diff line number Diff line change 11FROM gitpod/workspace-full:latest
2+
3+ SHELL ["/bin/bash" , "-c" ]
4+
5+ RUN sudo apt-get update \
6+ && sudo apt-get update \
7+ && sudo apt-get clean \
8+ && sudo rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/*
9+
10+ # That Gitpod install pyenv for me? no, thanks
11+ WORKDIR /home/gitpod/
12+ RUN rm .pyenv -Rf
13+ RUN rm .gp_pyenv.d -Rf
14+ RUN curl https://pyenv.run | bash
15+
16+
17+ RUN pyenv update && pyenv install 3.10.7 && pyenv global 3.10.7
18+ RUN pip install pipenv
19+
20+ # remove PIP_USER environment
221USER gitpod
3- RUN pip3 install pytest==4.4.2 pytest-testdox mock
22+ RUN if ! grep -q "export PIP_USER=no" "$HOME/.bashrc" ; then printf '%s\n ' "export PIP_USER=no" >> "$HOME/.bashrc" ; fi
23+ RUN echo "" >> $HOME/.bashrc
24+ RUN echo "unset DATABASE_URL" >> $HOME/.bashrc
25+ RUN echo "export DATABASE_URL" >> $HOME/.bashrc
26+
27+ RUN pip3 install pytest==6.2.5 pytest-testdox mock
428RUN npm i -g @learnpack/learnpack@2.1.20 && learnpack plugins:install @learnpack/python@1.0.0
You can’t perform that action at this time.
0 commit comments