-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from umccr/soci_support
Tweak docker container labels (was: Docker SOCI support)
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
platforms: linux/amd64,linux/arm64/v8 | ||
platforms: linux/amd64,linux/arm64 | ||
- name: Login to GHCR.io (GH's Container Registry) | ||
uses: docker/login-action@v3 | ||
with: | ||
|
@@ -36,6 +36,18 @@ jobs: | |
with: | ||
context: . | ||
file: deploy/Dockerfile | ||
platforms: ${{ matrix.platforms }} | ||
push: true | ||
tags: | | ||
ghcr.io/umccr/htsget-rs:latest | ||
## SOCI (Seekable OCI) support. Only enable when and if docker layers surpass 10MB in the future, see: | ||
# https://github.com/awslabs/soci-snapshotter/issues/100 | ||
# - name: Install aws SOCI | ||
# uses: iamops-team/[email protected] | ||
# - name: Pull the image in containerd | ||
# run: | | ||
# sudo ctr i pull --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest | ||
# - name: Create and push soci index | ||
# run: | | ||
# sudo soci create ghcr.io/umccr/htsget-rs:latest | ||
# sudo soci push --user ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/umccr/htsget-rs:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
FROM rust:1.76-slim AS builder | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/umccr/htsget-rs | ||
LABEL org.opencontainers.image.url=https://github.com/umccr/htsget-rs/pkgs/container/htsget-rs | ||
LABEL org.opencontainers.image.description="A server implementation of the htsget protocol for bioinformatics in Rust" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
LABEL org.opencontainers.image.authors="Roman Valls Guimera <[email protected]>, Marko Malenic <[email protected]>" | ||
|
||
WORKDIR /build | ||
|
||
RUN cargo install cargo-strip | ||
|