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
file:
path: "{{ gitea_runner_data_dir }}"

View File

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