Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(docker): fix vcs ref url and add build date as env
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 26, 2019
1 parent 0367334 commit beafdb3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfiles/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="[email protected]" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes" \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes/commit/$VCS_REF" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="GNES is Generic Nerual Elastic Search"

Expand All @@ -32,5 +32,6 @@ RUN apk add --no-cache \
WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF
ENV GNES_BUILD_DATE=$BUILD_DATE

ENTRYPOINT ["gnes"]
3 changes: 2 additions & 1 deletion Dockerfiles/buster.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="[email protected]" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes" \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes/commit/$VCS_REF" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="GNES is Generic Nerual Elastic Search"

Expand All @@ -27,5 +27,6 @@ RUN ln -s locale.h /usr/include/xlocale.h && \
WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF
ENV GNES_BUILD_DATE=$BUILD_DATE

ENTRYPOINT ["gnes"]
3 changes: 2 additions & 1 deletion Dockerfiles/full.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="[email protected]" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes" \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes/commit/$VCS_REF" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="GNES is Generic Nerual Elastic Search"

Expand All @@ -28,5 +28,6 @@ RUN pip --no-cache-dir install .[all] \
WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF
ENV GNES_BUILD_DATE=$BUILD_DATE

ENTRYPOINT ["gnes"]
3 changes: 2 additions & 1 deletion Dockerfiles/ubuntu18.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="[email protected]" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes" \
org.label-schema.vcs-url="https://github.com/gnes-ai/gnes/commit/$VCS_REF" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="GNES is Generic Nerual Elastic Search"

Expand Down Expand Up @@ -33,5 +33,6 @@ RUN pip3 install . --no-cache-dir --compile && \
WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF
ENV GNES_BUILD_DATE=$BUILD_DATE

ENTRYPOINT ["gnes"]

0 comments on commit beafdb3

Please sign in to comment.