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

37 Commits

Author SHA1 Message Date
Corey Daley
ad74e0303b S2I command always uses 'latest' tag
Fixes #1122
2023-07-05 20:20:12 -04:00
Corey Daley
898b43c0a1 commiting results of running goio 2023-03-16 00:59:21 -04:00
gabemontero
ed1f0ecedc update script url from builder image labels with s2i build --as-dockerfile 2021-07-02 15:50:15 -04:00
Corey Daley
8ca83f8ce1 code changes for k8s.io/klog/v2 2020-10-01 20:59:50 -04:00
Corey Daley
adfc3ee2f4 Cleaning up imports 2020-06-02 14:29:57 -04:00
Igor Sutton Lopes
820f21584e Sync names in program from documentation 2020-02-10 13:17:58 +01:00
Igor Sutton Lopes
888560cf0d Add 'docker://' to the builder image if it doesn't have a scheme 2020-02-10 13:15:39 +01:00
Igor Sutton Lopes
a4a8b1114c Sync docs and command usage 2020-02-07 15:47:38 +01:00
Igor Sutton Lopes
de9d5a5e7c Do not propagate URL-like image names to Dockerfile
URL-like image names are required by containers/image in order to find the right
image repository and were propagated to the resulting Dockerfile. This change fixes
that by using containers/image API to properly extract the proper Docker image name.
2020-02-04 14:01:22 +01:00
Igor Sutton Lopes
f8dcf74445 Add generate command
This change adds the generate command to s2i, where it allows
the user to produce a Dockerfile able to be used by any build
system supporting the format, such as buildah and possibly
others.
2020-01-23 16:26:18 +01:00
soulseen
739bc0504f remove func GetStrategy 2019-08-07 22:55:57 +08:00
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
19d753b6f6 Migrate glog to klog 2019-07-15 12:53:19 -04:00
soulseen
b09aa26e92 remove basename in main()
Signed-off-by: soulseen <sunzhu@yunify.com>
2019-05-20 11:24:25 +08:00
05601970475
e685afa89f add assemble-runtime-user flag
documentation of assemble-runtime-user's flag

add LABEL assemble-runtime-user

removing debug messages

change the failure reason of GetAssembleRuntimeUser

assemble-runtime-user is optional

generate completitions

check getAssembleRuntimeUser error
2018-11-19 17:13:54 -03:00
OpenShift Bot
ec6ef8b689 Merge pull request #927 from MagicSong/master
Merged by openshift-bot
2018-09-21 00:27:10 -04:00
magicsong
1b45714ced add --add-host flag 2018-09-21 11:57:04 +08:00
Petr Kubat
12e510a73a build: only check if docker is reachable when not using --as-dockerfile 2018-09-17 09:42:55 +02:00
Adam Kaplan
6815fa6d92 Allow URLs for Image Scripts Location
* Rename ImageScriptsDir to ImageScriptsURL
* Allow ImageScriptsURL to download scripts from filesystem, web, etc.
* Add default path for image scripts
* Update cli and completions
2018-08-10 11:38:08 -04:00
Jan Wozniak
c845115212 build: keep symlinks flag 2018-07-26 13:12:28 +02:00
OpenShift Bot
012c77ca17 Merge pull request #907 from adambkaplan/feature/increment-dockerfile
Merged by openshift-bot
2018-07-20 11:13:26 -04:00
Adam Kaplan
f7aed52d47 Incremental Dockerfile Build
Allow incremental --as-dockerfile builds.

Trello card: https://trello.com/c/P6TZg0wO/1582-5-builds-s2i-incremental-build-as-dockerfile
2018-07-20 10:44:58 -04:00
Ben Parees
e28a214c9f clarify git clone behavior 2018-07-17 17:52:04 -04:00
Ben Parees
ab7a0b064e do not do image lookup when doing dockerfile output build 2018-06-27 10:43:29 -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
Ben Parees
62488a5747 Option to produce a buildable Dockerfile instead of an image when building 2018-05-25 10:33:41 -04:00
Ben Parees
09e6ac0ca6 error out on unparseable urls 2018-01-30 16:07:38 -05:00
OpenShift Bot
507eb30816 Merge pull request #777 from estaleiro/add-network-option
Merged by openshift-bot
2017-07-15 21:39:12 -04:00
Ricardo Pchevuzinske Katz
2aeea6cd28 Adds support for network flag while building image 2017-07-15 12:12:49 -03:00
Jim Minter
7da3d3e975 git URL parsing rewrite 2017-07-13 09:09:56 +01:00
Corey Daley
95ebbabfb9 Refactoring the S2I command line interface
Closes #443
2017-06-26 11:06:04 -04:00
guangxuli
2816855ca0 delete deprecated force pull flag
update bash and zsh

remove --force-pull
2017-03-28 10:55:04 +08:00
guangxuli
fa00113315 add runtime pull policy
update bash and zsh
2017-03-27 19:21:40 +08:00
Michal Fojtik
0144a76db5 Use cobra for parsing multiple env variables 2016-04-28 13:30:36 +02:00
Ben Parees
80b9ab2774 expose previous image pull policy as a flag 2016-02-18 17:27:18 +01:00
Rodolfo Carvalho
dcaf190315 Remove custom SIGQUIT handler
Go prints a stack trace of all goroutines by default on SIGQUIT, except
those related to the runtime. To include all goroutines, set
GOTRACEBACK=2 or GOTRACEBACK=crash.

This custom handler was suppressing Go's default behavior.
2016-02-09 16:15:26 +01:00
Michal Fojtik
8f4b47b6f0 Refactor main.go to be more DRY 2015-11-06 16:23:33 +01:00