Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .devcontainer/alpine/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools-extension-pack",
"ms-vscode.cmake-tools",
"ms-python.python"
],
"settings": {
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cmake.configureOnOpen": true
}
}
},
"image": "ghcr.io/learning-process/ppc-alpine:1.0",
"name": "Parallel Programming Course (Alpine)",
"postCreateCommand": "python3 -m pip install -r requirements.txt"
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
}
},
"image": "ghcr.io/learning-process/ppc-ubuntu:1.1",
"name": "Parallel Programming Course",
"name": "Parallel Programming Course (Ubuntu)",
"postCreateCommand": "python3 -m pip install -r requirements.txt"
}
13 changes: 11 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push multi-arch image
- name: Build and push multi-arch image (Ubuntu)
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/ubuntu.Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/master' }}
tags: ghcr.io/learning-process/ppc-ubuntu:1.1
tags: ghcr.io/learning-process/ppc-alpine:1.0

- name: Build and push multi-arch image (Alpine)
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/alpine.Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/master' }}
tags: ghcr.io/learning-process/ppc-alpine:1.0
2 changes: 1 addition & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
ubuntu-gcc-build-perf-stats:
runs-on: ubuntu-24.04
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
needs: check-file-sizes
runs-on: ubuntu-24.04
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
clang-tidy:
runs-on: ubuntu-24.04
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- clang-tidy
runs-on: ubuntu-24.04
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
gcc-build:
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- gcc-build
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- gcc-test
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -121,7 +121,7 @@ jobs:
clang-build:
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- clang-build
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
- clang-test
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -224,7 +224,7 @@ jobs:
- clang-build
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
- clang-sanitizer-build
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
- clang-sanitizer-test
runs-on: ${{ matrix.os }}
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -342,7 +342,7 @@ jobs:
issues: write
pull-requests: write
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.1
image: ghcr.io/learning-process/ppc-alpine:1.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions docker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ Changelog

### [1.0] - 2025-07-28
- Initial Ubuntu-based image

## ppc-alpine

### [1.0] - 2025-12-17
- Initial Alpine-based image (Alpine 3.23)
6 changes: 6 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ Build multi-architecture Ubuntu 24.04 development image:
```bash
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/learning-process/ppc-ubuntu:latest -f ./ubuntu.Dockerfile .
```

Build multi-architecture Alpine development image:

```bash
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/learning-process/ppc-alpine:latest -f ./alpine.Dockerfile .
```
31 changes: 31 additions & 0 deletions docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM alpine:3.23

RUN set -eux; \
apk add --no-cache \
bash \
build-base \
ca-certificates \
ccache \
clang \
clang-extra-tools \
cmake \
curl \
git \
gnupg \
linux-headers \
lld \
llvm \
make \
ninja \
openmp \
openmp-dev \
openmpi \
openmpi-dev \
python3 \
py3-pip \
valgrind \
zip

ENV CC=gcc CXX=g++

CMD ["bash"]
Loading