Skip to content

Commit f87af74

Browse files
committed
Add LABELS and fix debian 12 packages
1 parent a1522b7 commit f87af74

11 files changed

Lines changed: 158 additions & 119 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2024 Nicola Asuni - Tecnick.com LTD
3+
Copyright (c) 2016-2025 Nicola Asuni - Tecnick.com LTD
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# @since 2016-09-23
44
# @category Docker
55
# @author Nicola Asuni <info@tecnick.com>
6-
# @copyright 2015-2024 Nicola Asuni - Tecnick.com LTD
6+
# @copyright 2015-2025 Nicola Asuni - Tecnick.com LTD
77
# @license MIT (see LICENSE)
88
# @link https://github.com/tecnickcom/alldev
99
#
@@ -34,6 +34,9 @@ DOCKER_REGISTRY=
3434
# Docker repository
3535
DOCKER_REPOSITORY=${DOCKER_REGISTRY}${VENDOR}
3636

37+
# Current date-time
38+
DATETIME=$(shell date --rfc-3339=seconds)
39+
3740
# --- MAKE TARGETS ---
3841

3942
# Display general help about this command
@@ -55,7 +58,17 @@ all: help
5558
# Build the specified Docker image
5659
.PHONY: build
5760
build:
58-
docker build --compress --no-cache --tag ${DOCKER_REPOSITORY}/${DIMG}:latest --file ./src/${DIMG}.Dockerfile ./src/
61+
docker build \
62+
--compress \
63+
--no-cache \
64+
--tag ${DOCKER_REPOSITORY}/${DIMG}:latest \
65+
--label="com.tecnick.alldev.version=${VERSION}" \
66+
--label="com.tecnick.alldev.release=${RELEASE}" \
67+
--label="org.opencontainers.image.created=${DATETIME}" \
68+
--label="org.opencontainers.image.version=${VERSION}" \
69+
--label="org.opencontainers.image.revision=${RELEASE}" \
70+
--file ./src/${DIMG}.Dockerfile \
71+
./src/
5972
docker tag ${DOCKER_REPOSITORY}/${DIMG}:latest ${DOCKER_REPOSITORY}/${DIMG}:${VERSION}-${RELEASE}
6073

6174
# Upload the specified docker image

src/alldev.Dockerfile

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile
22
#
3-
# Development environment based on phusion/baseimage (Ubuntu)
3+
# Development environment
44
#
55
# @author Nicola Asuni <info@tecnick.com>
66
# @copyright 2016-2025 Nicola Asuni - Tecnick.com LTD
@@ -14,7 +14,6 @@ ARG HUGO_VERSION="0.143.1"
1414
ARG KOTLIN_VERSION="2.1.10"
1515
ARG NOMAD_VERSION="1.9.5"
1616
ARG VENOM_VERSION="v1.2.0"
17-
LABEL com.tecnick.vendor="Tecnick.com"
1817
ENV DEBIAN_FRONTEND noninteractive
1918
ENV TERM linux
2019
ENV HOME /root
@@ -43,17 +42,15 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
4342
&& echo " name = gocd" >> /home/go/.gitconfig \
4443
# Add repositories and update
4544
&& apt update && apt -y dist-upgrade \
46-
&& apt install -y sudo curl apt-utils software-properties-common \
47-
&& apt-add-repository universe \
48-
&& apt-add-repository multiverse \
49-
&& curl -fsSL https://pgp.mongodb.com/server-6.0.asc | apt-key add - \
50-
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list \
45+
&& apt install -y sudo curl locales apt-utils software-properties-common \
46+
&& curl -fsSL https://apt.corretto.aws/corretto.key | gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg \
47+
&& echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | tee /etc/apt/sources.list.d/corretto.list \
48+
&& curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor \
49+
&& echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list \
5150
&& apt update \
52-
# Set Locale
53-
&& apt install -y language-pack-en-base \
5451
&& locale-gen en_US en_US.UTF-8 \
5552
&& dpkg-reconfigure locales \
56-
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
53+
&& curl -sL https://deb.nodesource.com/setup_22.x | bash - \
5754
# install development packages and debugging tools
5855
&& apt install -y \
5956
alien \
@@ -99,6 +96,10 @@ gtk-sharp2 \
9996
htop \
10097
imagemagick \
10198
intltool \
99+
java-1.8.0-amazon-corretto-jdk \
100+
java-11-amazon-corretto-jdk \
101+
java-17-amazon-corretto-jdk \
102+
java-21-amazon-corretto-jdk \
102103
jq \
103104
lcov \
104105
libboost-all-dev \
@@ -123,6 +124,7 @@ liblzma-dev \
123124
libncurses5-dev \
124125
libpng-dev \
125126
libssl-dev \
127+
libtidy5deb1 \
126128
libtiff5-dev \
127129
libtool \
128130
libxml2 \
@@ -136,27 +138,19 @@ libxslt1.1 \
136138
llvm \
137139
lsof \
138140
make \
141+
mariadb-client \
142+
mariadb-server \
139143
mawk \
140144
memcached \
141145
mingw-w64 \
142146
mingw-w64-i686-dev \
143147
mingw-w64-tools \
144148
mingw-w64-x86-64-dev \
145149
mongodb-org \
146-
mysql-client \
147-
mysql-server \
148150
nano \
149151
nodejs \
150152
nsis \
151153
nsis-pluginapi \
152-
openjdk-11-jdk \
153-
openjdk-11-jre \
154-
openjdk-17-jdk \
155-
openjdk-17-jre \
156-
openjdk-21-jdk \
157-
openjdk-21-jre \
158-
openjdk-8-jdk \
159-
openjdk-8-jre \
160154
openssh-client \
161155
openssh-server \
162156
openssl \
@@ -197,8 +191,8 @@ pkg-config \
197191
postgresql \
198192
postgresql-contrib \
199193
pylint \
200-
python-all-dev \
201194
python3-all-dev \
195+
python3-novaclient \
202196
python3-pip \
203197
python3-venv \
204198
r-base \
@@ -212,10 +206,9 @@ ssh \
212206
strace \
213207
swig \
214208
texlive-base \
209+
tidy \
215210
time \
216211
tree \
217-
ubuntu-restricted-addons \
218-
ubuntu-restricted-extras \
219212
uidmap \
220213
unzip \
221214
valgrind \
@@ -229,16 +222,10 @@ zbar-tools \
229222
zip \
230223
zlib1g \
231224
zlib1g-dev \
232-
&& apt install -y \
233-
libwine-development \
234-
wine64 \
235-
wine64-development-tools \
236-
winetricks \
237-
&& update-java-alternatives -s java-1.11.0-openjdk-amd64 \
238225
&& java -version \
239226
# Install extra Python dependencies
240-
&& pip3 install --ignore-installed --upgrade pip \
241-
&& pip3 install --upgrade \
227+
&& pip3 install --ignore-installed --break-system-packages --upgrade pip \
228+
&& pip3 install --break-system-packages --upgrade \
242229
ansible \
243230
autopep8 \
244231
cffi \
@@ -256,7 +243,6 @@ pypandoc \
256243
pytest \
257244
pytest-benchmark \
258245
pytest-cov \
259-
python-novaclient \
260246
pyyaml \
261247
schemathesis \
262248
setuptools \
@@ -286,12 +272,6 @@ js-beautify \
286272
uglify-js \
287273
# Install R packages
288274
&& Rscript -e "install.packages(c('Rcpp', 'base', 'devtools', 'inline', 'pryr', 'renv', 'ragg', 'roxygen2', 'testthat', 'pkgdown', 'libgfortran-ng'), repos = 'http://cran.us.r-project.org')" \
289-
# HTML Tidy
290-
&& cd /tmp \
291-
&& wget http://launchpadlibrarian.net/413419656/libtidy5deb1_5.6.0-10_amd64.deb \
292-
&& wget http://launchpadlibrarian.net/413419657/tidy_5.6.0-10_amd64.deb \
293-
&& dpkg -i libtidy5deb1_5.6.0-10_amd64.deb tidy_5.6.0-10_amd64.deb \
294-
&& rm -f libtidy5deb1_5.6.0-10_amd64.deb tidy_5.6.0-10_amd64.deb \
295275
# Composer
296276
&& cd /tmp \
297277
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
@@ -340,3 +320,12 @@ wget https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VER
340320
&& chown -R root:root /entrypoint-docker.sh \
341321
&& chmod -R g=u /entrypoint-docker.sh
342322
ENTRYPOINT ["/entrypoint-docker.sh"]
323+
LABEL "org.opencontainers.image.authors"="info@tecnick.com"
324+
LABEL "org.opencontainers.image.url"="https://github.com/tecnickcom/alldev"
325+
LABEL "org.opencontainers.image.documentation"="https://github.com/tecnickcom/alldev/blob/main/README.md"
326+
LABEL "org.opencontainers.image.source"="https://github.com/tecnickcom/alldev/blob/main/src/alldev.Dockerfile"
327+
LABEL "org.opencontainers.image.vendor"="tecnickcom"
328+
LABEL "org.opencontainers.image.licenses"="MIT"
329+
LABEL "org.opencontainers.image.title"="alldev"
330+
LABEL "org.opencontainers.image.description"="Linux-based development environment with support for multiple programming languages"
331+
LABEL "org.opencontainers.image.base.name"="debian:12"

src/dood.Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ sudo \
2222
&& chown -R root:root /entrypoint-docker.sh \
2323
&& chmod -R g=u /entrypoint-docker.sh
2424
ENTRYPOINT ["/entrypoint-docker.sh"]
25+
LABEL "org.opencontainers.image.authors"="info@tecnick.com"
26+
LABEL "org.opencontainers.image.url"="https://github.com/tecnickcom/alldev"
27+
LABEL "org.opencontainers.image.documentation"="https://github.com/tecnickcom/alldev/blob/main/README.md"
28+
LABEL "org.opencontainers.image.source"="https://github.com/tecnickcom/alldev/blob/main/src/dood.Dockerfile"
29+
LABEL "org.opencontainers.image.vendor"="tecnickcom"
30+
LABEL "org.opencontainers.image.licenses"="MIT"
31+
LABEL "org.opencontainers.image.title"="dood"
32+
LABEL "org.opencontainers.image.description"="Docker-on-Docker"
33+
LABEL "org.opencontainers.image.base.name"="debian:12"

src/gocd-agent-dood.Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile
22
#
3-
# GoCD elastic agent based on Ubuntu 18.04 (Bionic)
3+
# GoCD elastic agent
44
#
55
# @author Nicola Asuni <info@tecnick.com>
66
# @copyright 2016-2025 Nicola Asuni - Tecnick.com LTD
@@ -10,7 +10,6 @@
1010
ARG DEBIAN_VERSION="12"
1111
ARG GOCD_VERSION="v25.1.0"
1212
FROM gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}
13-
LABEL com.tecnick.vendor="Tecnick.com"
1413
USER root
1514
ENV DEBIAN_FRONTEND noninteractive
1615
ENV TERM linux
@@ -42,3 +41,12 @@ sudo \
4241
&& chmod -R g=u /entrypoint-docker.sh
4342
ENTRYPOINT ["/entrypoint-docker.sh"]
4443
USER go
44+
LABEL "org.opencontainers.image.authors"="info@tecnick.com"
45+
LABEL "org.opencontainers.image.url"="https://github.com/tecnickcom/alldev"
46+
LABEL "org.opencontainers.image.documentation"="https://github.com/tecnickcom/alldev/blob/main/README.md"
47+
LABEL "org.opencontainers.image.source"="https://github.com/tecnickcom/alldev/blob/main/src/gocd-agent-dood.Dockerfile"
48+
LABEL "org.opencontainers.image.vendor"="tecnickcom"
49+
LABEL "org.opencontainers.image.licenses"="MIT"
50+
LABEL "org.opencontainers.image.title"="gocd-agent-dood"
51+
LABEL "org.opencontainers.image.description"="GoCD agent with Docker on Docker"
52+
LABEL "org.opencontainers.image.base.name"="gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}"

src/gocd-agent-golang.Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile
22
#
3-
# GoCD elastic agent based on Ubuntu 18.04 (Bionic)
3+
# GoCD elastic agent
44
#
55
# @author Nicola Asuni <info@tecnick.com>
66
# @copyright 2016-2025 Nicola Asuni - Tecnick.com LTD
@@ -14,7 +14,6 @@ ARG FLYWAY_VERSIONS="11.3.1,10.22.0,7.15.0,9.22.3"
1414
ARG GO_VERSION="1.23.6"
1515
ARG NOMAD_VERSION="1.9.5"
1616
ARG VENOM_VERSION="v1.2.0"
17-
LABEL com.tecnick.vendor="Tecnick.com"
1817
USER root
1918
ENV DEBIAN_FRONTEND noninteractive
2019
ENV TERM linux
@@ -44,10 +43,7 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
4443
# Add repositories and update
4544
&& apt update && apt -y dist-upgrade \
4645
&& apt install -y gnupg apt-utils software-properties-common \
47-
&& apt-add-repository universe \
48-
&& apt-add-repository multiverse \
4946
&& apt update \
50-
&& apt install -y language-pack-en-base \
5147
&& locale-gen en_US en_US.UTF-8 \
5248
&& dpkg-reconfigure locales \
5349
# install development packages and debugging tools
@@ -69,7 +65,7 @@ libffi-dev \
6965
libssl-dev \
7066
libxml2-utils \
7167
make \
72-
mysql-client \
68+
mariadb-client \
7369
openssl \
7470
parallel \
7571
perl \
@@ -90,8 +86,8 @@ xmldiff \
9086
xmlindent \
9187
zip \
9288
# Install extra Python dependencies
93-
&& pip3 install --ignore-installed --upgrade pip \
94-
&& pip3 install --upgrade \
89+
&& pip3 install --ignore-installed --break-system-packages --upgrade pip \
90+
&& pip3 install --break-system-packages --upgrade \
9591
check-jsonschema \
9692
httpx \
9793
jsonschema \
@@ -145,3 +141,12 @@ wget https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VER
145141
&& chmod -R g=u /entrypoint-docker.sh
146142
ENTRYPOINT ["/entrypoint-docker.sh"]
147143
USER go
144+
LABEL "org.opencontainers.image.authors"="info@tecnick.com"
145+
LABEL "org.opencontainers.image.url"="https://github.com/tecnickcom/alldev"
146+
LABEL "org.opencontainers.image.documentation"="https://github.com/tecnickcom/alldev/blob/main/README.md"
147+
LABEL "org.opencontainers.image.source"="https://github.com/tecnickcom/alldev/blob/main/src/gocd-agent-golang.Dockerfile"
148+
LABEL "org.opencontainers.image.vendor"="tecnickcom"
149+
LABEL "org.opencontainers.image.licenses"="MIT"
150+
LABEL "org.opencontainers.image.title"="gocd-agent-golang"
151+
LABEL "org.opencontainers.image.description"="GoCD agent with Go (golang)"
152+
LABEL "org.opencontainers.image.base.name"="gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}"

0 commit comments

Comments
 (0)