-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileRuntime
78 lines (69 loc) · 4.25 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
################################################################################
# WARNING: This file has been auto-generated. DO NOT EDIT: WARNING
# Created on 2020-05-07T15:38:03+1000, using template:DockerfileRuntime.tmpl and json:gearbox.json
# Plain Docker container for docker-hugo based off gearboxworks/gearbox-base:alpine-3.10
ARG VERSION=0.67.1
# 1. First reference the gearbox-base image.
FROM gearboxworks/gearbox-base:alpine-3.10
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-hugo"
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": "hugo","label": "Hugo","maintainer": "Gearbox Team <team@gearbox.works>","class": "webserver","refurl": "https://gohugo.io/"},"build": {"ports": {"http": "80","hugo": "1313"},"run": "","args": "","env": {"HUGO_PUBLISHDIR": "/home/gearbox/projects/default/www","HUGO_SRCDIR": "/home/gearbox/projects/default/hugo","HUGO_USER": "gearbox"},"network": "--network gearboxnet","volumes": "","restart": "--restart no"},"run": {"commands": {"default": "/usr/local/bin/hugo","hugo": "/usr/local/bin/hugo","hugo-extended": "/usr/local/bin/hugo-extended","minify": "/usr/local/bin/minify"}},"project": {},"extensions": {},"versions": {"0.60.1": {"majorversion": "0.60","latest": false,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.62.2": {"majorversion": "0.62","latest": false,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.63.2": {"majorversion": "0.63","latest": false,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.64.1": {"majorversion": "0.64","latest": false,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.65.3": {"majorversion": "0.65","latest": false,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.66.0": {"majorversion": "0.66","latest": false,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.67.1": {"majorversion": "0.67","latest": true,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.68.3": {"majorversion": "0.68","latest": true,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"},"0.69.2": {"majorversion": "0.69","latest": true,"ref": "","base": "gearboxworks/gearbox-base:alpine-3.10"}}}'
LABEL gearbox.version='0.67.1'
ENV GEARBOX_VERSION "0.67.1"
LABEL container.class="webserver"
ENV GEARBOX_CLASS "webserver"
LABEL container.label="Hugo"
ENV GEARBOX_LABEL "Hugo"
LABEL container.maintainer="Gearbox Team <team@gearbox.works>"
ENV GEARBOX_MAINTAINER "Gearbox Team <team@gearbox.works>"
LABEL container.name="hugo"
ENV GEARBOX_NAME "hugo"
LABEL container.organization="gearboxworks"
ENV GEARBOX_ORGANIZATION "gearboxworks"
LABEL container.refurl="https://gohugo.io/"
ENV GEARBOX_REFURL "https://gohugo.io/"
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[http:80 hugo:1313]"
ENV GEARBOX_PORTS "map[http:80 hugo:1313]"
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="true"
ENV GEARBOX_LATEST "true"
LABEL container.majorversion="0.67"
ENV GEARBOX_MAJORVERSION "0.67"
LABEL container.ref=""
ENV GEARBOX_REF ""
ENV HUGO_PUBLISHDIR "/home/gearbox/projects/default/www"
ENV HUGO_SRCDIR "/home/gearbox/projects/default/hugo"
ENV HUGO_USER "gearbox"
# 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
# 5. Run the hugo.sh script to set everything up.
RUN /bin/sh /etc/gearbox/build/hugo.sh
# 6. Expose ports.
EXPOSE 22 9970 80 1313
WORKDIR /home/gearbox/projects
# END
################################################################################