Skip to content

Commit bc70525

Browse files
committed
Improvements.
1 parent da9b3bc commit bc70525

6 files changed

Lines changed: 78 additions & 65 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ FROM mcr.microsoft.com/devcontainers/python:1-3.12-bookworm
1212
# copy dependency sync script for session and package management
1313
COPY ./.devcontainer/sync_deps.py /workspaces/session/post-start/
1414

15-
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
16-
# COPY requirements.txt /tmp/pip-tmp/
17-
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
18-
# && rm -rf /tmp/pip-tmp
19-
2015
# copy requirements list into layer of dev image
2116
COPY requirements.txt /workspaces/session/
2217
RUN pip --disable-pip-version-check --no-cache-dir install -r /workspaces/session/requirements.txt
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
6+
// Using the prebuild
7+
"image": "ghcr.io/league-infrastructure/jtlpython:latest",
8+
9+
// Features to add to the dev container. More info: https://containers.dev/features.
10+
"features": {
11+
"ghcr.io/devcontainers/features/desktop-lite:1": {
12+
"password" : "code4life"
13+
}
14+
},
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
"forwardPorts": [6080, 5901],
18+
19+
"portsAttributes": {
20+
"6080":{
21+
"label": "VNC Web Screen"
22+
},
23+
"5901":{
24+
"label":"VNC App"
25+
}
26+
},
27+
28+
29+
// Use 'postCreateCommand' to run commands after the container is created.
30+
"postCreateCommand": "pip3 install --user -r requirements.txt",
31+
32+
"customizations": {
33+
"codespaces": {
34+
"openFiles": []
35+
},
36+
"vscode": {
37+
"extensions": [
38+
"ms-python.python",
39+
"ms-python.debugpy"
40+
],
41+
"settings": {
42+
43+
}
44+
}
45+
}
46+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
47+
// "remoteUser": "root"
48+
}

NOTES.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Python Dev Container
44

5+
This repo is the base for the League's Python environment for devcontainers. You can use this as the base for
6+
new repos, but generally it is better to use the config `.devcontainer/devcontainer-base.json`,
7+
which uses the prebuild image from this repo.
8+
59
## Prebuilding
610

711
Prebuilding the container will result in much faster start-up times

devcontainer-template.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

requirements.txt

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1-
#ipywidgets==7.7.1
1+
2+
requests
3+
tqdm
4+
python-dotenv
5+
fastapi
6+
flask
7+
gunicorn
8+
pyyaml
9+
invoke
10+
click
11+
python-slugify
12+
pygame
13+
214
jupyterlab
315
ipywidgets
4-
#matplotlib==3.7.0
5-
#numpy==1.24.2
6-
#pandas==1.5.3
7-
#torch==1.12.1
8-
#torchvision==0.13.1
9-
tqdm==4.64.0
16+
17+
processing-py
18+
19+
matplotlib
20+
seaborn
21+
plotly
22+
23+
numpy
24+
pandas
25+
scikit-learn
26+
scipy
27+
28+
git+https://github.com/league-infrastructure/lesson-builder.git#egg=lesson-builder

0 commit comments

Comments
 (0)