Skip to content

Commit 3e6a873

Browse files
authored
Merge pull request #33 from nyu-devops/updates-su25
Updates for Summer 2025 Semester
2 parents b0b957c + cfae25d commit 3e6a873

File tree

5 files changed

+371
-371
lines changed

5 files changed

+371
-371
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
11
# Image for a Python 3 development environment
2-
FROM python:3.11-slim
2+
FROM quay.io/rofrano/nyu-devops-base:su25
33

4-
# Add any tools that are needed beyond Python 3.11
5-
RUN apt-get update && \
6-
apt-get install -y sudo vim make git zip tree curl wget jq procps net-tools && \
7-
apt-get autoremove -y && \
8-
apt-get clean -y
9-
10-
# Create a user for development
114
ARG USERNAME=vscode
12-
ARG USER_UID=1000
13-
ARG USER_GID=$USER_UID
14-
15-
# Create the user with passwordless sudo privileges
16-
RUN groupadd --gid $USER_GID $USERNAME \
17-
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
18-
&& usermod -aG sudo $USERNAME \
19-
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
20-
&& chmod 0440 /etc/sudoers.d/$USERNAME \
21-
&& chown -R $USERNAME:$USERNAME /home/$USERNAME
225

23-
# Set up the Python development environment
6+
# Set up the global Python development environment
247
WORKDIR /app
258
COPY Pipfile Pipfile.lock ./
269
RUN python -m pip install -U pip pipenv && \

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"FLASK_DEBUG:": "True",
1414
"FLASK_APP": "wsgi:app",
1515
"PORT": "8080",
16-
"GUNICORN_BIND": "0.0.0.0:8080"
16+
"GUNICORN_BIND": "0.0.0.0:8080",
17+
"PIPENV_VENV_IN_PROJECT": "1"
1718
},
1819
"customizations": {
1920
"vscode": {
@@ -37,6 +38,7 @@
3738
"python.testing.pytestArgs": [
3839
"tests"
3940
],
41+
"python.analysis.typeCheckingMode": "standard",
4042
"files.exclude": {
4143
"**/.git": true,
4244
"**/.DS_Store": true,

Pipfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ flask = "==3.1.1"
88
redis = "==5.2.1"
99
flask-redis = "==0.4.0"
1010
retry2 = "==0.9.5"
11-
python-dotenv = "==1.0.1"
12-
gunicorn = "==23.0.0"
11+
python-dotenv = "~=1.1.0"
12+
gunicorn = "~=23.0.0"
1313

1414
[dev-packages]
15-
honcho = "~=2.0.0"
16-
pylint = "~=3.3.4"
17-
flake8 = "~=7.1.1"
1815
black = "~=25.1.0"
19-
pytest = "~=8.3.4"
16+
coverage = "~=7.8.2"
17+
flake8 = "~=7.2.0"
18+
pylint = "~=3.3.7"
19+
pytest = "~=8.3.5"
2020
pytest-pspec = "~=0.0.4"
21-
pytest-cov = "~=6.0.0"
21+
pytest-cov = "~=6.1.1"
2222
factory-boy = "~=3.3.3"
23-
coverage = "~=7.6.12"
23+
honcho = "~=2.0.0"
2424
httpie = "~=3.2.4"
2525

2626
[requires]

0 commit comments

Comments
 (0)