Slim runner image to Alpine, revert hosts/CA cert complexity

This commit is contained in:
Ryan Moon
2026-03-31 18:59:38 -05:00
parent 8595eac107
commit 10471a97af
2 changed files with 5 additions and 15 deletions

View File

@@ -1,11 +1,4 @@
--- ---
- name: Resolve Gitea domain to private IP (avoid Cloudflare for internal traffic)
lineinfile:
path: /etc/hosts
line: "{{ ansible_eth0.ipv4.address }} {{ gitea_domain }}"
regexp: "{{ gitea_domain }}"
state: present
- name: Create gitea-runner data directory - name: Create gitea-runner data directory
file: file:
path: "{{ gitea_runner_data_dir }}" path: "{{ gitea_runner_data_dir }}"

View File

@@ -1,17 +1,14 @@
FROM ubuntu:24.04 FROM alpine:3.21
ENV DEBIAN_FRONTEND=noninteractive RUN apk add --no-cache \
RUN apt-get update && apt-get install -y \
ansible \ ansible \
bash \
curl \ curl \
git \ git \
gnupg \
openssh-client \ openssh-client \
python3 \ python3 \
python3-pip \ py3-pip \
unzip \ unzip
&& rm -rf /var/lib/apt/lists/*
# Terraform # Terraform
RUN curl -fsSL https://releases.hashicorp.com/terraform/1.10.5/terraform_1.10.5_linux_amd64.zip -o terraform.zip \ RUN curl -fsSL https://releases.hashicorp.com/terraform/1.10.5/terraform_1.10.5_linux_amd64.zip -o terraform.zip \