Skip to content

Commit 2787064

Browse files
committed
Set variables in the docker environment.
1 parent b3b5cc6 commit 2787064

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
mpi: mpich
2626
- python: 3.9
2727
mpi: openmpi
28-
env:
29-
OMPI_ALLOW_RUN_AS_ROOT: 1
30-
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
3128
steps:
3229
- name: Cancel Previous Runs
3330
uses: styfle/cancel-workflow-action@0.9.1
@@ -47,7 +44,7 @@ jobs:
4744
run: docker build -t hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} -f Dockerfile_docker-py${{ matrix.python }}-debian-${{ matrix.mpi }} .
4845

4946
- name: Test Docker Image
50-
run: docker run hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} python -c 'import toast.tests; toast.tests.run()'
47+
run: docker run -e "OMPI_ALLOW_RUN_AS_ROOT=1" -e "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} python -c 'import toast.tests; toast.tests.run()'
5148

5249
- name: Tag Latest
5350
run: docker tag hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} hpc4cmb/cmbenv-${{ matrix.mpi }}:latest

.github/workflows/test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
mpi: mpich
2525
- python: 3.9
2626
mpi: openmpi
27-
env:
28-
OMPI_ALLOW_RUN_AS_ROOT: 1
29-
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
3027
steps:
3128
- name: Cancel Previous Runs
3229
uses: styfle/cancel-workflow-action@0.9.1
@@ -43,4 +40,4 @@ jobs:
4340
run: docker build -t hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} -f Dockerfile_docker-py${{ matrix.python }}-debian-${{ matrix.mpi }} .
4441

4542
- name: Test Docker Image
46-
run: docker run hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} python -c 'import toast.tests; toast.tests.run()' && docker run hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
43+
run: docker run -e "OMPI_ALLOW_RUN_AS_ROOT=1" -e "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} python -c 'import toast.tests; toast.tests.run()' && docker run -e "OMPI_ALLOW_RUN_AS_ROOT=1" -e "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'

0 commit comments

Comments
 (0)