Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions java-magazine-trains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ The example uses docker to build and run the microservices.
3. Build a Docker image for every microservice we have:

```bash
$ docker build -t trains/ui f ui/Dockerfile .
$ docker build -t trains/routes f routes/Dockerfile .
$ docker build -t trains/bookings f bookings/Dockerfile .
$ docker build -t trains/ui -f ui/Dockerfile .
$ docker build -t trains/routes -f routes/Dockerfile .
$ docker build -t trains/bookings -f bookings/Dockerfile .
```
4. Start the created containers with the appropriate environment variables that serve as the containers config:
* `BASE_URI` should contain the microservice actual url (in our case we will use the Docker hosts IP)
Expand All @@ -82,4 +82,4 @@ The application/service can be accessed on the following URLs:
* Routes service - http://localhost:3001/routes
* Bookings service - http://localhost:3002/bookings

To shut down the example simply stop and destroy the created containers.
To shut down the example simply stop and destroy the created containers.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
</web-app>
6 changes: 3 additions & 3 deletions java-magazine-trains/ui/src/main/resources/webapp/index.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
<h:column>
<f:facet name="header">Route start location</f:facet>

#{route.start}
#{route.startPlace}
</h:column>

<h:column>
<f:facet name="header">Route end location</f:facet>

#{route.end}
#{route.endPlace}
</h:column>

<h:column>
Expand All @@ -54,4 +54,4 @@
</h:dataTable>

</h:body>
</html>
</html>