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

Docker: Raise error if VEP version and release branch mismatch #1748

Merged
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
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ WORKDIR $OPT_SRC
# Add ensembl-vep files from current context
ADD . ensembl-vep

# For release branches, raise an error if VEP version does not match the branch name
RUN if expr "$BRANCH" : "^release/.*" > /dev/null ; \
then \
branch_version=$(echo $BRANCH | sed -E 's|release/([0-9]+).*|\1|g'); \
vep_version=$(grep VEP_VERSION */modules/Bio/EnsEMBL/VEP/Constants.pm | grep -Eo '[0-9]+'); \
if [ $branch_version -ne $vep_version ]; then \
echo "ERROR: VEP version $vep_version does not match version in branch name '$BRANCH'"; exit 1; \
fi; \
fi

# Clone/download repositories/libraries
RUN if [ "$BRANCH" = "main" ]; \
then export BRANCH_OPT=""; \
Expand Down