1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00

Deprecate .sti/environment

This commit is contained in:
Michal Fojtik
2016-02-01 13:15:12 +01:00
parent 162ff726b9
commit d86a461457
3 changed files with 11 additions and 19 deletions

View File

@@ -40,7 +40,7 @@ If you are passing in environment variables with the -e option from the command
I0519 14:20:51.410089 17228 util.go:34] Using my@cred.sk credentials for pulling openshift/ruby-20-centos7
I0519 14:20:51.410222 17228 main.go:239] An error occurred: malformed env string: some-other-repo'
To deal with this behavior, s2i by default will look for environment variables in the file `.sti/environment` in your source repository. You can also point to a separate file with environment variable settings with the -E option.
To deal with this behavior, s2i by default will look for environment variables in the file `.s2i/environment` in your source repository. You can also point to a separate file with environment variable settings with the -E option.
With both approaches, leveraging a file instead of the command line allows for the values of environment variable to contain commas. Environment variable processing is described in the [README](https://github.com/openshift/source-to-image#anatomy-of-a-builder-image) as well.
With the above example, whichever file you leverage for environment variables would have this line: