Progress on testing provisioning on multiple distros. So far Debian and Ubuntu are working. Others need packages added.

This commit is contained in:
2025-10-10 16:07:17 -07:00
parent bde78a1489
commit 9381d61d99
9 changed files with 258 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# Create a VM for testing Ansible provisioning.
FROM archlinux:base
RUN pacman -Syu --noconfirm && pacman -Sy --noconfirm git bash curl sudo
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh
WORKDIR /root/
USER root
CMD ./main.sh

View File

@@ -0,0 +1,12 @@
# Create a VM for testing Ansible provisioning.
FROM debian:trixie
RUN apt update && apt dist-upgrade -y && apt install -y git bash curl sudo
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh
WORKDIR /root/
USER root
CMD ./main.sh

View File

@@ -0,0 +1,12 @@
# Create a VM for testing Ansible provisioning.
FROM fedora:latest
RUN dnf upgrade --refresh -y && dnf install -y git bash curl sudo
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh
WORKDIR /root/
USER root
CMD ./main.sh

View File

@@ -0,0 +1,14 @@
# Create a VM for testing Ansible provisioning.
FROM opensuse/tumbleweed
RUN zypper -n refresh \
&& zypper -n dist-upgrade -y \
&& zypper -n install -y git bash curl sudo
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh
WORKDIR /root/
USER root
CMD ./main.sh

View File

@@ -0,0 +1,12 @@
# Create a VM for testing Ansible provisioning.
FROM ubuntu:rolling
RUN apt update && apt dist-upgrade -y && apt install -y git bash curl sudo
COPY bin/main.sh /root/main.sh
RUN chmod +x /root/main.sh
WORKDIR /root/
USER root
CMD ./main.sh