-
Notifications
You must be signed in to change notification settings - Fork 16
/
dockerize.docker.txt
28 lines (18 loc) · 2.27 KB
/
dockerize.docker.txt
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
DOCKERIZE
VERSION ==> #0.2.0
GOAL ==> #Template system using ENVVAR for Docker containers
ALTERNATIVES ==> # - dockerize: simple, only ENVVAR
# - docker-gen (preferred): many Docker info, can regenerate and fire trigger on change
CMD|ENTRYPOINT dockerize ... #Instead of CMD|ENTRYPOINT ... in Dockerfile
-template HOST_FIL[:CONTAINER_FIL]#Generate CONTAINER_FILE (def: stdout) using HOST_FILE, when container is run
#HOST_FILE is Go template, using as data OBJ:
# - OBJ.Env are currently available ENVVAR
# - adds some FUNC: default, contains, exists, split, replace, parseUrl, atoi, add, isTrue, lower|upper, jsonQuery
-delims STR #Change template delimiters
-stdout|stderr FILE #When container is run, redirect's container's FILE to host's stdout|stderr
-wait URI #Wait on URI success. Can be tcp[4|6] or http[s]
-wait-http-header "VAR:VAL" #
-timeout NUM #Timeout for -wait (def: 10, in secs)
-poll #Use polling instead of hardware interrupts