обновлён /admin/config и API для os_registry. - Molecule/раннер: env из конфигурации, ensure roleforge-os (ensure_roleforge_os.yml), os_registry_pull и доработки executors / runner / create.yml. - /admin/os-images: выбор реестра, buildx (в т.ч. split amd64+arm64 + imagetools), опция --no-cache, стрим логов; domain.py: план команд build, ретраи push. - UI: брендинг (app_name, app_tagline) из app_config через get_ui_branding_context; base.xhtml, role-create / role-view, core.js, pages-main, стили. - Dockerfiles: требование Python ≥3.9 (assert), доработки alt9/astra/debian9/ubuntu20 и др.; новые Dockerfile.arm64 для centos7/centos8. - Конфиг: .env.example, config.py, pyproject.toml.
40 lines
1.1 KiB
Docker
40 lines
1.1 KiB
Docker
# CentOS 7 ARM64 with systemd (arm64v8 official image)
|
|
# Pair with Dockerfile in this directory: both publish as roleforge-os:centos7 (multi-arch manifest).
|
|
|
|
FROM arm64v8/centos:7
|
|
ENV container=docker
|
|
|
|
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*.repo && \
|
|
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo
|
|
|
|
RUN yum update -y && yum upgrade -y
|
|
|
|
RUN yum install -y epel-release \
|
|
&& yum install -y \
|
|
systemd \
|
|
systemd-sysv \
|
|
dbus \
|
|
curl \
|
|
wget \
|
|
nano \
|
|
python39 \
|
|
python39-pip \
|
|
sudo \
|
|
&& yum clean all
|
|
|
|
RUN alternatives --set python3 /usr/bin/python3.9 2>/dev/null || ln -sf /usr/bin/python3.9 /usr/bin/python3
|
|
|
|
RUN python3 -c "import sys; assert sys.version_info[:2] >= (3, 9), sys.version"
|
|
|
|
RUN systemctl set-default multi-user.target
|
|
|
|
RUN echo "root ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
|
|
echo "ALL ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/ansible-test
|
|
|
|
RUN useradd -m -s /bin/bash ansible \
|
|
&& echo "ansible ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
|
|
STOPSIGNAL SIGRTMIN+3
|
|
VOLUME ["/sys/fs/cgroup"]
|
|
CMD ["/sbin/init"]
|