2016-08-08 18:16:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
|
|
|
FROM $BASE_IMAGE
|
|
|
|
MAINTAINER Andrey Mayorov <a.mayorov@rbkmoney.com>
|
|
|
|
COPY ./_build/prod/rel/hellgate /opt/hellgate
|
2018-01-24 13:40:54 +00:00
|
|
|
WORKDIR /opt/hellgate
|
2017-06-15 16:57:02 +00:00
|
|
|
CMD /opt/hellgate/bin/hellgate foreground
|
2017-02-03 11:26:22 +00:00
|
|
|
EXPOSE 8022
|
2018-01-24 13:40:54 +00:00
|
|
|
LABEL com.rbkmoney.$SERVICE_NAME.parent=$BASE_IMAGE_NAME \
|
|
|
|
com.rbkmoney.$SERVICE_NAME.parent_tag=$BASE_IMAGE_TAG \
|
|
|
|
com.rbkmoney.$SERVICE_NAME.build_img=build \
|
|
|
|
com.rbkmoney.$SERVICE_NAME.build_img_tag=$BUILD_IMAGE_TAG \
|
|
|
|
com.rbkmoney.$SERVICE_NAME.commit_id=$(git rev-parse HEAD) \
|
|
|
|
com.rbkmoney.$SERVICE_NAME.commit_number=$(git rev-list --count HEAD) \
|
|
|
|
com.rbkmoney.$SERVICE_NAME.branch=$( \
|
|
|
|
if [ "HEAD" != $(git rev-parse --abbrev-ref HEAD) ]; then \
|
|
|
|
echo $(git rev-parse --abbrev-ref HEAD); \
|
|
|
|
elif [ -n "$BRANCH_NAME" ]; then \
|
|
|
|
echo $BRANCH_NAME; \
|
|
|
|
else \
|
|
|
|
echo $(git name-rev --name-only HEAD); \
|
|
|
|
fi)
|
2016-08-08 18:16:17 +00:00
|
|
|
EOF
|