- ansible/: VM provisioning playbooks and roles - provision-vm.yml: create KVM VM from Ubuntu cloud image - install.yml: install OpenClaw on guest (upstream) - customize.yml: swappiness, virtiofs fstab, linger - roles/vm/: libvirt domain XML, cloud-init templates - inventory.yml + host_vars/zap.yml: zap instance config - backup-openclaw-vm.sh: daily rsync + MinIO upload - restore-openclaw-vm.sh: full redeploy from scratch - README.md: full operational documentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
622 B
Docker
30 lines
622 B
Docker
FROM ubuntu:24.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install Ansible and dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
ansible \
|
|
python3 \
|
|
python3-apt \
|
|
sudo \
|
|
systemd \
|
|
git \
|
|
curl \
|
|
ca-certificates \
|
|
acl \
|
|
gpg \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy project into container
|
|
COPY . /opt/ansible
|
|
WORKDIR /opt/ansible
|
|
|
|
# Install Ansible Galaxy collections
|
|
RUN ansible-galaxy collection install -r requirements.yml
|
|
|
|
# Default: run the test entrypoint
|
|
ENTRYPOINT ["bash", "tests/entrypoint.sh"]
|