Skip to content

Commit

Permalink
Merge pull request #236 from umccr/soci_support
Browse files Browse the repository at this point in the history
Tweak docker container labels (was: Docker SOCI support)
  • Loading branch information
brainstorm authored Apr 3, 2024
2 parents 285b87e + 7fc4dd0 commit b0037b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
6 changes: 6 additions & 0 deletions deploy/Dockerfile
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
Expand Down

0 comments on commit b0037b2

Please sign in to comment.