Skip to content

Commit

Permalink
Merge pull request #279 from galderz/t_dev_explict_postgresql_urls
Browse files Browse the repository at this point in the history
Make Postgresql host explicit
  • Loading branch information
gsmet authored Sep 19, 2019
2 parents 531ce32 + 5ddcebf commit bf71ce7
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 3 deletions.
11 changes: 11 additions & 0 deletions hibernate-orm-panache-resteasy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,14 @@ Navigate to:
<http://localhost:8080/index.html>

Have fun, and join the team of contributors!

## Running the demo in Kubernetes

This section provides extra information for running both the database and the demo on Kubernetes.
As well as running the DB on Kubernetes, a service needs to be exposed for the demo to connect to the DB.

Then, rebuild demo docker image with a system property that points to the DB.

```bash
-Dquarkus.datasource.url=jdbc:postgresql://<DB_SERVICE_NAME>/quarkus_test
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
quarkus.datasource.url=jdbc:postgresql:quarkus_test
quarkus.datasource.url=jdbc:postgresql://localhost/quarkus_test
quarkus.datasource.driver=org.postgresql.Driver
quarkus.datasource.username=quarkus_test
quarkus.datasource.password=quarkus_test
Expand Down
11 changes: 11 additions & 0 deletions hibernate-orm-resteasy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,14 @@ Navigate to:
<http://localhost:8080/index.html>

Have fun, and join the team of contributors!

## Running the demo in Kubernetes

This section provides extra information for running both the database and the demo on Kubernetes.
As well as running the DB on Kubernetes, a service needs to be exposed for the demo to connect to the DB.

Then, rebuild demo docker image with a system property that points to the DB.

```bash
-Dquarkus.datasource.url=jdbc:postgresql://<DB_SERVICE_NAME>/quarkus_test
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
quarkus.datasource.url=jdbc:postgresql:quarkus_test
quarkus.datasource.url=jdbc:postgresql://localhost/quarkus_test
quarkus.datasource.driver=org.postgresql.Driver
quarkus.datasource.username=quarkus_test
quarkus.datasource.password=quarkus_test
Expand Down
11 changes: 11 additions & 0 deletions hibernate-search-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,14 @@ Navigate to:
<http://localhost:8080/>

Have fun, and join the team of contributors!

## Running the demo in Kubernetes

This section provides extra information for running both the database and the demo on Kubernetes.
As well as running the DB on Kubernetes, a service needs to be exposed for the demo to connect to the DB.

Then, rebuild demo docker image with a system property that points to the DB.

```bash
-Dquarkus.datasource.url=jdbc:postgresql://<DB_SERVICE_NAME>/quarkus_test
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# we don't need SSL here, let's disable it to have a more compact native executable
quarkus.ssl.native=false

quarkus.datasource.url=jdbc:postgresql:quarkus_test
quarkus.datasource.url=jdbc:postgresql://localhost/quarkus_test
quarkus.datasource.driver=org.postgresql.Driver
quarkus.datasource.username=quarkus_test
quarkus.datasource.password=quarkus_test
Expand Down

0 comments on commit bf71ce7

Please sign in to comment.