Skip to content

Commit c2d44ad

Browse files
author
jmathianas
committed
add readme file
1 parent 49be6f1 commit c2d44ad

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Running existing images on OpenShift
2+
3+
## Description
4+
5+
This demonstrates running an existing spring boot example application docker image hosted on quay.io
6+
7+
## Docker Command Example
8+
```
9+
docker run -p 8080:8080 quay.io/cloudfirst/spring-boot-helloworld:v0.2
10+
```
11+
12+
## OpenShift Command Example
13+
Run the following command to run the docker image and then expose the port
14+
```
15+
oc new-app quay.io/cloudfirst/spring-boot-helloworld:v0.2
16+
oc expose svc/spring-boot-helloworld
17+
```
18+
19+
Run the following to get the route url
20+
```
21+
oc get route spring-boot-helloworld --template="http://{{ .spec.host }}"
22+
```

0 commit comments

Comments
 (0)