-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile18
42 lines (34 loc) · 1.18 KB
/
Dockerfile18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Glue Dockerfile
#
# https://github.com/tamboraorg/docker/creglue
#
# Pull base image.
FROM credocker/creubuntu:2018.0
MAINTAINER Michael Kahle <[email protected]>
ARG BUILD_YEAR=2018
ARG BUILD_MONTH=0
ARG BUILD_TAG=latest
ENV YEAR $BUILD_YEAR
ENV MONTH $BUILD_MONTH
ENV DOCKER_GEN_VERSION 0.7.4
ENV DOCKER_HOST unix:///tmp/docker.sock
LABEL Name="Glue for CRE" \
CRE=$CRE_VERSION \
Year=$BUILD_YEAR \
Month=$BUILD_MONTH \
Version=$DOCKER_GEN_VERSION \
OS="Ubuntu:$UBUNTU_VERSION" \
Build_=$BUILD_TAG
# Install docker-gen (generates files from templates with docker data filled in)
RUN wget https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \
&& tar -C /usr/local/bin -xvzf docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \
&& rm docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz
RUN mkdir -p /cre && touch /cre/versions.txt && \
echo "$(date +'%F %R') \t docker-gen \t $(docker-gen -version)" >> /cre/versions.txt
COPY cre /cre
RUN chmod 777 /cre/glue
VOLUME ["/cre/glue"]
WORKDIR /cre/glue
ENTRYPOINT ["/cre/glue-entrypoint.sh"]
CMD ["shoreman", "/cre/glue-procfile"]