@@ -4,6 +4,7 @@ USER root
44# install packages along with jq so we can parse JSON
55# add additional packages as necessary
66ARG PACKAGES="openjdk-11-jdk maven nodejs ansible"
7+ ARG PACKAGES_PYTHON="kubernetes"
78
89RUN apt-get update \
910 && add-apt-repository -y --update ppa:ansible/ansible \
@@ -30,13 +31,27 @@ RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
3031 && rm -rf /usr/local/src/go.linux.tar.gz \
3132 && ln -s /usr/local/src/go/bin/go /usr/local/bin/
3233
33- # install npm tools: yarn
34- 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
3541
3642RUN mkdir -p /home/${USERNAME}/.m2/ \
3743 && chown -R ${USERNAME} /home/${USERNAME}
44+
45+ # install npm tools: yarn
46+ RUN npm install --global yarn @angular/cli@13
47+
3848USER ${USERNAME}
3949
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+
4055# install helm plugins helm push, appr && diff
4156RUN helm plugin install --version 0.10.2 https://github.com/chartmuseum/helm-push.git \
4257 && helm plugin install --version 0.7.0 https://github.com/app-registry/appr-helm-plugin.git \
0 commit comments