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

24 Commits

Author SHA1 Message Date
Adam Kaplan
1fad0a5e69 Refactor glog to log/klog in code
* pkg/util/glog -> pkg/util/log
* var glog replaced with var log
* Removed unnecessary flag.Parse call (fixed with klog)
2019-07-15 15:04:15 -04:00
Adam Kaplan
7dd678b60f Remove references to cli flags in errors
Fixes #880
2018-07-18 15:46:30 -04:00
Adam Kaplan
9b55f54e76 api/constants package
Moved docker labels, s2i scripts, and deprecated env var constants
to it's own package.

Fixes #882
2018-06-21 08:49:12 -04:00
Adam Kaplan
cfd8419086 Check Assemble Users Against Allowed UIDs
Adding check to ensure the s2i assemble user is allowed if the --allowed-uids flag is set.
The assemble user can come from one of two sources:

1. --assemble-user flag
2. builder image io.openshift.s2i.assemble-user label

The assemble user overrides the default image user for an s2i build.
However, if the base image has ONBUILD instructions with USER directives,
all USER directives will be checked to ensure compliance.

Bug 1582976
2018-05-29 10:55:15 -04:00
Shiyang Wang
514d320360 add zsh completions for s2i
change condition

modify verify-bash-completion.sh

change to pass golint

change to pass golint
2016-12-22 11:13:00 +08:00
yuanxiao
edef3e11c2 refactor func checkErr to CheckError
Signed-off-by: yuanxiao <yuan.xiao5@zte.com.cn>
2016-12-12 10:01:59 +08:00
oatmealraisin
c067127cee Removed unused MissingGitRepositoryError 2016-08-10 14:58:09 -04:00
oatmealraisin
9a194b5814 Added checks for existing content is git repo
This fixes an error when the git repo is empty, e.g. the user only ran
`git init`.  If the repo is empty, we use system copy commands instead
of git commands, and warn the user.

Also added errors for if there is a .git directory in the project, but
a Git binary is not installed.  Changed various function headers to throw
these errors.
2016-08-04 14:01:07 -04:00
Slava Semushin
626f7cc2da Add support for extended build.
From now you can create final image that is based on the image that is
different than builder image. To use it provide --runtime-image option
with image that will be used in runtime.

Also specify --runtime-artifact option (one or more times) with a list
of files and directories that will be copied into resulting image.
Alternatively this mapping can be extracted from the
io.openshift.s2i.assemble-input-files annotation on a runtime image.

To execute custom logic to arrange image to a desired state, you can
leverage "assemble-runtime" script. You can 1) put it .s2i/bin directory
with application sources 2) download it from remote location (-s option)
or 3) have it inside a runtime image (but don't forget to add
io.openshift.s2i.scripts-url label on it).
2016-07-08 17:30:01 +02:00
Slava Semushin
246d932776 Don't use deprecated option/file/image.
- don't use deprecated image: openshift/wildfly-8-centos -> openshift/wildfly-100-centos7
- update docs to use --pull-policy instead of deprecated --force-pull.
- replace .stifile by .s2ifile in --use-config option description.
2016-05-13 15:57:54 +02:00
Ben Parees
fafcd34daf report actual error on commit failure 2016-05-04 14:25:49 -04:00
Cesar Wong
965426e9f4 Add allowed-uids flag to the STI command 2015-08-11 17:04:49 -04:00
Cesar Wong
62b32aba4e Revert "Add flag to prevent builders from running as root"
This reverts commits 31c8706886 and 5d118bd5f3.
2015-07-20 12:52:25 -04:00
Cesar Wong
31c8706886 Add error for no-root condition 2015-07-10 11:56:44 -04:00
Michal Fojtik
82ff17419b Add support for new scripts-url label format 2015-06-26 15:42:50 +02:00
Ben Parees
62928769e4 report proper error for unrecognized source protocol 2015-06-11 10:22:14 -04:00
Maciej Szulik
fbfcc2cd88 Issue 205 - renamed io.openshift.sti.* label to shorter io.s2i.* 2015-05-29 20:48:26 +02:00
Maciej Szulik
ded1aaa5d8 Issue 183 - migrated STI_SCRIPTS_URL and STI_LOCATION environment
variables to io.openshift.sti.scripts-url and
io.openshift.sti.location labels.
2015-05-25 16:25:32 +02:00
Maciej Szulik
569f6b1892 Issue 187 - change parameters from camelCase to hyphen-names 2015-05-15 13:46:35 +02:00
Maciej Szulik
a35d3ba684 Changed Script -> string for readability 2015-02-20 13:54:14 +01:00
Michal Fojtik
e8fdd7fdeb Fix the errors names 2015-02-20 11:36:44 +01:00
Maciej Szulik
e67968972b Refactor installer interface 2015-02-19 21:50:27 +01:00
Maciej Szulik
55fed4adf3 Refactor downloader interface 2015-02-19 21:50:21 +01:00
Michal Fojtik
4a6c21f0cb Refactor to support more build strategies 2015-02-10 15:51:12 +01:00