You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+40-39
Original file line number
Diff line number
Diff line change
@@ -127,39 +127,6 @@ Build the services using this command:
127
127
./gradlew assemble
128
128
```
129
129
130
-
=== Setting environment variables
131
-
132
-
133
-
==== Quick way
134
-
135
-
A quick way to set the environment variables is to run the script `./set-env.sh`
136
-
137
-
==== Long way
138
-
139
-
To run the application you must set the `DOCKER_HOST_IP` environment variable to the IP address of where the Docker containers are running:
140
-
141
-
* Docker toolbox/Virtual machine - IP address of the virtual machine
142
-
* Docker for Windows/Mac/Linux - IP address of your laptop/desktop
143
-
144
-
The value of `DOCKER_HOST_IP` must be meaningful to both Java services/tests running on your desktop/laptop and to Docker containers.
145
-
Please do NOT set it to the unresolvable hostname of your machine, `localhost` or `127.0.0.1` since the Docker containers will probably not work correctly.
146
-
147
-
=== Verifying that DOCKER_HOST_IP is set correctly
148
-
149
-
You can verify that `DOCKER_HOST_IP` is set correctly by running this command:
150
-
151
-
----
152
-
docker run -p 8889:8888 -e DOCKER_DIAGNOSTICS_PORT=8889 -e DOCKER_HOST_IP \
If you want to run Java services/tests within your IDE on your desktop/laptop AND the Docker containers are not accessible via `localhost` THEN you will need to set `DOCKER_HOST_IP` within your IDE.
159
-
How to do this depends on your operating system and IDE.
160
-
For example, I find it convenient to launch my IDE from the command line and after setting this environment variable.
161
-
162
-
163
130
=== Running the application
164
131
165
132
Run the application using this command:
@@ -174,15 +141,17 @@ This can take a while.
174
141
175
142
Use the services Swagger UIs to invoke the services.
== Setting environment variables to do development
191
+
192
+
You should not need to set any environment variables.
193
+
To run the application, you certainly do not.
194
+
Similarly, to do development (e.g. run tests), you typically do not need to set any environment variables.
195
+
That's because Docker containers are generally accessible (e.g. Docker for Windows/Mac) on the host via `localhost`.
196
+
However, if Docker is running elsewhere you will need to set `DOCKER_HOST_IP`.
197
+
198
+
=== Quick way
199
+
200
+
A quick way to set the environment variables is to run the script `./set-env.sh`.
201
+
202
+
=== Long way
203
+
204
+
The value of `DOCKER_HOST_IP` must be meaningful to both Java services/tests running on your desktop/laptop and to Docker containers.
205
+
Please do NOT set it to the unresolvable hostname of your machine, `localhost` or `127.0.0.1` since the Docker containers will probably not work correctly.
206
+
207
+
=== Verifying that DOCKER_HOST_IP is set correctly
208
+
209
+
You can verify that `DOCKER_HOST_IP` is set correctly by running this command:
210
+
211
+
----
212
+
docker run -p 8889:8888 -e DOCKER_DIAGNOSTICS_PORT=8889 -e DOCKER_HOST_IP \
If you want to run Java services/tests within your IDE on your desktop/laptop AND the Docker containers are not accessible via `localhost` THEN you will need to set `DOCKER_HOST_IP` within your IDE.
219
+
How to do this depends on your operating system and IDE.
220
+
For example, I find it convenient to launch my IDE from the command line and after setting this environment variable.
Copy file name to clipboardExpand all lines: ftgo-delivery-service/src/component-test/java/net/chrisrichardson/ftgo/deliveryservice/DeliveryServiceOutOfProcessComponentTest.java
Copy file name to clipboardExpand all lines: ftgo-order-service/src/component-test/java/net/chrisrichardson/ftgo/orderservice/cucumber/OrderServiceComponentTestStepDefinitions.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ public class OrderServiceComponentTestStepDefinitions {
0 commit comments