From b8becc2863276c45a3a555e7978dfabe5fbef7f4 Mon Sep 17 00:00:00 2001
From: doriank <doriank@fsmpi.rwth-aachen.de>
Date: Wed, 8 May 2024 11:24:55 +0200
Subject: [PATCH] Limit pipeline, add doc

---
 .gitlab-ci.yml |  3 +++
 README.md      | 14 +++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8bdcbe3..58626f2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,9 @@
 build:
   stage: build
+  when: manual
   timeout: 2h
+  rules:
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
   image:
     name: gcr.io/kaniko-project/executor:debug
     entrypoint: [""]
diff --git a/README.md b/README.md
index 8ca3d4b..75ef25c 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,13 @@
-Docker image for rendering videos
\ No newline at end of file
+Docker image for rendering videos
+
+# regular use (not tested)
+
+`docker run --rm -it -v ./240429:/240429 registry.git.fsmpi.rwth-aachen.de/doriank/render_video_docker/render_video -C /240429 -c "24ss-algomod" -l "Algorithmische Modelltheorie"`
+
+It is a good idea to run the docker container non-elevated or else the files will have owner root
+
+# rwth cluster
+
+`apptainer pull render_container docker://registry.git.fsmpi.rwth-aachen.de/doriank/render_video_docker/render_video`
+
+`apptainer exec --mount type=bind,source=/hpcwork,destination=/hpcwork render_container /binaries/debug/render_video -C $HPCWORK/240429 -c "24ss-algomod" -l "Algorithmische Modelltheorie" -t 720p -T 1440p`
\ No newline at end of file
-- 
GitLab