Skip to content
Permalink
Browse files

fix(docker): fix vcs ref url and add build date as env

  • Loading branch information...
hanxiao committed Sep 26, 2019
1 parent 0367334 commit beafdb3a3929a970f6c9616130501e7314dbc015
@@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="team@gnes.ai" \
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"

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

ENV GNES_VCS_VERSION=$VCS_REF
ENV GNES_BUILD_DATE=$BUILD_DATE

ENTRYPOINT ["gnes"]
@@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="team@gnes.ai" \
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"

@@ -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"]
@@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="team@gnes.ai" \
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"

@@ -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"]
@@ -5,7 +5,7 @@ ARG BUILD_DATE

LABEL maintainer="team@gnes.ai" \
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"

@@ -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.
You can’t perform that action at this time.