Skip to content

Instantly share code, notes, and snippets.

@awendland
Last active July 29, 2016 07:19
Show Gist options
  • Save awendland/5105077b398db1e3a29805aeb7a63abd to your computer and use it in GitHub Desktop.
Save awendland/5105077b398db1e3a29805aeb7a63abd to your computer and use it in GitHub Desktop.
  1. Each command in container_command runs in its own shell. Therefore, you can't rely on setting up environment variables before and using them later.
  • Solution to this is to create a file which exports the environment variables that you want. Create this with the files config property and place it somewhere accessible.
  • Then place the commands you would want to be run by command in a .sh file. In that .sh file, source the environment variables file that was created earlier. Set the command to execute the .sh file. Make sure that the .sh file has executable permissions set locally because git syncs those.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment