Skip to content

infracamp/kicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infracamp kicker

This is an internal project.

This Project is part of the *kickstart-flavor- ** projects

.kick.yml Reference

version: 1
from: "from/docker-image"

config_file:
  template: "config.php.dist"
  target: "config.php"

env:
  - SOME_ENV=Some value 
  - PATH="/some/path:$PATH"

command:
    command_name1:
      - "script to exec (as user)"
      
     

Config file writer

kicker can replace values from environment in your config files. Just define a template and a target in your .kick.yml:

config_file:
  template: "test/test.in.txt"
  target: "/tmp/test.out.txt"

The action kick write_config_files will take the template-file, replace placeholders and write it to target on each start of the container.

Placeholders are:

%NAME_OF_REQUIRED_ENV%

Optional with default value:

%ENV_NAME?default_value%

Attention: The placeholder will be replaced by the shell-escaped value of the environment. But it won't add quotes around the value!

To correctly handle values, you should quote every placeholder:

define ("SOME_CONSTANT", "%ENV_NAME?default_value%");

About

kick container management script

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors