First commit
This commit is contained in:
9
.gitea/workflows/builder.yaml
Normal file
9
.gitea/workflows/builder.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
name: Build toolchain image
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: fedora-39
|
||||||
|
steps:
|
||||||
|
- run: docker build .
|
||||||
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM fedora:39
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY pre.sh /root/
|
||||||
|
|
||||||
|
RUN /root/pre.sh
|
||||||
36
pre.sh
Executable file
36
pre.sh
Executable file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
# Python packages
|
||||||
|
pip3 install \
|
||||||
|
ansible pyinfra fabric \
|
||||||
|
build \
|
||||||
|
flask gunicorn \
|
||||||
|
buildbot buildbot-www buildbot-worker \
|
||||||
|
service_identity alembic
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
dnf -y install dnf-plugins-core
|
||||||
|
dnf config-manager \
|
||||||
|
--add-repo \
|
||||||
|
https://download.docker.com/linux/fedora/docker-ce.repo
|
||||||
|
dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
|
|
||||||
|
# Minio
|
||||||
|
wget -O /usr/local/bin/minio-client https://dl.min.io/client/mc/release/linux-amd64/mc
|
||||||
|
chmod +x /usr/local/bin/minio-client
|
||||||
|
|
||||||
|
dnf -y clean all
|
||||||
Reference in New Issue
Block a user