Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
altfatterz committed Jul 7, 2019
1 parent 777a6f6 commit 9494b77
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions README.md
@@ -1,38 +1,3 @@
#### ConfigMap

```bash
oc create configmap openshift-spring-boot-demo-config-map --from-literal=greeting.message="Hello"
```

```bash
oc get configmap openshift-spring-boot-demo-config-map -o yaml
```

#### Secret

```bash
oc create secret generic openshift-spring-boot-demo-secret \
--from-literal=greeting.secret="H3ll0" \
--from-literal=jwt.secret="demo" \
--from-literal=spring.datasource.username="userT0G" \
--from-literal=spring.datasource.password="MMkglTP6tRe5mJL0"
```

```bash
oc get secret openshift-spring-boot-demo-secret -o yaml
```


#### Build and deploy

```bash
mvn clean install fabric8:deploy
```


#### Access customers

```bash
http http://customer-service-learning-openshift.192.168.99.101.nip.io/customers $HEADER
```
### More information here:

[https://zoltanaltfatter.com/2019/07/07/spring-boot-app-on-openshift//](https://zoltanaltfatter.com/2019/07/07/spring-boot-app-on-openshift/)

0 comments on commit 9494b77

Please sign in to comment.