Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 3d06cbb

Browse files
authored
Merge pull request #12 from fullstack-devops/feature/python-and-skopeo
add python to base + skopeo to ansible-k8s
2 parents dd8897d + 88020ec commit 3d06cbb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

images/ansible-k8s/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:base-latest
33
USER root
44
# install packages along with jq so we can parse JSON
55
# add additional packages as necessary
6-
ARG PACKAGES="ansible"
6+
ARG PACKAGES="ansible skopeo"
7+
ARG PACKAGES_PYTHON="kubernetes"
8+
9+
RUN echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${UBUNTU_VERSION}/ /" | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
10+
RUN curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${UBUNTU_VERSION}/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_stable.gpg > /dev/null
711

812
RUN apt-get update \
913
&& apt-get install -y --no-install-recommends ${PACKAGES} \
@@ -37,6 +41,8 @@ RUN chown -R ${USERNAME} /home/${USERNAME}
3741

3842
USER ${USERNAME}
3943

44+
RUN pip3 install ${PACKAGES_PYTHON} --user
45+
4046
RUN ansible-galaxy install -c -r ${TMP_DIR}/requirements.yml
4147
RUN ansible-galaxy collection install -c -r ${TMP_DIR}/requirements.yml
4248

images/base/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
FROM ubuntu:20.04
22

3+
ARG UBUNTU_VERSION=20.04
34
ARG DEBIAN_FRONTEND=noninteractive
4-
ARG PACKAGES="libffi-dev libicu-dev build-essential libssl-dev ca-certificates jq sed grep git curl wget zip"
5+
ARG PACKAGES="libffi-dev libicu-dev build-essential libssl-dev ca-certificates jq sed grep git curl wget zip python3-pip"
56

67
ENV USERNAME="runner"
8+
ENV UBUNTU_VERSION=20.04
79
ENV RUNNER_HOME="/home/${USERNAME}/runner"
810

911
ENV GH_RUNNER_WORKDIR="/home/${USERNAME}"

0 commit comments

Comments
 (0)