-
Notifications
You must be signed in to change notification settings - Fork 1
/
DockerfileRuntime
89 lines (80 loc) · 5.42 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
86
87
88
89
################################################################################
# WARNING: This file has been auto-generated. DO NOT EDIT: WARNING
# Created on 2021-05-05T01:57:16+1000, using template:DockerfileRuntime.tmpl and json:gearbox.json
# Base Reference Docker container for docker-gearbox-base based off alpine:3.13
ARG VERSION=alpine-3.13
# 1. First reference the gearbox-base image.
FROM alpine:3.13
ARG VERSION
# ARG GEARBOX_ENTRYPOINT
# ARG GEARBOX_ENTRYPOINT_ARGS
# 2. Set up env variables.
MAINTAINER Gearbox Team <team@gearbox.works>
ENV GEARBOX_CONTAINER_NAME "docker-gearbox-base"
ENV GEARBOX_CONTAINER_VERSION ${VERSION}
LABEL gearbox.json='{"schema": "gear-1","meta": {"state": "production","organization": "gearboxworks","name": "gearbox-base","label": "Gearbox base","info": "PHP","description": ["PHP is a popular general-purpose scripting language that is especially suited to web development."],"maintainer": "Gearbox Team <team@gearbox.works>","class": "system","refurl": "https://gearboxworks.io/"},"build": {"base": true,"ports": {"ssh":"22","gearbox":"9970"},"run": "","args": "","env": {"GEARBOX_CONTAINER_NAME": "gearbox-base","GEARBOX_USER": "gearbox","GEARBOX_UID": "4242","GEARBOX_GROUP": "gearbox","GEARBOX_GID": "4242","http_proxy": "","https_proxy": ""},"network": "--network gearboxnet","volumes": "","restart": "--restart no"},"run": {"commands": {"default": ""}},"versions": {"alpine-3.3": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.3"},"alpine-3.4": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.4"},"alpine-3.5": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.5"},"alpine-3.6": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.6"},"alpine-3.7": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.7"},"alpine-3.8": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.8"},"alpine-3.9": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.9"},"alpine-3.10": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.10"},"alpine-3.11": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.11"},"alpine-3.12": {"majorversion": "alpine","latest": false,"ref": "base","base": "alpine:3.12"},"alpine-3.13": {"majorversion": "","latest": false,"ref": "base","base": "alpine:3.13"},"ubuntu-trusty": {"majorversion": "","latest": false,"ref": "base","base": "ubuntu:trusty"},"ubuntu-xenial": {"majorversion": "","latest": false,"ref": "base","base": "ubuntu:xenial"},"ubuntu-bionic": {"majorversion": "ubuntu","latest": false,"ref": "base","base": "ubuntu:bionic"},"debian-squeeze": {"majorversion": "","latest": false,"ref": "base","base": "debian:squeeze"},"debian-wheezy": {"majorversion": "","latest": false,"ref": "base","base": "debian:wheezy-slim"},"debian-jessie": {"majorversion": "","latest": false,"ref": "base","base": "debian:jessie-slim"},"debian-stretch": {"majorversion": "","latest": false,"ref": "base","base": "debian:stretch-slim"},"debian-buster": {"majorversion": "debian","latest": false,"ref": "base","base": "debian:buster-slim"},"debian-bullseye": {"majorversion": "","latest": false,"ref": "base","base": "debian:bullseye-slim"}}}'
LABEL gearbox.version='alpine-3.13'
ENV GEARBOX_VERSION "alpine-3.13"
ENV GEARBOX_BASE_VERSION "alpine-3.13"
ENV GEARBOX_BASE_REF "base"
LABEL container.class="system"
ENV GEARBOX_CLASS "system"
LABEL container.description="[PHP is a popular general-purpose scripting language that is especially suited to web development.]"
ENV GEARBOX_DESCRIPTION "[PHP is a popular general-purpose scripting language that is especially suited to web development.]"
LABEL container.info="PHP"
ENV GEARBOX_INFO "PHP"
LABEL container.label="Gearbox base"
ENV GEARBOX_LABEL "Gearbox base"
LABEL container.maintainer="Gearbox Team <team@gearbox.works>"
ENV GEARBOX_MAINTAINER "Gearbox Team <team@gearbox.works>"
LABEL container.name="gearbox-base"
ENV GEARBOX_NAME "gearbox-base"
LABEL container.organization="gearboxworks"
ENV GEARBOX_ORGANIZATION "gearboxworks"
LABEL container.refurl="https://gearboxworks.io/"
ENV GEARBOX_REFURL "https://gearboxworks.io/"
LABEL container.state="production"
ENV GEARBOX_STATE "production"
LABEL container.args=""
ENV GEARBOX_ARGS ""
LABEL container.base="true"
ENV GEARBOX_BASE "true"
# SKIP env
LABEL container.network="--network gearboxnet"
ENV GEARBOX_NETWORK "--network gearboxnet"
LABEL container.ports="map[gearbox:9970 ssh:22]"
ENV GEARBOX_PORTS "map[gearbox:9970 ssh:22]"
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="alpine:3.13"
ENV GEARBOX_BASE "alpine:3.13"
LABEL container.latest="false"
ENV GEARBOX_LATEST "false"
LABEL container.majorversion=""
ENV GEARBOX_MAJORVERSION ""
LABEL container.ref="base"
ENV GEARBOX_REF "base"
ENV GEARBOX_CONTAINER_NAME "gearbox-base"
ENV GEARBOX_GID "4242"
ENV GEARBOX_GROUP "gearbox"
ENV GEARBOX_UID "4242"
ENV GEARBOX_USER "gearbox"
ENV HTTP_PROXY ""
ENV HTTPS_PROXY ""
# 3. Now copy the local files specific to this container.
COPY build /etc/gearbox
COPY versions/${VERSION}/build /etc/gearbox
# 4. Run the base.sh script to set everything up.
RUN /bin/sh /etc/gearbox/build/base.sh
# 6. Expose ports.
EXPOSE 9970 22
WORKDIR /home/gearbox/projects
USER root
# 7. Run S6 init.
CMD ["/init"]
# END
################################################################################