-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile20
53 lines (42 loc) · 1.52 KB
/
Dockerfile20
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
43
44
45
46
47
48
49
50
51
52
53
#
# Glue Dockerfile
#
# https://github.com/tamboraorg/docker/creglue
#
# Pull base image.
FROM credocker/creubuntu:2020.0
MAINTAINER Michael Kahle <[email protected]>
ARG BUILD_YEAR=2020
ARG BUILD_MONTH=0
ARG BUILD_TAG=2020.0
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
## group not yet working
## RUN groupadd -r cregroup -g 999 && useradd -ms /bin/bash -g cregroup creglue
## RUN chown creglue /cre/glue && chmod 666 /cre/glue
## RUN chown creglue /cre/data && chmod 660 /cre/data
## RUN chown creglue /cre/secrets && chmod 600 /cre/secrets
RUN chmod 777 /cre/glue
#RUN chmod 770 /cre/data
#RUN chmod 700 /cre/secrets
#USER creglue
VOLUME ["/cre/glue"]
WORKDIR /cre/glue
ENTRYPOINT ["/cre/glue-entrypoint.sh"]
CMD ["shoreman", "/cre/glue-procfile"]