Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN mkdir /helper-scripts \
&& mkdir -p /kaniko/workspace

# Copy image helper scripts
COPY ./helper-scripts/detect-setup.sh /helper-scripts/detect-setup.sh
COPY ./helper-scripts/gh-entrypoint.sh /helper-scripts/gh-entrypoint.sh
COPY ./helper-scripts/kaniko-wrapper.sh /helper-scripts/kaniko-wrapper.sh
COPY ./helper-scripts/translate-aarch.sh /helper-scripts/translate-aarch.sh
Expand Down
23 changes: 23 additions & 0 deletions images/base/helper-scripts/detect-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

CA_FILE="/etc/ssl/certs/ca-certificates.crt"

# yarn
if command -v yarn -v &> /dev/null; then
echo "add $CA_FILE to yarn"
yarn config set cafile $CA_FILE
fi

# java
if command -v java --version &> /dev/null; then
echo "add $CA_FILE to yarn"
keytool -importcert -alias $CA_FILE -keystore /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/jre/lib/security/cacerts -storepass changeit -file $CA_FILE -noprompt
fi

# maven
if command -v mvn -v &> /dev/null; then
if [ -f /mnt/dynamic/settings.xml ]; then
echo "linking settings.xml from /mnt/dynamic/settings.xml to ${HOME}/.m2/settings.xml"
ln -s /mnt/dynamic/settings.xml ${HOME}/.m2/settings.xml
fi
fi
3 changes: 3 additions & 0 deletions images/base/helper-scripts/gh-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ echo "Connecting runner to: $RUNNER_URL"
echo "Individual Runner Name: $HOSTNAME"
echo "Runner Home: $RUNNER_HOME"

echo "Running setup fpr installed software..."
/helper-scripts/detect-setup.sh

${RUNNER_HOME}/config.sh \
--name $HOSTNAME \
--token $REG_TOKEN \
Expand Down
11 changes: 7 additions & 4 deletions images/maven-adopt-8-ng/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:latest-base
USER root
# install packages along with jq so we can parse JSON
# add additional packages as necessary
ARG PACKAGES="openjdk-11-jdk maven nodejs ansible"
ARG PACKAGES="adoptopenjdk-8-hotspot xmlstarlet maven nodejs ansible"
ARG PACKAGES_PYTHON="kubernetes"

## ansible keys
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add - \
&& echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
## adoptopenjdk keys
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - \
&& echo "deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ focal main" >> /etc/apt/sources.list

RUN apt-get update \
&& add-apt-repository -y --update ppa:ansible/ansible \
Expand All @@ -17,7 +20,7 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean

ENV GH_RUNNER_LABELS="ubuntu-20.04,maven,openjdk-11,nodejs,go,yarn,helm,ansible"
ENV GH_RUNNER_LABELS="ubuntu-20.04,maven,openjdk-8,nodejs,go,yarn,helm,ansible"
# https://github.com/helm/helm/releases
ARG HELM_VERSION=3.8.1

Expand Down
4 changes: 2 additions & 2 deletions images/maven-temurin-11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ ARG PACKAGES="temurin-11-jdk maven nodejs ansible"
ARG PACKAGES_PYTHON="kubernetes"

## ansible keys
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
RUN echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
RUN wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add - \
&& echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list

RUN apt-get update \
&& add-apt-repository -y --update ppa:ansible/ansible \
Expand Down