From 2ff39732b4f3083e53845f041f99305dd7e995f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leroy=20R=C3=BCgemer?= Date: Mon, 9 Sep 2024 09:13:46 +0200 Subject: [PATCH] update build instructuions, support podman --- README.md | 7 +++++++ build.sh | 11 +++++++++++ latexdockercmd.sh | 4 ---- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100755 build.sh delete mode 100755 latexdockercmd.sh diff --git a/README.md b/README.md index bf3c4596..ef2fe55a 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,13 @@ The RoboCup @Home Organizing Committee is always looking for volunteers to assis Contributions and improvements to the rulebook are always welcome in the form of pull requests. +### Building + +The easiest way is to utilize the `docker.io/texlive/texlive:TL2022-historic` image to build everything. + +For convenience, you should execute `build.sh` to make the PDFs with a container runtime. (This requires either `docker` or `podman` to be installed) + + ### Recorded data Data is recorded from the robots during the competition. It is available through the following links: diff --git a/build.sh b/build.sh new file mode 100755 index 00000000..7eaf2b37 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +IMAGE=docker.io/texlive/texlive:TL2022-historic + +if command -v podman >/dev/null 2>&1 +then + podman run --rm --net=none -w /data/ -v`pwd`:/data -e TERM=xterm-256color $IMAGE make all +else + docker run --rm --user="$(id -u):$(id -g)" --net=none -w /data/ -v`pwd`:/data -e TERM=xterm-256color $IMAGE make all +fi + diff --git a/latexdockercmd.sh b/latexdockercmd.sh deleted file mode 100755 index dd9228b7..00000000 --- a/latexdockercmd.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -IMAGE=texlive/texlive:TL2022-historic -docker run --rm --user="$(id -u):$(id -g)" --net=none -w /data/ -v`pwd`:/data -e TERM=xterm-256color $IMAGE make all