first commit

This commit is contained in:
Silvan 2024-04-17 22:16:59 +02:00
commit c5ea8886c1
6 changed files with 115 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1
FROM openmamba/openmamba:latest
RUN dnf update --nogpgcheck
RUN dnf install --nogpgcheck -y dnf-plugins-core iputils tar sudo openmamba-unstable-repos autodist apache
RUN dnf config-manager --set-enabled unstable-makedist
COPY rootfiles/ /
RUN dnf install --nogpgcheck -y $(cat /root/builddeps)
EXPOSE 80
CMD [ "apachectl", "-D", "FOREGROUND" ]

46
README.md Normal file
View File

@ -0,0 +1,46 @@
# docker image for openmamba buildvm
This project provides a `Dockerfile` and related files which can be easily used to create a Docker image and
container set up with `autodist` and `webbuild` with the purpose to maintain and build openmamba `RPM` packages.
The project can be used on any O.S. with `docker` installed and supporting one of the following platforms:
* `linux/amd64` (`x86_64`)
* `linux/arm64` (`aarch64`)
* `linux/386` (`i586`)
## Installation
Create image with:
`docker build -t buildvm .`
Create and start a new container with:
`docker run --name buildvm -d -p 80:80 buildvm`
A different name and local port mapping may be used as needed.
## Usage
With a browser access the `webbuild` interface at:
`http://localhost`
To access from another host you may replace `localhost` with the container host (remember to check that exposed port is open in firewall).
Login with the following credentials:
* Username: `autodist`
* Password: `openmamba`
Remote host and different port mapping may be used as needed.
Spawn a shell into the running container with:
`docker exec -it --user root buildvm /bin/bash`
Or as `autodist` user:
`docker exec -it --user autodist buildvm /bin/bash`
## Management
Stop with:
`docker stop buildvm`
Restart with:
`docker start buildvm`

View File

@ -0,0 +1,9 @@
<Directory /var/www/html>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
DirectoryIndex webbuild.html
SetOutputFilter DEFLATE
</Directory>
Timeout 1800

View File

@ -0,0 +1 @@
%sysadmin ALL = NOPASSWD: ALL

40
rootfiles/root/builddeps Normal file
View File

@ -0,0 +1,40 @@
autodist
autodist-webbuild
openmamba-unstable-repos
diffutils
git
glibc-devel
cmake
ninja
gcc
gcc-c++
libstdc++6-devel
qt6-qtbase-devel
qt6-qtwayland-devel
qt6-qtwebengine-devel
qt6-qttools
libmesa-devel
libwayland-egl-devel
libboost-devel
gobject-introspection-devel
vulkan-headers
libalsa-devel
libclang-devel
clang
libpulseaudio-devel
libxkbcommon-devel
libfmt-devel
meson
libpython3-devel
rustc
patch
qt5-devel
libgtk3-devel
nodejs-devel
lld
libcurl-devel
libatomic-devel
libsoup2-devel
python-gi-docgen-py3
libgtk-devel
libruby-devel

View File

@ -0,0 +1,10 @@
USER_ENABLED=1
USER_ADMIN=1
USER_CANINSTALL=1
USER_CANMAINTAIN=1
USER_ALLENVIRONMENTS=1
USER_ALLREPOSITORIES=1
USER_CANSENDMESSAGES=1
USER_SECRET='$1$P$7oMAI2i8QrqpT.xxc20Cd/'
USER_FULLNAME="Automatic Build System"
USER_EMAIL=autodist@openmamba.org