Skip to content

Commit

Permalink
Address teo's comments + fix EB+Spack tutorial GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarak committed Apr 19, 2024
1 parent 0a3a9e3 commit 00e2f52
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
docker run reframe-${{ matrix.modules-version }}:latest
tutorialtest:
eb-spack-howto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -99,7 +99,7 @@ jobs:
- name: Build Image for Tutorial Tests
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker build -f ci-scripts/dockerfiles/tutorials.dockerfile -t reframe-tutorials:latest .
docker build -f ci-scripts/dockerfiles/eb-spack-howto.dockerfile -t reframe-tutorials:latest .
docker logout
- name: Run Tutorial Tests
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ RUN echo '. /usr/local/lmod/lmod/init/profile && . /home/rfmuser/spack/share/spa

ENV BASH_ENV /home/rfmuser/setup.sh

CMD ["/bin/bash", "-c", "./bin/reframe -r -C tutorials/config/lmodsys.py -R -c tutorials/build_systems"]
CMD ["/bin/bash", "-c", "./bin/reframe --system=tutorialsys -r -C examples/tutorial/config/baseline_modules.py -R -c examples/tutorial/easybuild/eb_test.py -c examples/tutorial/spack/spack_test.py"]
4 changes: 3 additions & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Once the Docker compose stack is up, you execute the following from a different
docker exec -it $(docker ps -f name=frontend -q) /bin/bash
# Inside the container
cd reframe-examples/tutorial/
Once done, press Ctl-D in the frontend container and Ctl-C in the Docker compose console window.

Expand Down Expand Up @@ -402,7 +404,7 @@ Let's try running the constrained version of our STREAM test with the configurat
.. code-block:: bash
:caption: Run in the single-node container.
reframe -C config/baseline.py -c stream/stream_build_run.py -r
reframe -C config/baseline.py -c stream/stream_runonly.py -r
.. code-block:: console
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/dockerfiles/eb-spack.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ WORKDIR /home/user

# Install Spack
RUN mkdir .local && cd .local && \
git clone --branch releases/v${_SPACK_VER} https://github.com/spack/spack
git clone --branch releases/v${_SPACK_VER} --depth 1 https://github.com/spack/spack

RUN echo '. /usr/local/lmod/lmod/init/profile && . /home/user/.local/spack/share/spack/setup-env.sh' > /home/user/.profile
ENV BASH_ENV /home/user/.profile

0 comments on commit 00e2f52

Please sign in to comment.