Skip to content

Commit

Permalink
- Add ARG for MongoDB and Node
Browse files Browse the repository at this point in the history
- Fix ARG for base image label
  • Loading branch information
nicolaasuni committed Feb 7, 2025
1 parent f87af74 commit c624ff3
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ help:
@echo "${PROJECT} Makefile."
@echo "The following commands are available:"
@echo ""
@echo " make build DIMG=<IMAGE_DIR> : Build the specified Docker images"
@echo " make build DIMG=<IMAGE_DIR> : Build the specified Docker images"
@echo " make upload DIMG=<IMAGE_DIR> : Upload the specified Docker images (only with the right credentials)"
@echo " make tag : Tag the Git repository"
@echo ""
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13.0.0
13.1.0
8 changes: 5 additions & 3 deletions src/alldev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ARG FLYWAY_VERSIONS="11.3.1,10.22.0,7.15.0,9.22.3"
ARG GO_VERSION="1.23.6"
ARG HUGO_VERSION="0.143.1"
ARG KOTLIN_VERSION="2.1.10"
ARG MONGODB_VERSION="8.0"
ARG NODE_VERSION="22"
ARG NOMAD_VERSION="1.9.5"
ARG VENOM_VERSION="v1.2.0"
ENV DEBIAN_FRONTEND noninteractive
Expand Down Expand Up @@ -45,12 +47,12 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
&& apt install -y sudo curl locales apt-utils software-properties-common \
&& curl -fsSL https://apt.corretto.aws/corretto.key | gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | tee /etc/apt/sources.list.d/corretto.list \
&& curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor \
&& 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 \
&& curl -fsSL https://www.mongodb.org/static/pgp/server-${MONGODB_VERSION}.asc | gpg -o /usr/share/keyrings/mongodb-server-${MONGODB_VERSION}.gpg --dearmor \
&& echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-${MONGODB_VERSION}.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/${MONGODB_VERSION} main" | sudo tee /etc/apt/sources.list.d/mongodb-org-${MONGODB_VERSION}.list \
&& apt update \
&& locale-gen en_US en_US.UTF-8 \
&& dpkg-reconfigure locales \
&& curl -sL https://deb.nodesource.com/setup_22.x | bash - \
&& curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - \
# install development packages and debugging tools
&& apt install -y \
alien \
Expand Down
2 changes: 2 additions & 0 deletions src/gocd-agent-dood.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
ARG DEBIAN_VERSION="12"
ARG GOCD_VERSION="v25.1.0"
FROM gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}
ARG DEBIAN_VERSION
ARG GOCD_VERSION
USER root
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
Expand Down
2 changes: 2 additions & 0 deletions src/gocd-agent-golang.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
ARG DEBIAN_VERSION="12"
ARG GOCD_VERSION="v25.1.0"
FROM gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}
ARG DEBIAN_VERSION
ARG GOCD_VERSION
ARG FLYWAY_VERSIONS="11.3.1,10.22.0,7.15.0,9.22.3"
ARG GO_VERSION="1.23.6"
ARG NOMAD_VERSION="1.9.5"
Expand Down
2 changes: 2 additions & 0 deletions src/gocd-agent-java.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
ARG DEBIAN_VERSION="12"
ARG GOCD_VERSION="v25.1.0"
FROM gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}
ARG DEBIAN_VERSION
ARG GOCD_VERSION
ARG NOMAD_VERSION="1.9.5"
ARG KOTLIN_VERSION="2.1.10"
ARG VENOM_VERSION="v1.2.0"
Expand Down
2 changes: 2 additions & 0 deletions src/gocd-agent-python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
ARG DEBIAN_VERSION="12"
ARG GOCD_VERSION="v25.1.0"
FROM gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}
ARG DEBIAN_VERSION
ARG GOCD_VERSION
USER root
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
Expand Down
6 changes: 5 additions & 1 deletion src/gocd-agent.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
ARG DEBIAN_VERSION="12"
ARG GOCD_VERSION="v25.1.0"
FROM gocd/gocd-agent-debian-${DEBIAN_VERSION}:${GOCD_VERSION}
ARG DEBIAN_VERSION
ARG GOCD_VERSION
ARG FLYWAY_VERSIONS="11.3.1,10.22.0,7.15.0,9.22.3"
ARG GO_VERSION="1.23.6"
ARG HUGO_VERSION="0.143.1"
ARG KOTLIN_VERSION="2.1.10"
ARG MONGODB_VERSION="8.0"
ARG NODE_VERSION="22"
ARG NOMAD_VERSION="1.9.5"
ARG VENOM_VERSION="v1.2.0"
LABEL com.tecnick.vendor="Tecnick.com"
Expand Down Expand Up @@ -44,7 +48,7 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
&& echo " email = [email protected]" >> /home/go/.gitconfig \
&& echo " name = gocd" >> /home/go/.gitconfig \
# Add repositories and update
&& curl -sL https://deb.nodesource.com/setup_22.x | bash - \
&& curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - \
&& apt update && apt -y dist-upgrade \
&& apt install -y gnupg apt-utils software-properties-common \
&& curl -fsSL https://apt.corretto.aws/corretto.key | gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg \
Expand Down
1 change: 1 addition & 0 deletions src/golang.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# ------------------------------------------------------------------------------
ARG GO_VERSION="1.23"
FROM golang:${GO_VERSION}
ARG GO_VERSION
ENV PATH=/root/.local/bin:$PATH
ENV USER=root
RUN apt update \
Expand Down

0 comments on commit c624ff3

Please sign in to comment.