@@ -3,15 +3,17 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:base-latest
33USER root
44# install packages along with jq so we can parse JSON
55# add additional packages as necessary
6- ARG PACKAGES="openjdk-11-jdk maven nodejs"
6+ ARG PACKAGES="openjdk-11-jdk maven nodejs ansible"
7+ ARG PACKAGES_PYTHON="kubernetes"
78
89RUN apt-get update \
10+ && add-apt-repository -y --update ppa:ansible/ansible \
911 && curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
1012 && apt-get install -y --no-install-recommends ${PACKAGES} \
1113 && rm -rf /var/lib/apt/lists/* \
1214 && apt-get clean
1315
14- ENV GH_RUNNER_LABELS="ubuntu-20.04,maven,openjdk-11,nodejs,go,yarn,helm"
16+ ENV GH_RUNNER_LABELS="ubuntu-20.04,maven,openjdk-11,nodejs,go,yarn,helm,ansible "
1517# https://github.com/helm/helm/releases
1618ARG HELM_VERSION=3.8.1
1719# https://go.dev/dl/
@@ -29,13 +31,27 @@ RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
2931 && rm -rf /usr/local/src/go.linux.tar.gz \
3032 && ln -s /usr/local/src/go/bin/go /usr/local/bin/
3133
32- # install npm tools: yarn
33- RUN npm install --global yarn @angular/cli@13
34+
35+ ENV TMP_DIR=/home/${USERNAME}/tmp
36+
37+ RUN mkdir /home/${USERNAME}/.ansible
38+ RUN mkdir ${TMP_DIR}
39+
40+ COPY requirements.yml ${TMP_DIR}/requirements.yml
3441
3542RUN mkdir -p /home/${USERNAME}/.m2/ \
3643 && chown -R ${USERNAME} /home/${USERNAME}
44+
45+ # install npm tools: yarn
46+ RUN npm install --global yarn @angular/cli@13
47+
3748USER ${USERNAME}
3849
50+ RUN pip3 install ${PACKAGES_PYTHON} --user
51+
52+ # RUN ansible-galaxy install -c -r ${TMP_DIR}/requirements.yml
53+ RUN ansible-galaxy collection install -c -r ${TMP_DIR}/requirements.yml
54+
3955# install helm plugins helm push, appr && diff
4056RUN helm plugin install --version 0.10.2 https://github.com/chartmuseum/helm-push.git \
4157 && helm plugin install --version 0.7.0 https://github.com/app-registry/appr-helm-plugin.git \
0 commit comments