This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,11 +1,18 @@
|
||||
FROM fedora:41 AS basic
|
||||
|
||||
WORKDIR /build
|
||||
WORKDIR /workbench
|
||||
|
||||
COPY pre.sh /root/
|
||||
COPY pre.sh requirements.txt docker.sh minio.sh /root/
|
||||
|
||||
RUN /root/pre.sh
|
||||
|
||||
RUN /root/docker.sh
|
||||
|
||||
RUN /root/minio.sh
|
||||
|
||||
# Python packages
|
||||
RUN pip3 install -r /root/requirements.txt
|
||||
|
||||
# FROM basic
|
||||
|
||||
# WORKDIR /app
|
||||
|
||||
13
docker.sh
Executable file
13
docker.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Docker
|
||||
dnf -y install dnf-plugins-core
|
||||
dnf5 config-manager \
|
||||
addrepo \
|
||||
--from-repofile \
|
||||
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
|
||||
|
||||
dnf -y clean all
|
||||
7
minio.sh
Executable file
7
minio.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# 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
|
||||
21
pre.sh
21
pre.sh
@@ -14,25 +14,4 @@ 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 aiohttp \
|
||||
buildbot buildbot-www buildbot-worker \
|
||||
buildbot-waterfall-view buildbot-console-view buildbot-grid-view \
|
||||
service_identity alembic
|
||||
|
||||
# Docker
|
||||
dnf -y install dnf-plugins-core
|
||||
dnf5 config-manager \
|
||||
addrepo \
|
||||
--from-repofile \
|
||||
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
|
||||
|
||||
25
requirements.txt
Normal file
25
requirements.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
ansible
|
||||
pyinfra
|
||||
fabric
|
||||
build
|
||||
flask
|
||||
gunicorn
|
||||
aiohttp
|
||||
|
||||
lxml
|
||||
lxml_html_clean
|
||||
markdown
|
||||
|
||||
buildbot
|
||||
buildbot-www
|
||||
buildbot-worker
|
||||
buildbot-waterfall-view
|
||||
buildbot-console-view
|
||||
buildbot-grid-view
|
||||
service_identity
|
||||
|
||||
sqlalchemy
|
||||
sqlalchemy_utils
|
||||
alembic
|
||||
|
||||
jsonrpc@git+https://codex.r10x.net/RemiZOffAlex/jsonrpc
|
||||
Reference in New Issue
Block a user