Update
Some checks failed
Build toolchain image / Builder (push) Failing after 22s

This commit is contained in:
2026-03-16 15:19:27 +03:00
parent 3d52349433
commit 786c64024c
8 changed files with 60 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ jobs:
dnf5 config-manager addrepo --from-repofile
https://download.docker.com/linux/fedora/docker-ce.repo
- run: dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- run: docker pull fedora:42
- run: docker pull fedora:43
- run: dnf -y install git
- run: git config --global url."https://${ACTIONS_RUNTIME_TOKEN}:x-oauth-basic@codex.r10x.net/".insteadOf "${GITHUB_SERVER_URL}"
- run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${PWD}

23
ci/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM fedora:43 AS basic
ENV PYTHONUNBUFFERED=1
COPY ci/dnf.conf /etc/dnf/dnf.conf
COPY \
ci/pre.sh \
ci/pip.sh \
ci/docker.sh \
ci/minio.sh \
ci/requirements.txt /root/
RUN /root/pre.sh
RUN /root/docker.sh
RUN /root/pip.sh
RUN /root/minio.sh
# Python packages
RUN pip3 install -r /root/requirements.txt
FROM basic
WORKDIR /app

12
ci/dnf.conf Normal file
View File

@@ -0,0 +1,12 @@
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
#zchunk=False
fastestmirror=True
#max_parallel_downloads=10
#ip_resolve=4
#minrate=300k
#timeout=20

7
ci/pip.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
curl --output /root/get-pip.py https://bootstrap.pypa.io/get-pip.py
python3 /root/get-pip.py
rm /root/get-pip.py

17
ci/pre.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -e
dnf -y update
dnf -y install nano rsync wget curl git git-all mc tree openssl \
unzip zip \
mtr traceroute net-tools tcpdump bind-utils \
tcsh sysstat atop chrony ntpstat nginx \
postgresql
dnf -y group install standard core \
hardware-support development-libs development-tools
dnf -y install postgresql-server-devel
dnf -y clean all