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

40 Commits

Author SHA1 Message Date
Max Ludwig
9310b6889b Fix instruction in s2i create README template
Fixes #1056.
2020-10-10 21:47:40 +02:00
sdarwin
e174a10297 add dotglob for restore artifacts 2019-11-24 21:57:19 -06:00
sdarwin
61ae4a1fa2 update restore artifacts script 2019-11-21 20:32:34 +00: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
Vincent van Dam
b08d94a374 Improve cross-platform compatibility in generated test script 2018-06-29 14:02:28 +02:00
Anthony Sottile
8fb7132d2a Move from deprecated MAINTAINER to LABEL maintainer=...
See https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
2017-11-10 12:58:38 -08:00
Anthony Sottile
896e6f50cc Minor fixes to create template
- Remove spurious newlines at the beginning of files.
- README.md and index.html are no longer executable.
2017-11-10 11:33:15 -08:00
Maciej Szulik
3290e038ef Remove unused variable from test template and update docker tempalte to point to a runnble script 2017-04-20 23:46:41 +02:00
Corey Daley
a8f4df0479 Overhaul of Source-to-Image
Updating README(s), templates, and examples
2017-02-23 10:15:59 -05:00
Rodolfo Carvalho
bc2e858e0d Prefer using https:// instead of git:// (#647)
* Prefer using https:// instead of git://

Both protocols are "smart" and should have similar performance.
HTTPS is encrypted, while the Git transport is plaintext.
HTTPS verifies the certificate of the server.

* Clean up comment

- "the source" means "s"
- no need to enumerate protocols
2017-01-06 11:50:27 -05:00
Jim Minter
251057d7f3 s2i windows build enablement
- enable use of cygwin to build and test s2i
- simplify git and file downloaders
- track posix file permissions on windows
- remove unnecessary runtime.GOOS == "windows" checks
- unit test fixes
2016-11-29 19:17:50 +00:00
Luis Fernando Gomes
c848fa9d46 Fix container_ip function on Mac 2016-10-24 13:25:15 -02:00
Jim Minter
0604914056 fix lint warnings 2016-10-18 11:21:52 +01:00
Luis Fernando Gomes
6cdee6944a Add gitignore on create 2016-09-30 11:59:56 -03:00
Michal Cichra
bcf247fe93 [test/run] fix unbout variable in the template
container_ip is unbound variable, it is a function that has to be called
2016-09-05 18:24:42 +02:00
jupierce
05c257c1f2 Migrating s2i to use glog mock library 2016-06-28 13:51:51 -04: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
515708c0ca remove unnecessary -s argument that's breaking usage testing 2016-05-09 14:54:04 -04:00
Slava Semushin
189f31945b Minor code improvements.
- Bootstrap.process(): don't try to do chmod on Windows
- cmd/s2i/main.go: fix file descriptors leak
- GenerateConfigFromLabels: remove unused parameter
- GenerateConfigFromLabels: use local variable for a list of labels
- sti.New(): rename argument from req to config
- DefaultCleaner: don't inherit ~30 methods while we're using just two
- STI.Prepare(): simplify
- DockerIgnorer.getListOfFilesToIgnore(): pass string instead of api.Config
- util.FixInjectionsWithRelativePath: rewrite to not modify its argument
2016-05-06 23:25:48 +02:00
Dan McPherson
19b107c7c3 Git is not an acronym 2016-03-29 16:52:19 -04:00
pi-victor
e0566db4c5 updated scripts templates for s2i create 2015-12-10 17:50:54 +01:00
pi-victor
5bbdd3d849 changed /usr/local to /usr/libexec/
Signed-off-by: pi-victor <ipalade@redhat.com>
2015-11-27 16:19:36 +01:00
Maciej Szulik
20160b963a sti -> s2i rebranding 2015-08-24 17:22:00 +02:00
OpenShift Bot
4c3110f9f4 Merge pull request #249 from vbehar/feature/fix-test-run
Merged by openshift-bot
2015-07-29 10:44:20 -04:00
Vincent Behar
3f885b2cf7 fix some issues with the test run script
- fix use of readlink & mktemp on osx
  use GNU versions of these tools on darwin (OSX)
  to install them, use :
    $ brew install coreutils

- add a warning for OSX users, suggesting them to use a container to run the curl command
  if they can't access the container's ip directly (because of boot2docker)

- run STI build for tests in incremental mode

- add more logs when testing
2015-07-29 15:22:57 +02:00
OpenShift Bot
928e9df91e Merge pull request #247 from vbehar/feature/fix-scripts-template
Merged by openshift-bot
2015-07-29 08:48:53 -04:00
Vincent Behar
7dd9f70b6e Remove empty line at the top of the generated scripts
Otherwise, when running the image with "docker run ...", we have an error :
    Cannot start container [...]: exec format error

Because docker "looks at the first few bytes to determine the type of the file"

See https://github.com/docker/docker/issues/10668 for more
2015-07-24 17:12:46 +02:00
Vincent Behar
0ff6c8348e Rename /opt/openshift to /opt/app-root
following the same change in sti-base : https://github.com/openshift/sti-base/pull/58
2015-07-24 08:35:22 +02:00
Maciej Szulik
faf9f9a2c4 Fixed some leftovers from moving to new label scheme including: docs,
getDestination method and template for Dockerfile.
2015-07-06 14:09:30 +02:00
Maciej Szulik
039d57150a Moved the USER command after the chown operation, otherwise this will fail build.
Reverted git initialization in test/run.
2015-06-30 11:13:47 +02:00
Maciej Szulik
94d57ef4b0 Applied comments from @csrwng to create 2015-06-29 15:59:36 +02:00
ewolinetz
9fec673291 Addressing nits and resolving merge conflicts. 2015-06-26 10:31:42 -05:00
Ian Miell
d0ebbbf829 Some rewrites and clarifications
Conflicts:
	docs/builder_image.md
	pkg/create/templates/test.go
2015-06-26 10:04:53 -05:00
Maciej Szulik
dd9ba65711 Update sti create command with:
- file permissions of created files
 - contents of all created files
2015-06-26 14:51:46 +02:00
Maciej Szulik
569f6b1892 Issue 187 - change parameters from camelCase to hyphen-names 2015-05-15 13:46:35 +02:00
Michal Fojtik
b579cfd6c7 Update create templates to use base image 2015-02-20 15:08:51 +01:00
Rodolfo Carvalho
5ae913f647 Fix typos 2015-02-16 20:35:58 +01:00
Michal Fojtik
0a2a292ac0 Fix godoc 2015-02-11 19:59:45 +01:00
Michal Fojtik
c7bebbdbed Added godoc and addressed @soltysh comments 2015-02-11 13:49:45 +01:00
Michal Fojtik
4a6c21f0cb Refactor to support more build strategies 2015-02-10 15:51:12 +01:00