Browse Source

Better image name variable handling in documentation.

release-work-7.0.0.fuse-760
Andrea Tarocchi 6 years ago
parent
commit
7dd9e46ff2
No known key found for this signature in database
GPG Key ID: EE5630CAB51A767C
  1. 8
      README.adoc

8
README.adoc

@ -1,5 +1,7 @@
:launchURL: https://developers.redhat.com/launch :launchURL: https://developers.redhat.com/launch
:image: registry.access.redhat.com/fuse7/fuse-java-openshift:1.0 :image-registry: registry.access.redhat.com
:image-prefix: /fuse7/
:image-name-version: fuse-java-openshift:1.0
= REST API Level 0 - Fuse Booster = REST API Level 0 - Fuse Booster
@ -100,14 +102,14 @@ $ oc new-project MY_PROJECT_NAME
+ +
[source,bash,options="nowrap",subs="attributes+"] [source,bash,options="nowrap",subs="attributes+"]
---- ----
$ oc import-image fis-java-openshift:2.0 --from={image} --confirm $ oc import-image {image-name-version} --from={image-registry}{image-prefix}{image-name-version} --confirm
---- ----
. Build and deploy the project to the OpenShift cluster: . Build and deploy the project to the OpenShift cluster:
+ +
[source,bash,options="nowrap",subs="attributes+"] [source,bash,options="nowrap",subs="attributes+"]
---- ----
$ mvn clean -DskipTests fabric8:deploy -Popenshift -Dfabric8.generator.fromMode=istag -Dfabric8.generator.from=MY_PROJECT_NAME/fis-java-openshift:2.0 $ mvn clean -DskipTests fabric8:deploy -Popenshift -Dfabric8.generator.fromMode=istag -Dfabric8.generator.from=MY_PROJECT_NAME/{image-name-version}
---- ----
. In your browser, navigate to the `MY_PROJECT_NAME` project in the OpenShift console. . In your browser, navigate to the `MY_PROJECT_NAME` project in the OpenShift console.

Loading…
Cancel
Save