1
0
Fork 0

Switch to buildservice

Use the Toolforge build service to build a custom container that we then
run using the jobs service.

Bug: T370565
This commit is contained in:
Bryan Davis 2024-07-21 21:35:00 -06:00 committed by BryanDavis
parent 0bcf6c708d
commit a71d1644e8
2 changed files with 11 additions and 12 deletions

View file

@ -1,2 +1,6 @@
#!/bin/bash
toolforge jobs run build --command "bash -c 'source ~/.profile && cd ~/ircservserv && cargo build --release'" --image python3.11 --mem 2G --cpu 3 --wait 3600 --filelog-stdout logs/build-out.log --filelog-stderr logs/build-err.log
#!/usr/bin/env bash
set -Eeuo pipefail
REF=${1:-main}
REPO=https://gitlab.wikimedia.org/toolforge-repos/ircservserv
exec toolforge build start --ref $REF $REPO

View file

@ -1,12 +1,7 @@
- command: logrotate -v $TOOL_DATA_DIR/logrotate.conf --state $TOOL_DATA_DIR/.logrotate.state
emails: onfailure
filelog-stderr: logs/logrotate-err.log
filelog-stdout: logs/logrotate-out.log
image: mariadb
name: logrotate
schedule: '@daily'
- command: ./ircservserv/target/release/ircservserv
---
- name: ircservserv
command: ./ircservserv.sh
image: tool-ircservserv/tool-ircservserv:latest
continuous: true
emails: onfailure
image: bookworm
name: ircservserv
mount: all