Add custom runner image with ansible, terraform, community.docker
This commit is contained in:
24
runner/Dockerfile
Normal file
24
runner/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ansible \
|
||||
curl \
|
||||
git \
|
||||
gnupg \
|
||||
openssh-client \
|
||||
python3 \
|
||||
python3-pip \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Terraform
|
||||
RUN curl -fsSL https://releases.hashicorp.com/terraform/1.10.5/terraform_1.10.5_linux_amd64.zip -o terraform.zip \
|
||||
&& unzip terraform.zip -d /usr/local/bin \
|
||||
&& rm terraform.zip
|
||||
|
||||
# Ansible collections
|
||||
RUN ansible-galaxy collection install community.docker
|
||||
|
||||
RUN terraform --version && ansible --version
|
||||
Reference in New Issue
Block a user