Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nirvana 3.18.1 Docker images support [VS-661] #8082

Merged
merged 1 commit into from
Nov 1, 2022
Merged
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
22 changes: 22 additions & 0 deletions scripts/variantstore/variant_annotations_table/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Multi-stage Nirvana Docker image build. Build in a full dotnet/sdk stage, copy artifacts to a compact
# dotnet/runtime main stage.
FROM mcr.microsoft.com/dotnet/sdk:6.0 as build

ARG NIRVANA_VERSION="v3.18.1"
ARG DOTNET_CONFIGURATION=Release

RUN mkdir /build && \
cd /build && \
git clone https://github.com/Illumina/Nirvana.git && \
cd Nirvana && \
git checkout tags/$NIRVANA_VERSION -b NIRVANA_VERSION && \
dotnet build --configuration $DOTNET_CONFIGURATION && \
mkdir /publish && \
dotnet publish --configuration $DOTNET_CONFIGURATION --output /publish


FROM mcr.microsoft.com/dotnet/runtime:6.0 as main

COPY --from=build /publish /Nirvana

WORKDIR /Nirvana
13 changes: 13 additions & 0 deletions scripts/variantstore/variant_annotations_table/build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

if [ $# -lt 1 ]; then
echo "USAGE: ./build_docker.sh [DOCKER_TAG_STRING] [OPTIONAL:LATEST]"
echo " e.g.: ./build_docker.sh myrepo/nirvana:v3.18.1"
exit 1
fi

DOCKER_TAG="$1"

docker build . -t "${DOCKER_TAG}"