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
8 changes: 7 additions & 1 deletion images/ansible-k8s/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ FROM ghcr.io/fullstack-devops/github-actions-runner:base-latest
USER root
# install packages along with jq so we can parse JSON
# add additional packages as necessary
ARG PACKAGES="ansible"
ARG PACKAGES="ansible skopeo"
ARG PACKAGES_PYTHON="kubernetes"

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
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

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

USER ${USERNAME}

RUN pip3 install ${PACKAGES_PYTHON} --user

RUN ansible-galaxy install -c -r ${TMP_DIR}/requirements.yml
RUN ansible-galaxy collection install -c -r ${TMP_DIR}/requirements.yml

Expand Down
4 changes: 3 additions & 1 deletion images/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM ubuntu:20.04

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

ENV USERNAME="runner"
ENV UBUNTU_VERSION=20.04
ENV RUNNER_HOME="/home/${USERNAME}/runner"

ENV GH_RUNNER_WORKDIR="/home/${USERNAME}"
Expand Down