Skip to content

Commit

Permalink
Extend development environment base image
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Aug 5, 2024
1 parent bb4a8c3 commit 2a351c3
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions docker/images/dev-env-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,35 @@ RUN apt update \
graphviz=2.42.2-7+b3 \
build-essential=12.9 \
cppcheck=2.10-2 \
bash-completion=1:2.11-6
bash-completion=1:2.11-6 \
vim=2:9.0.1378-2 \
# Development Tools - Debugging
gdb=13.1-3 \
nmap=7.93+dfsg1-1
# Development Tools - Documentation
RUN python3 -m pip install --break-system-packages \
# language server RST/Sphinx
esbonio==0.16.4 \
# Style checker for RST/Sphinx
doc8==1.1.1
# Development Tools - Docker
RUN sudo apt update && sudo apt install -y --no-install-recommends \

Check failure on line 39 in docker/images/dev-env-base/Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

docker/images/dev-env-base/Dockerfile#L39

Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root
ca-certificates \
curl \
&& sudo install -m 0755 -d /etc/apt/keyrings \
&& sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
&& sudo chmod a+r /etc/apt/keyrings/docker.asc \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& sudo apt update \
&& sudo apt install -y --no-install-recommends \
docker-ce=5:27.0.3-1~debian.12~bookworm \
docker-ce-cli=5:27.1.1-1~debian.12~bookworm \
containerd.io=1.7.19-1 \
docker-buildx-plugin=0.16.1-1~debian.12~bookworm \
docker-compose-plugin=2.29.1-1~debian.12~bookworm

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

ENV PATH="/home/$USERNAME/.local/bin:$PATH"
ENV CPM_SOURCE_CACHE="/home/$USERNAME/.cache/CPM"

# Create cache directory for cpm to avoid permission issues
RUN mkdir -p ${HOME}/.cache/cpm

Check notice on line 68 in docker/images/dev-env-base/Dockerfile

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

docker/images/dev-env-base/Dockerfile#L68

Double quote to prevent globbing and word splitting.

0 comments on commit 2a351c3

Please sign in to comment.