Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build-gitlab-container-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}

- name: Building an example chroot...
run: |
sudo apt install make pkg-config sudo debootstrap libcgroup-dev php-cli php-curl php-json php-xml php-zip lsof procps gcc g++ libcgroup-dev make acl zip unzip pv mariadb-server nginx php php-fpm php-gd php-cli php-intl php-mbstring php-mysql php-curl php-json php-xml php-zip composer ntp python3-yaml php-bcmath
cd docker-gitlabci
wget https://github.com/DOMjudge/domjudge/archive/refs/heads/main.zip
unzip main.zip
cd domjudge-main
make configure
./configure --with-domjudge-user=domjudge --with-judgehost_chrootdir="$(pwd)/chroot"
cd misc-tools
make dj_make_chroot
sudo ./dj_make_chroot
sudo tar cf "$(pwd)/chroot" chroot.tar

- run: |
sudo find . -name chroot
pwd
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
Expand Down
3 changes: 3 additions & 0 deletions docker-gitlabci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ RUN wget $GITHUBDICTIONARY -O $CODESPELLDICTLOCATION
# Do some extra setup
RUN mkdir -p /run/php \
&& rm /etc/php/*/fpm/pool.d/www.conf

COPY ["domjudge-main/chroot.tar", "/"]
ADD ["domjudge-main/chroot.tar", "/"]
1 change: 1 addition & 0 deletions docker-gitlabci/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -e

# This script is not used in GHA CI
if [[ -n ${CI} ]]
then
set -euxo pipefail
Expand Down
Loading