| ... | ... |
@@ -209,7 +209,6 @@ FAQ |
| 209 | 209 |
OpenShift is designed to run any existing Docker images. In addition you can define builds that will produce new Docker images from a Dockerfile. However the real magic of OpenShift can be seen when using [Source-To-Image](https://github.com/openshift/source-to-image)(STI) builds which allow you to simply supply an application source repository which will be combined with an existing STI-enabled Docker image to produce a new runnable image that runs your application. We are continuing to grow the ecosystem of STI-enabled images and documenting them [here](https://ci.openshift.redhat.com/openshift-docs-master-testing/latest/openshift_sti_images/overview.html). We also have a few more experimental images available: |
| 210 | 210 |
|
| 211 | 211 |
* [Wildfly](https://github.com/openshift/wildfly-8-centos) |
| 212 |
- * [Ruby](https://github.com/openshift/ruby-20-centos/) |
|
| 213 | 212 |
|
| 214 | 213 |
Contributing |
| 215 | 214 |
------------ |
| ... | ... |
@@ -3,10 +3,10 @@ |
| 3 | 3 |
"items": [ |
| 4 | 4 |
{
|
| 5 | 5 |
"apiVersion": "v1beta1", |
| 6 |
- "dockerImageRepository": "openshift/ruby-20-centos", |
|
| 6 |
+ "dockerImageRepository": "openshift/ruby-20-centos7", |
|
| 7 | 7 |
"kind": "ImageRepository", |
| 8 | 8 |
"metadata": {
|
| 9 |
- "name": "ruby-20-centos" |
|
| 9 |
+ "name": "ruby-20-centos7" |
|
| 10 | 10 |
}, |
| 11 | 11 |
"tags": {
|
| 12 | 12 |
"latest": "latest" |
| ... | ... |
@@ -35,7 +35,7 @@ |
| 35 | 35 |
}, |
| 36 | 36 |
"strategy": {
|
| 37 | 37 |
"stiStrategy": {
|
| 38 |
- "image": "openshift/ruby-20-centos" |
|
| 38 |
+ "image": "openshift/ruby-20-centos7" |
|
| 39 | 39 |
}, |
| 40 | 40 |
"type": "STI" |
| 41 | 41 |
} |
| ... | ... |
@@ -394,4 +394,4 @@ |
| 394 | 394 |
"value": "root" |
| 395 | 395 |
} |
| 396 | 396 |
] |
| 397 |
-} |
|
| 397 |
+} |
|
| 398 | 398 |
\ No newline at end of file |
| ... | ... |
@@ -207,7 +207,7 @@ the present working directory is the same directory as this README. |
| 207 | 207 |
* A BuildConfig (ruby-sample-build) to specify a build that uses |
| 208 | 208 |
your ruby-hello-world fork as the input for a source-to-image (STI) build |
| 209 | 209 |
* ImageRepositories for the images used and created in the build: |
| 210 |
- * The ruby-20-centos STI builder will build an image from your source |
|
| 210 |
+ * The ruby-20-centos7 STI builder will build an image from your source |
|
| 211 | 211 |
* The output image will be called origin-ruby-sample |
| 212 | 212 |
* DeploymentConfigs (frontend, backend) for defining Deployments once the images are available |
| 213 | 213 |
* Services (routable endpoints) for the ruby frontend and database backend deployments |
| ... | ... |
@@ -38,7 +38,7 @@ |
| 38 | 38 |
"apiVersion": "v1beta1", |
| 39 | 39 |
"kind": "ImageRepository", |
| 40 | 40 |
"metadata": {
|
| 41 |
- "name": "ruby-20-centos" |
|
| 41 |
+ "name": "ruby-20-centos7" |
|
| 42 | 42 |
} |
| 43 | 43 |
}, |
| 44 | 44 |
{
|
| ... | ... |
@@ -82,9 +82,9 @@ |
| 82 | 82 |
{
|
| 83 | 83 |
"imageChange": {
|
| 84 | 84 |
"from": {
|
| 85 |
- "name": "ruby-20-centos" |
|
| 85 |
+ "name": "ruby-20-centos7" |
|
| 86 | 86 |
}, |
| 87 |
- "image": "openshift/ruby-20-centos", |
|
| 87 |
+ "image": "openshift/ruby-20-centos7", |
|
| 88 | 88 |
"tag": "latest" |
| 89 | 89 |
}, |
| 90 | 90 |
"type": "imageChange" |
| ... | ... |
@@ -38,7 +38,7 @@ |
| 38 | 38 |
"apiVersion": "v1beta1", |
| 39 | 39 |
"kind": "ImageRepository", |
| 40 | 40 |
"metadata": {
|
| 41 |
- "name": "ruby-20-centos" |
|
| 41 |
+ "name": "ruby-20-centos7" |
|
| 42 | 42 |
} |
| 43 | 43 |
}, |
| 44 | 44 |
{
|
| ... | ... |
@@ -64,8 +64,7 @@ |
| 64 | 64 |
}, |
| 65 | 65 |
"strategy": {
|
| 66 | 66 |
"stiStrategy": {
|
| 67 |
- "image": "openshift/ruby-20-centos", |
|
| 68 |
- "scripts": "https://raw.githubusercontent.com/openshift/ruby-20-centos/master/.sti/bin" |
|
| 67 |
+ "image": "openshift/ruby-20-centos7" |
|
| 69 | 68 |
}, |
| 70 | 69 |
"type": "STI" |
| 71 | 70 |
} |
| ... | ... |
@@ -86,9 +85,9 @@ |
| 86 | 86 |
{
|
| 87 | 87 |
"imageChange": {
|
| 88 | 88 |
"from": {
|
| 89 |
- "name": "ruby-20-centos" |
|
| 89 |
+ "name": "ruby-20-centos7" |
|
| 90 | 90 |
}, |
| 91 |
- "image": "openshift/ruby-20-centos", |
|
| 91 |
+ "image": "openshift/ruby-20-centos7", |
|
| 92 | 92 |
"tag": "latest" |
| 93 | 93 |
}, |
| 94 | 94 |
"type": "imageChange" |
| ... | ... |
@@ -180,13 +180,13 @@ osc delete -f examples/sample-app/docker-registry-config.json |
| 180 | 180 |
osc delete imageRepositories test |
| 181 | 181 |
[ -z "$(osc get imageRepositories test -t "{{.status.dockerImageRepository}}")" ]
|
| 182 | 182 |
osc create -f examples/image-repositories/image-repositories.json |
| 183 |
-[ -n "$(osc get imageRepositories ruby-20-centos -t "{{.status.dockerImageRepository}}")" ]
|
|
| 183 |
+[ -n "$(osc get imageRepositories ruby-20-centos7 -t "{{.status.dockerImageRepository}}")" ]
|
|
| 184 | 184 |
[ -n "$(osc get imageRepositories nodejs-010-centos7 -t "{{.status.dockerImageRepository}}")" ]
|
| 185 | 185 |
[ -n "$(osc get imageRepositories wildfly-8-centos -t "{{.status.dockerImageRepository}}")" ]
|
| 186 |
-osc delete imageRepositories ruby-20-centos |
|
| 186 |
+osc delete imageRepositories ruby-20-centos7 |
|
| 187 | 187 |
osc delete imageRepositories nodejs-010-centos7 |
| 188 | 188 |
osc delete imageRepositories wildfly-8-centos |
| 189 |
-[ -z "$(osc get imageRepositories ruby-20-centos -t "{{.status.dockerImageRepository}}")" ]
|
|
| 189 |
+[ -z "$(osc get imageRepositories ruby-20-centos7 -t "{{.status.dockerImageRepository}}")" ]
|
|
| 190 | 190 |
[ -z "$(osc get imageRepositories nodejs-010-centos7 -t "{{.status.dockerImageRepository}}")" ]
|
| 191 | 191 |
[ -z "$(osc get imageRepositories wildfly-8-centos -t "{{.status.dockerImageRepository}}")" ]
|
| 192 | 192 |
echo "imageRepositories: ok" |
| ... | ... |
@@ -233,14 +233,14 @@ osc create -f test/integration/fixtures/test-buildcli.json |
| 233 | 233 |
# the build should use the image field as defined in the buildconfig |
| 234 | 234 |
started=$(osc start-build ruby-sample-build-invalidtag) |
| 235 | 235 |
echo "start-build: ok" |
| 236 |
-osc describe build ${started} | grep openshift/ruby-20-centos$
|
|
| 236 |
+osc describe build ${started} | grep openshift/ruby-20-centos7$
|
|
| 237 | 237 |
|
| 238 | 238 |
osc cancel-build "${started}" --dump-logs --restart
|
| 239 | 239 |
# a build for which there is an upstream tag in the corresponding imagerepo, so |
| 240 | 240 |
# the build should use that specific tag of the image instead of the image field |
| 241 | 241 |
# as defined in the buildconfig |
| 242 | 242 |
started=$(osc start-build ruby-sample-build-validtag) |
| 243 |
-osc describe build ${started} | grep openshift/ruby-20-centos:success$
|
|
| 243 |
+osc describe build ${started} | grep openshift/ruby-20-centos7:success$
|
|
| 244 | 244 |
osc cancel-build "${started}" --dump-logs --restart
|
| 245 | 245 |
echo "cancel-build: ok" |
| 246 | 246 |
|
| ... | ... |
@@ -18,7 +18,7 @@ The sample custom BuildConfig definition might look as following: |
| 18 | 18 |
"kind": "BuildConfig", |
| 19 | 19 |
"apiVersion": "v1beta1", |
| 20 | 20 |
"metadata":{
|
| 21 |
- "name": "ruby-20-centos-build" |
|
| 21 |
+ "name": "ruby-20-centos7-build" |
|
| 22 | 22 |
}, |
| 23 | 23 |
"triggers": [ |
| 24 | 24 |
{
|
| ... | ... |
@@ -32,7 +32,7 @@ The sample custom BuildConfig definition might look as following: |
| 32 | 32 |
"source" : {
|
| 33 | 33 |
"type" : "Git", |
| 34 | 34 |
"git" : {
|
| 35 |
- "uri": "git://github.com/openshift/ruby-20-centos.git" |
|
| 35 |
+ "uri": "git://github.com/openshift/sti-ruby.git" |
|
| 36 | 36 |
} |
| 37 | 37 |
}, |
| 38 | 38 |
"strategy": {
|
| ... | ... |
@@ -41,27 +41,27 @@ The sample custom BuildConfig definition might look as following: |
| 41 | 41 |
"image": "openshift/sti-image-builder", |
| 42 | 42 |
"exposeDockerSocket": true, |
| 43 | 43 |
"env": [ |
| 44 |
- { "name": "IMAGE_NAME", "value": "openshift/ruby-20-centos"}
|
|
| 45 |
- { "name": "CONTEXT_DIR", "value": "."}
|
|
| 44 |
+ { "name": "IMAGE_NAME", "value": "openshift/ruby-20-centos7"}
|
|
| 45 |
+ { "name": "CONTEXT_DIR", "value": "/2.0/"}
|
|
| 46 | 46 |
] |
| 47 | 47 |
} |
| 48 | 48 |
}, |
| 49 | 49 |
"output": {
|
| 50 |
- "to": "ruby-20-centos-repository", |
|
| 50 |
+ "to": "ruby-20-centos7-repository", |
|
| 51 | 51 |
"tag": "latest", |
| 52 | 52 |
}, |
| 53 | 53 |
}, |
| 54 | 54 |
"labels": {
|
| 55 |
- "name": "ruby-20-centos-build" |
|
| 55 |
+ "name": "ruby-20-centos7-build" |
|
| 56 | 56 |
} |
| 57 | 57 |
} |
| 58 | 58 |
|
| 59 | 59 |
``` |
| 60 | 60 |
|
| 61 |
-This example will trigger a build for the 'ruby-20-centos' everytime there is a |
|
| 61 |
+This example will trigger a build for the 'ruby-20-centos7' everytime there is a |
|
| 62 | 62 |
push into its Github repository. It will set the name of the resulting image to |
| 63 |
-"openshift/ruby-20-centos" and it expects the Dockerfile to be present in the |
|
| 63 |
+"openshift/ruby-20-centos7" and it expects the Dockerfile to be present in the |
|
| 64 | 64 |
root directory of the GIT repository. |
| 65 | 65 |
|
| 66 |
-After a successful build, the 'openshift/ruby-20-centos' image will be pushed |
|
| 67 |
-into "ruby-20-centos-repository" ImageRepository and tagged as 'latest'. |
|
| 66 |
+After a successful build, the 'openshift/ruby-20-centos7' image will be pushed |
|
| 67 |
+into "ruby-20-centos7-repository" ImageRepository and tagged as 'latest'. |
| ... | ... |
@@ -23,9 +23,9 @@ tools to interact with each component of your system. |
| 23 | 23 |
At the present time, the CLI wraps many of the upstream Kubernetes commands and works generically |
| 24 | 24 |
on all resources. To create a new application, try: |
| 25 | 25 |
|
| 26 |
- $ %[1]s new-app openshift/ruby-20-centos~git@github.com/mfojtik/sinatra-app-example |
|
| 26 |
+ $ %[1]s new-app openshift/ruby-20-centos7~git@github.com/mfojtik/sinatra-app-example |
|
| 27 | 27 |
|
| 28 |
-This will create an application based on the Docker image 'openshift/ruby-20-centos' that builds |
|
| 28 |
+This will create an application based on the Docker image 'openshift/ruby-20-centos7' that builds |
|
| 29 | 29 |
the source code at 'github.com/mfojtik/sinatra-app-example'. To start the build, run |
| 30 | 30 |
|
| 31 | 31 |
$ %[1]s start-build sinatra-app-example |
| ... | ... |
@@ -62,7 +62,7 @@ Examples: |
| 62 | 62 |
$ openshift ex generate https://github.com/openshift/ruby-hello-world.git |
| 63 | 63 |
|
| 64 | 64 |
# Force the application to use the specific builder-image |
| 65 |
- $ openshift ex generate --builder-image=openshift/ruby-20-centos |
|
| 65 |
+ $ openshift ex generate --builder-image=openshift/ruby-20-centos7 |
|
| 66 | 66 |
` |
| 67 | 67 |
|
| 68 | 68 |
type params struct {
|
| ... | ... |
@@ -3,10 +3,10 @@ |
| 3 | 3 |
"items": [ |
| 4 | 4 |
{
|
| 5 | 5 |
"apiVersion": "v1beta1", |
| 6 |
- "dockerImageRepository": "openshift/ruby-20-centos", |
|
| 6 |
+ "dockerImageRepository": "openshift/ruby-20-centos7", |
|
| 7 | 7 |
"kind": "ImageRepository", |
| 8 | 8 |
"metadata": {
|
| 9 |
- "name": "ruby-20-centos-buildcli" |
|
| 9 |
+ "name": "ruby-20-centos7-buildcli" |
|
| 10 | 10 |
}, |
| 11 | 11 |
"tags": {
|
| 12 | 12 |
"valid": "success" |
| ... | ... |
@@ -35,8 +35,8 @@ |
| 35 | 35 |
}, |
| 36 | 36 |
"strategy": {
|
| 37 | 37 |
"stiStrategy": {
|
| 38 |
- "image": "openshift/ruby-20-centos", |
|
| 39 |
- "scripts": "https://raw.githubusercontent.com/openshift/ruby-20-centos/master/.sti/bin" |
|
| 38 |
+ "image": "openshift/ruby-20-centos7", |
|
| 39 |
+ "scripts": "https://raw.githubusercontent.com/openshift/ruby-20-centos7/master/.sti/bin" |
|
| 40 | 40 |
}, |
| 41 | 41 |
"type": "STI" |
| 42 | 42 |
} |
| ... | ... |
@@ -45,9 +45,9 @@ |
| 45 | 45 |
{
|
| 46 | 46 |
"imageChange": {
|
| 47 | 47 |
"from": {
|
| 48 |
- "name": "ruby-20-centos-buildcli" |
|
| 48 |
+ "name": "ruby-20-centos7-buildcli" |
|
| 49 | 49 |
}, |
| 50 |
- "image": "openshift/ruby-20-centos", |
|
| 50 |
+ "image": "openshift/ruby-20-centos7", |
|
| 51 | 51 |
"tag": "valid" |
| 52 | 52 |
}, |
| 53 | 53 |
"type": "imageChange" |
| ... | ... |
@@ -77,8 +77,8 @@ |
| 77 | 77 |
}, |
| 78 | 78 |
"strategy": {
|
| 79 | 79 |
"stiStrategy": {
|
| 80 |
- "image": "openshift/ruby-20-centos", |
|
| 81 |
- "scripts": "https://raw.githubusercontent.com/openshift/ruby-20-centos/master/.sti/bin" |
|
| 80 |
+ "image": "openshift/ruby-20-centos7", |
|
| 81 |
+ "scripts": "https://raw.githubusercontent.com/openshift/sti-ruby/master/2.0/.sti/bin" |
|
| 82 | 82 |
}, |
| 83 | 83 |
"type": "STI" |
| 84 | 84 |
} |
| ... | ... |
@@ -87,9 +87,9 @@ |
| 87 | 87 |
{
|
| 88 | 88 |
"imageChange": {
|
| 89 | 89 |
"from": {
|
| 90 |
- "name": "ruby-20-centos-buildcli" |
|
| 90 |
+ "name": "ruby-20-centos7-buildcli" |
|
| 91 | 91 |
}, |
| 92 |
- "image": "openshift/ruby-20-centos", |
|
| 92 |
+ "image": "openshift/ruby-20-centos7", |
|
| 93 | 93 |
"tag": "invalid" |
| 94 | 94 |
}, |
| 95 | 95 |
"type": "imageChange" |