Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexboden committed Nov 15, 2024
1 parent 7abb50d commit c2c0278
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y python3 python3-pip
WORKDIR /home/watcloud-slurm-ci/

# Copy the Python script and any necessary files
COPY main.py config.py runner_size_config.py debug.py RunningJob.py allocate-ephemeral-runner-from-apptainer.sh start.sh /home/watcloud-slurm-ci/
COPY main.py config.py runner_size_config.py debug.py RunningJob.py allocate-ephemeral-runner-from-apptainer.sh start.sh echo.sh /home/watcloud-slurm-ci/

# Install Python requirements
COPY requirements.txt /home/watcloud-slurm-ci/
Expand Down
4 changes: 2 additions & 2 deletions debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ def run_sbatch_incrementally():
base_command = [
"/opt/slurm/bin/sbatch",
"--job-name=test-no-gres",
"allocate-ephemeral-runner-from-apptainer.sh"
"echo.sh"
]

# Define additional options to add incrementally
options_to_add = [
"--mem-per-cpu=2G",
"--cpus-per-task=1",
"--time=00:01:00",
"--gres=tmpdisk:4096"
"--gres tmpdisk:4096"
]

# Run the base command first
Expand Down
6 changes: 6 additions & 0 deletions echo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
echo "Testing!"
whoami
pwd
ls -l
echo "Done testing!"

0 comments on commit c2c0278

Please sign in to comment.