2015-12-04 13:59:07 +00:00
|
|
|
# Entrypoint configuration example
|
|
|
|
|
2020-05-10 21:03:30 +00:00
|
|
|
# This entry list commands handled by entrypoint.
|
|
|
|
# If you run the container with a command not in this list,
|
|
|
|
# pyentrypoint will run the command directly without any action
|
|
|
|
# If this option is not set, all commands will be handled.
|
|
|
|
# Support wildcard
|
|
|
|
commands:
|
|
|
|
- git
|
|
|
|
- l*
|
|
|
|
|
|
|
|
|
|
|
|
# DEPRECATED: This option is remplaced by `commands`
|
2015-12-04 13:59:07 +00:00
|
|
|
# This entry should reflect CMD in Dockerfile
|
2020-05-10 21:03:30 +00:00
|
|
|
# If `commands` is present, this option will be ignored.
|
|
|
|
# DEPRECATED: This option is remplaced by `commands`
|
|
|
|
# command: git
|
2015-12-04 13:59:07 +00:00
|
|
|
|
2020-05-10 21:03:30 +00:00
|
|
|
# DEPRECATED: This option will be dropped
|
2015-12-04 13:59:07 +00:00
|
|
|
# This is a list with some subcommands to handle
|
|
|
|
# when CMD is not `git` here.
|
|
|
|
# By default, all args started with hyphen are handled.
|
2020-05-10 21:03:30 +00:00
|
|
|
# DEPRECATED: This option will be dropped
|
|
|
|
# subcommands:
|
|
|
|
# - "-*"
|
|
|
|
# - clone
|
|
|
|
# - init
|
|
|
|
# - ls-files
|
2015-12-04 13:59:07 +00:00
|
|
|
# etc...
|
|
|
|
|
|
|
|
# User and group to run the cmd.
|
|
|
|
# Can be name or uid/gid.
|
|
|
|
# Affect only command handled.
|
|
|
|
# Dockerfile USER value by default.
|
|
|
|
user: 1000
|
|
|
|
group: 1000
|
|
|
|
|
|
|
|
# These files should exist (ADD or COPY)
|
|
|
|
# and should be jinja templated.
|
|
|
|
config_files:
|
|
|
|
- /etc/gitconfig
|
2016-10-01 01:29:04 +00:00
|
|
|
- .ssh/config.tpl # Will apply to ".ssh/config"
|
|
|
|
- /tmp/id_rsa: .ssh/id_rsa # Will apply "/tmp/id_rsa" template to ".ssh/id_rsa"
|
2015-12-04 13:59:07 +00:00
|
|
|
|
|
|
|
# These environment variables will be wiped before
|
|
|
|
# exec command to keep them secret
|
|
|
|
secret_env:
|
|
|
|
- SSHKEY
|
2016-09-22 23:14:54 +00:00
|
|
|
- '*' # Support globbing, all environment will be wiped
|
2015-12-04 13:59:07 +00:00
|
|
|
|
2020-05-10 21:03:30 +00:00
|
|
|
# DEPRECATED: Links are deprecated in `docker`
|
2015-12-04 13:59:07 +00:00
|
|
|
# Links are handled here
|
|
|
|
# Port, name, protocol or env variable can be used to identify the links
|
|
|
|
# Raise an error if the link could not be identified
|
2020-05-10 21:03:30 +00:00
|
|
|
# DEPRECATED: Links are deprecated in `docker`
|
2015-12-04 13:59:07 +00:00
|
|
|
links:
|
|
|
|
'ssh':
|
|
|
|
port: 22
|
|
|
|
name: 'ssh*'
|
|
|
|
protocol: tcp
|
2015-12-07 02:19:46 +00:00
|
|
|
# env can be list, dict or string
|
|
|
|
env:
|
|
|
|
FOO: bar
|
2015-12-15 07:56:17 +00:00
|
|
|
# Single doesn't allow multiple links for this id
|
|
|
|
# false by default
|
|
|
|
single: true
|
|
|
|
# Set to false to get optional link
|
|
|
|
# true by default
|
|
|
|
required: true
|
2015-12-04 13:59:07 +00:00
|
|
|
|
|
|
|
# Commands to run before applying configuration
|
|
|
|
pre_conf_commands:
|
|
|
|
- echo something useless
|
|
|
|
|
|
|
|
# commands to run after applying configuration
|
2015-12-15 07:56:17 +00:00
|
|
|
post_conf_commands:
|
2015-12-04 13:59:07 +00:00
|
|
|
- echo something even useless
|
|
|
|
|
2016-10-01 01:29:04 +00:00
|
|
|
# Reload service when configuration change by sending a signal to process
|
|
|
|
reload:
|
|
|
|
signal: SIGHUP # Optional, signal to send, default is SIGHUP
|
|
|
|
pid: 1 # Optional, pid to send signal, default is 1
|
|
|
|
watch_config_files: true # Optional, watch defined config files, default True
|
|
|
|
files: # Optional, list of files to watch
|
|
|
|
- /etc/conf/to/watch
|
|
|
|
# can also be enabled with a boolean:
|
|
|
|
reload: true
|
|
|
|
|
2015-12-15 07:56:17 +00:00
|
|
|
# Cleanup environment from variables created by linked containers
|
|
|
|
# before running command (True by default)
|
2016-10-01 01:29:04 +00:00
|
|
|
clean_env: true
|
2015-12-15 07:56:17 +00:00
|
|
|
|
2015-12-04 13:59:07 +00:00
|
|
|
# Enable debug to debug
|
|
|
|
debug: true
|
2016-10-01 01:29:04 +00:00
|
|
|
|
|
|
|
# Do not output anything except error
|
|
|
|
quiet: false
|