Skip to content

Commit

Permalink
Merge branch 'main' of github.com:uvilla-teaching/cse380
Browse files Browse the repository at this point in the history
  • Loading branch information
uvilla committed Oct 24, 2024
2 parents 834a296 + 05f7165 commit 83808e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gsl_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
WORKDIR: ./lectures/13_testing/autotools_with_tests
container:
image: uvilla/class-ci:latest
options: --user 1001 --privileged
options: --user root --privileged
name: GSL test

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Query modules loaded
run: module list
- name: Configure
Expand Down
18 changes: 13 additions & 5 deletions lectures/11_virtualization_and_docker/step3/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Build the container
First let's build the docker image for step3, remember to specify `--platform=linux/amd64` if using Apple Silicon.
```
docker build -t step3 .
docker run -it step3 /bin/bash
```

# Explore the container interactively
```
docker run -it step3 /bin/bash
```

From inside the container

Expand All @@ -13,10 +18,13 @@ mpicc /opt/ohpc/pub/examples/mpi/hello.c 
mpirun -np 2 ./a.out
```

How to push this remotely

# Push the container to the DockerHub registry
First of all create an account of dockerhub.
Next, login, tag and push the image
```
docker login
docker tag step3 uvilla/step3:2023.1
docker push uvilla/step3:2023.1
docker tag step3 uvilla/step3:2024.1
docker push uvilla/step3:2024.1
```

To deploy the image on lonestar6, see `../hello_apptainer.md`

0 comments on commit 83808e9

Please sign in to comment.