mirror of
https://github.com/cmehay/pyentrypoint
synced 2024-10-30 15:21:11 +00:00
f1882dab3c
```yaml set_environment: - ENV_1: echo 'The environment variable ENV_1 will be added with this phrase' - ENV_2: head /dev/urandom | base64 - ENV_3: echo ${ENV_1} and ${ENV_2} are now available here - ENV_4: exit 1 || true # Set like this if you need to ignore error ```
47 lines
962 B
YAML
47 lines
962 B
YAML
command: bash
|
|
|
|
user: 1000
|
|
group: 1000
|
|
|
|
config_files:
|
|
- /tmp/test_template.yml
|
|
- /tmp/test_template2.yml.tpl
|
|
- /tmp/test_template2.yml.tpl: /tmp/test_template3.yml
|
|
|
|
secret_env:
|
|
- SECRET
|
|
|
|
links:
|
|
test1:
|
|
name: test1
|
|
test2_800:
|
|
port: 800
|
|
protocol: udp
|
|
single: true
|
|
test2:
|
|
env:
|
|
FOO: bar
|
|
required: true
|
|
|
|
pre_conf_commands:
|
|
- echo TEST > /tmp/OK
|
|
- echo "INFO IS DISPLAYED"
|
|
- echo "WARNING IS DISPLAYED\nON TWO LINES" 1>&2
|
|
- echo ${ENV_1} > /tmp_env_1
|
|
|
|
post_conf_commands:
|
|
- echo TEST2 > /tmp/OKOK
|
|
- echo TEST3 > /tmp/OKOKOK
|
|
- echo ${ENTRYPOINT_USER} > /tmp/user
|
|
- echo ${ENTRYPOINT_GROUP} > /tmp/group
|
|
- echo ${ENTRYPOINT_DEBUG} > /tmp/debug
|
|
- echo "INFO IS DISPLAYED\nON TWO LINES"
|
|
- echo "WARNING IS DISPLAYED" 1>&2
|
|
- echo ${ENV_2} > /tmp_env_2
|
|
|
|
set_environment:
|
|
- ENV_1: echo ENV_1 set
|
|
- ENV_2: echo ENV_2 set
|
|
|
|
debug: true
|