Skip to content

Commit bd2b1d3

Browse files
committed
Fix dockerfile & update dependencies
1 parent 3c7c762 commit bd2b1d3

5 files changed

Lines changed: 35 additions & 43 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/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=""
5-
FROM mcr.microsoft.com/vscode/devcontainers/python:1-${VARIANT}
1+
# https://github.com/devcontainers/images/tree/main/src/python
2+
FROM mcr.microsoft.com/vscode/devcontainers/python:3-3.14-trixie
63

74
# Add postgresql repository
85
RUN set -eu; \
96
mkdir -p /etc/apt/keyrings; \
107
wget --quiet -O /etc/apt/keyrings/pgdg.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc; \
11-
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
8+
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release --codename --short)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
129

1310
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1411
&& apt-get -y install --no-install-recommends mariadb-client postgresql-client-18

.devcontainer/devcontainer.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,11 @@
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/python-3
33
{
44
"name": "Python 3",
5-
"runArgs": [
6-
"--init"
7-
],
5+
// "runArgs": [
6+
// "--init"
7+
// ],
88
"build": {
9-
"dockerfile": "Dockerfile",
10-
"context": "..",
11-
"args": {
12-
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6, ...
13-
// Append -bullseye or -buster to pin to an OS version.
14-
// Use -bullseye variants on local on arm64/Apple Silicon.
15-
"VARIANT": "3.14-trixie",
16-
// Options
17-
"NODE_VERSION": "none"
18-
}
9+
"dockerfile": "Dockerfile"
1910
},
2011
// Set *default* container specific settings.json values on container create.
2112
"customizations": {
@@ -50,10 +41,12 @@
5041
// Use 'forwardPorts' to make a list of ports inside the container available locally.
5142
// "forwardPorts": [],
5243
// Use 'postCreateCommand' to run commands after the container is created.
53-
"postCreateCommand": "pip-sync",
44+
// "postCreateCommand": "pip-sync",
5445
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
5546
"features": {
56-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
47+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
48+
"moby": "false"
49+
}
5750
},
58-
"remoteUser": "root"
51+
// "remoteUser": "root"
5952
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL jan-di.database-backup.instance_id="default"
66
RUN set -eu; \
77
mkdir -p /etc/apt/keyrings; \
88
wget --quiet -O /etc/apt/keyrings/pgdg.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc; \
9-
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
9+
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release --codename --short)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
1010

1111
ENV PYTHONFAULTHANDLER=1 \
1212
PYTHONUNBUFFERED=1

requirements.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
docker~=7.1
2-
humanize~=4.10
2+
humanize~=4.15
33
requests~=2.32
44
pyaescrypt~=6.1
5-
croniter~=2.0
6-
tempora~=5.6
5+
croniter~=6.0
6+
tempora~=5.8

requirements.txt

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.12
2+
# This file is autogenerated by pip-compile with Python 3.14
33
# by the following command:
44
#
55
# pip-compile
66
#
7-
certifi==2024.2.2
7+
certifi==2026.1.4
88
# via requests
9-
cffi==1.16.0
9+
cffi==2.0.0
1010
# via cryptography
11-
charset-normalizer==3.3.2
11+
charset-normalizer==3.4.4
1212
# via requests
13-
croniter==2.0.7
13+
croniter==6.0.0
1414
# via -r requirements.in
15-
cryptography==42.0.7
15+
cryptography==46.0.3
1616
# via pyaescrypt
1717
docker==7.1.0
1818
# via -r requirements.in
19-
humanize==4.10.0
19+
humanize==4.15.0
2020
# via -r requirements.in
21-
idna==3.7
21+
idna==3.11
2222
# via requests
23-
jaraco-functools==4.0.1
23+
jaraco-functools==4.4.0
2424
# via tempora
25-
more-itertools==10.2.0
25+
more-itertools==10.8.0
2626
# via jaraco-functools
2727
pyaescrypt==6.1.1
2828
# via -r requirements.in
29-
pycparser==2.22
29+
pycparser==2.23
3030
# via cffi
3131
python-dateutil==2.9.0.post0
32+
# via
33+
# croniter
34+
# tempora
35+
pytz==2025.2
3236
# via croniter
33-
pytz==2024.1
34-
# via croniter
35-
requests==2.32.3
37+
requests==2.32.5
3638
# via
3739
# -r requirements.in
3840
# docker
39-
six==1.16.0
41+
six==1.17.0
4042
# via python-dateutil
41-
tempora==5.6.0
43+
tempora==5.8.1
4244
# via -r requirements.in
43-
urllib3==2.2.1
45+
urllib3==2.6.3
4446
# via
4547
# docker
4648
# requests

0 commit comments

Comments
 (0)