Skip to content

Commit

Permalink
Merge pull request #1151 from ANTsX/dockerLabel
Browse files Browse the repository at this point in the history
DOC: Include version information and citation in docker images
  • Loading branch information
cookpa authored Mar 3, 2021
2 parents 4e2b0c7 + c11e1c4 commit c73f4dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
e=1 && for i in {1..5}; do
docker build \
--rm=false \
--label version="CircleCI automated build commit ${CIRCLE_SHA1}" \
-t antsx/ants:latest . \
&& e=0 && break || sleep 15
done && [ "$e" -eq "0" ]
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ RUN mkdir -p /tmp/ants/build \
FROM ubuntu:bionic-20200112
COPY --from=builder /opt/ants /opt/ants

LABEL maintainer="ANTsX team" \
description="ANTs is part of the ANTsX ecosystem (https://github.com/ANTsX). \
ANTs Citation: https://pubmed.ncbi.nlm.nih.gov/24879923"

ENV ANTSPATH="/opt/ants/bin" \
PATH="/opt/ants/bin:$PATH" \
LD_LIBRARY_PATH="/opt/ants/lib:$LD_LIBRARY_PATH"
Expand Down

0 comments on commit c73f4dc

Please sign in to comment.