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
MongoDB, RabbitMq and other Eiffel-Intelligence required components need to running and configured via these application properties that is provided to the docker command above. See the application.properties file for all available/required properties:
<B>"-e server.port=8080"</B> - Is the Spring property setting for Eiffel-Intelligence applications web port.
@@ -58,11 +55,10 @@ logging.level.com.ericsson.ei=DEBUG"</B> - These Spring properties set the loggi
58
55
59
56
It is possible to set all Spring available properties via docker envrionment "-e" flag. See the application.properties file for all available Eiffel-Intelligence Spring properties:
<B>"--expose 8080"</B> - this Docker flag tells that containers internal port shall be exposed to outside of the Docker Host. This flag do not set which port that should be allocated outside Docker Host on the actual server/machine.
@@ -75,17 +71,18 @@ When Eiffel-Intelligence container is running on your local Docker host, Eiffel-
75
71
76
72
77
73
Another option to configure Eiffel-Intelligence is to provide the application properties file into the container, which can be made in two ways:
78
-
1. Put application.properties file in Tomcat Catalina config folder in container and run Eiffe-Intelligence:
79
-
80
-
`docker run -p 8070:8080 --expose 8080 --volume /path/to/application.properties:/usr/local/tomcat/config/application.properties eiffel-intelligence:0.0.19`
81
74
82
-
2. Put application.properties file in a different folder in container and tell EI where the application.properties is located in the container:
75
+
**1** Put application.properties file in Tomcat Catalina config folder in container and run Eiffel-Intelligence:
76
+
77
+
docker run -p 8070:8080 --expose 8080 --volume /path/to/application.properties:/usr/local/tomcat/config/application.properties eiffel-intelligence:0.0.19
# Run Docker image with provided docker-compose file
88
-
This docker-compose file includes these components, [docker-compose.yml](https://github.com/Ericsson/eiffel-intelligence/blob/master/src/main/docker/docker-compose.yml):
85
+
This docker-compose file includes these components, [docker-compose.yml](https://github.com/eiffel-community/eiffel-intelligence/blob/master/src/main/docker/docker-compose.yml):
89
86
- mongodb
90
87
- rabbitmq
91
88
- eiffel-er
@@ -97,31 +94,30 @@ The variable EI_BACKEND_IMAGE needs to be updated to the value of your
97
94
recently built image: "eiffel-intelligence:1.0.1".
98
95
99
96
Then run following docker-compose command to startup all components:
100
-
101
-
`docker-compose -f src/main/docker/docker-compose.yml up -d`
97
+
98
+
docker-compose -f src/main/docker/docker-compose.yml up -d
102
99
103
100
It will take some minutes until all components has started. When all components has loaded, you should be able to access EI-Backend REST-interfaces with address:
104
101
http://localhost:8080/\<EI rest-api endpoint\>
105
102
106
103
Curl command can be used to make request to EI-Backend REST API, example for getting all subscriptions:
107
-
108
-
109
-
`curl -X GET http://localhost:8080/subscriptions`
104
+
105
+
curl -X GET http://localhost:8080/subscriptions
110
106
111
107
It is also possible to access these Rest-Api addresses in web-browser and get result present in a Json view in web-browser.
112
108
113
109
Following command can be used to get the logs from the EI-Backend container/service:
All available Eiffel-Intelligence properties can be found in [application.properties](https://github.com/Ericsson/eiffel-intelligence/blob/master/src/main/resources/application.properties) example file.
0 commit comments