-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileRuntime
85 lines (73 loc) · 4.91 KB
/
DockerfileRuntime
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
################################################################################
# WARNING: This file has been auto-generated. DO NOT EDIT: WARNING
# Created on 2020-05-09T16:35:48+1000, using template:DockerfileRuntime.tmpl and json:gearbox.json
# Referenced Docker container for docker-terminus based off gearboxworks/gearbox-base:alpine-3.10 with composer:1.10 overlayed.
ARG VERSION=1.9.0
# 1. First reference the gearbox-base image.
FROM gearboxworks/gearbox-base:alpine-3.10 as gearbox-base
# 2. Next reference the third party image.
FROM composer:1.10
ARG VERSION
ARG GEARBOX_ENTRYPOINT
ARG GEARBOX_ENTRYPOINT_ARGS
USER root
# 3. Copy the build directory over from gearbox-base image.
COPY --from=gearbox-base /etc/gearbox /etc/gearbox
# 4. Set up env variables.
MAINTAINER Gearbox Team <team@gearbox.works>
ENV GEARBOX_CONTAINER_NAME "docker-terminus"
ENV GEARBOX_CONTAINER_VERSION ${VERSION}
ENV GEARBOX_ENTRYPOINT ${GEARBOX_ENTRYPOINT}
ENV GEARBOX_ENTRYPOINT_ARGS ${GEARBOX_ENTRYPOINT_ARGS}
LABEL gearbox.json='{"schema": "gear-1","meta": {"state": "production","organization": "gearboxworks","name": "terminus","label": "Terminus","maintainer": "Gearbox Team <team@gearbox.works>","class": "system","refurl": "https://pantheon.io/docs/terminus"},"build": {"ports": {},"run": "","args": "","env": {"PANTHEON_USER": "gearbox"},"network": "--network gearboxnet","volumes": "","restart": "--restart no"},"run": {"commands": {"default": "/usr/local/bin/terminus","terminus": "/usr/local/bin/terminus"}},"versions": {"2.3.0": {"majorversion": "2.3","latest": true,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"2.2.0": {"majorversion": "2.2","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"2.1.0": {"majorversion": "2.1","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"2.0.1": {"majorversion": "2.0","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.9.0": {"majorversion": "1.9","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.8.1": {"majorversion": "1.8","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.7.1": {"majorversion": "1.7","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.6.2": {"majorversion": "1.6","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.5.0": {"majorversion": "1.5","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.4.1": {"majorversion": "1.4","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.3.0": {"majorversion": "1.3","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.2.1": {"majorversion": "1.2","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.1.2": {"majorversion": "1.1","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"},"1.0.0": {"majorversion": "1.0","latest": false,"ref": "composer:1.10","base": "gearboxworks/gearbox-base:alpine-3.10"}}}'
LABEL gearbox.version='1.9.0'
ENV GEARBOX_VERSION "1.9.0"
LABEL container.class="system"
ENV GEARBOX_CLASS "system"
LABEL container.label="Terminus"
ENV GEARBOX_LABEL "Terminus"
LABEL container.maintainer="Gearbox Team <team@gearbox.works>"
ENV GEARBOX_MAINTAINER "Gearbox Team <team@gearbox.works>"
LABEL container.name="terminus"
ENV GEARBOX_NAME "terminus"
LABEL container.organization="gearboxworks"
ENV GEARBOX_ORGANIZATION "gearboxworks"
LABEL container.refurl="https://pantheon.io/docs/terminus"
ENV GEARBOX_REFURL "https://pantheon.io/docs/terminus"
LABEL container.state="production"
ENV GEARBOX_STATE "production"
LABEL container.args=""
ENV GEARBOX_ARGS ""
# SKIP env
LABEL container.network="--network gearboxnet"
ENV GEARBOX_NETWORK "--network gearboxnet"
LABEL container.ports="map[]"
ENV GEARBOX_PORTS "map[]"
LABEL container.restart="--restart no"
ENV GEARBOX_RESTART "--restart no"
LABEL container.run=""
ENV GEARBOX_RUN ""
LABEL container.volumes=""
ENV GEARBOX_VOLUMES ""
LABEL container.base="gearboxworks/gearbox-base:alpine-3.10"
ENV GEARBOX_BASE "gearboxworks/gearbox-base:alpine-3.10"
LABEL container.latest="false"
ENV GEARBOX_LATEST "false"
LABEL container.majorversion="1.9"
ENV GEARBOX_MAJORVERSION "1.9"
LABEL container.ref="composer:1.10"
ENV GEARBOX_REF "composer:1.10"
ENV PANTHEON_USER "gearbox"
# 5. Now copy the local files specific to this container.
COPY build /etc/gearbox
COPY versions/${VERSION}/build /etc/gearbox
# 6. Run the base.sh script to set everything up.
RUN /bin/sh /etc/gearbox/build/base.sh
# 7. Run the terminus.sh script to set everything up.
RUN /bin/sh /etc/gearbox/build/terminus.sh
# 8. Expose ports.
EXPOSE 22 9970
WORKDIR /home/gearbox/projects
CMD ["/init"]
# END
################################################################################