Skip to content

Commit 4d841db

Browse files
authored
Extend development environment base image (#24)
* Extend development environment base image Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> * Remove sudo usage and pin curl and ca-certificates Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> * Bump openjdk version Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de> --------- Signed-off-by: Andreas Heinrich <andreas.heinrich@rwth-aachen.de>
1 parent 3e406df commit 4d841db

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

docker/images/dev-env-base/Dockerfile

+26-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,35 @@ RUN apt update \
2424
graphviz=2.42.2-7+b3 \
2525
build-essential=12.9 \
2626
cppcheck=2.10-2 \
27-
bash-completion=1:2.11-6
27+
bash-completion=1:2.11-6 \
28+
vim=2:9.0.1378-2 \
29+
# Development Tools - Debugging
30+
gdb=13.1-3 \
31+
nmap=7.93+dfsg1-1
2832
# Development Tools - Documentation
2933
RUN python3 -m pip install --break-system-packages \
3034
# language server RST/Sphinx
3135
esbonio==0.16.4 \
3236
# Style checker for RST/Sphinx
3337
doc8==1.1.1
38+
# Development Tools - Docker
39+
RUN apt update && apt install -y --no-install-recommends \
40+
ca-certificates=20230311 \
41+
curl=7.88.1-10+deb12u6 \
42+
&& install -m 0755 -d /etc/apt/keyrings \
43+
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
44+
&& chmod a+r /etc/apt/keyrings/docker.asc \
45+
&& echo \
46+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
47+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
48+
tee /etc/apt/sources.list.d/docker.list > /dev/null \
49+
&& apt update \
50+
&& apt install -y --no-install-recommends \
51+
docker-ce=5:27.0.3-1~debian.12~bookworm \
52+
docker-ce-cli=5:27.1.1-1~debian.12~bookworm \
53+
containerd.io=1.7.19-1 \
54+
docker-buildx-plugin=0.16.1-1~debian.12~bookworm \
55+
docker-compose-plugin=2.29.1-1~debian.12~bookworm
3456

3557
RUN apt clean \
3658
&& rm -rf /var/lib/apt/lists/*
@@ -41,4 +63,6 @@ RUN mkdir ~/.ssh \
4163
&& ssh-keyscan github.com > ~/.ssh/known_hosts
4264

4365
ENV PATH="/home/$USERNAME/.local/bin:$PATH"
44-
ENV CPM_SOURCE_CACHE="/home/$USERNAME/.cache/CPM"
66+
67+
# Create cache directory for cpm to avoid permission issues
68+
RUN mkdir -p ${HOME}/.cache/cpm

docker/images/run-env-base/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM debian:12-slim
33

44
RUN apt update \
55
&& apt install --no-install-recommends -y \
6-
openjdk-17-jre=17.0.11+9-1~deb12u1 \
6+
openjdk-17-jre=17.0.12+7-2~deb12u1 \
77
nodejs=18.19.0+dfsg-6~deb12u2 \
88
npm=9.2.0~ds1-1 \
99
python3-pip=23.0.1+dfsg-1 \

0 commit comments

Comments
 (0)