From 798071b0513f95426d5ee4395a54cbe443e2eedb Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 11 Nov 2024 02:12:44 +0000 Subject: [PATCH] full path for python path --- .gitignore | 1 + Dockerfile | 2 +- allocate-ephemeral-runner-with-stargz.sh | 31 +++--- apptainer-helper.sh | 25 +++++ containerd-config.toml | 4 + echo.sh | 4 + notes.md | 119 +++++++++++++++++++++++ poll_slurm_status.py | 61 ++++++++++++ 8 files changed, 232 insertions(+), 15 deletions(-) create mode 100755 apptainer-helper.sh create mode 100644 containerd-config.toml create mode 100644 echo.sh create mode 100644 notes.md create mode 100644 poll_slurm_status.py diff --git a/.gitignore b/.gitignore index fcaa5d5..3c5f44d 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,4 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +main.py diff --git a/Dockerfile b/Dockerfile index af55ad8..065a325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN pip3 install -r requirements.txt # Run the Python script # Note the env variable GITHUB_ACCESS_TOKEN will need to be set in order to authenticate with the GitHub API -CMD ["python3", "main.py"] +CMD ["python3", "/home/watcloud-slurm-ci/main.py"] # ENTRYPOINT ["python3", "/app/main.py"] # Custom user for running the CI diff --git a/allocate-ephemeral-runner-with-stargz.sh b/allocate-ephemeral-runner-with-stargz.sh index f4681c4..2c63b26 100755 --- a/allocate-ephemeral-runner-with-stargz.sh +++ b/allocate-ephemeral-runner-with-stargz.sh @@ -16,9 +16,9 @@ record_timing() { } # Check if all required arguments are provided -if [ $# -lt 4 ]; then +if [ $# -lt 5 ]; then log "ERROR: Missing required arguments" - log "Usage: $0