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: wiki/markdown/curl-examples.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Below are some examples of using CURL towards different endpoints, together with
9
9
Most endpoints are also documented in the [Eiffel Intelligence backend repository](https://github.com/eiffel-community/eiffel-intelligence/tree/master/wiki/markdown)
10
10
11
11
**Note**: If you have multiple url parameters, you need to add quotation mark around the entire query. For example:
12
-
12
+
13
13
curl -X GET "http://localhost:8080/endpoint?varible1=1&varible2=2"
14
14
15
15
#### Quick access to endpoints:
@@ -178,7 +178,7 @@ The second entry is invalid due to having the same name as the first entry. The
178
178
179
179
#### Deleting a back-end instance via curl
180
180
181
-
It is possible to delete a back-end instance using curl. The full JSON object has to be specified to identify which instance should be deleted. It is not possible to delete a default backend instance.
181
+
It is possible to delete a back-end instance using curl. The full JSON object has to be specified to identify which instance should be deleted. It is not possible to delete a default back-end instance.
Copy file name to clipboardExpand all lines: wiki/markdown/docker.md
+39-33Lines changed: 39 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Docker
2
2
3
-
In Eiffel-Intelligence frontend source code repository, a Dockerfile is provided which helps the developer or user to build the local Eiffel-Intellegence frontend source code repository changes to a Docker image.
4
-
With the Docker image user can try-out the Eiffel-Intelligence frontend on a Docker Host or in a Kubernetes cluster.
3
+
In Eiffel-Intelligence front-end source code repository, a Dockerfile is provided which helps the developer or user to build the local Eiffel-Intellegence front-end source code repository changes to a Docker image.
4
+
With the Docker image user can try-out the Eiffel-Intelligence front-end on a Docker Host or in a Kubernetes cluster.
5
5
6
6
## Requirements
7
7
- Docker
@@ -13,12 +13,12 @@ With the Docker image user can try-out the Eiffel-Intelligence frontend on a Doc
Now docker image has build with tag "eiffel-intelligence-frontend:0.0.19"
33
33
@@ -70,10 +70,10 @@ When Eiffel-Intelligence container is running on your local Docker host Eiffel-I
70
70
71
71
In web-browser use url with docker host ip number: "\<docker host ip\>:8071/"
72
72
73
-
Switch-backend functionality do not work when "localhost" address is used.
73
+
Switch-back-end functionality do not work when "localhost" address is used.
74
74
75
-
Another option to configure Eiffel-Intelligence Front-end is to provide the application properties file into the container, which can be made in two ways:
76
-
1. Put application.properties file in Tomcat Catalina config folder in container and run Eiffe-Intelligence Front-end:
75
+
Another option to configure EiffelIntelligence front-end is to provide the application properties file into the container, which can be made in two ways:
76
+
1. Put application.properties file in Tomcat Catalina config folder in container and run Eiffel Intelligence front-end:
77
77
78
78
`docker run -p 8070:8080 --expose 8080 --volume /path/to/application.properties:/usr/local/tomcat/config/application.properties eiffel-intelligence-frontend:0.0.19`
79
79
@@ -84,60 +84,66 @@ Another option to configure Eiffel-Intelligence Front-end is to provide the appl
84
84
85
85
# Run Docker image with provided docker-compose file
86
86
This docker-compose file includes these components, [docker-compose.yml](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/docker/docker-compose.yml):
87
-
-MongoDb
87
+
-MongoDB
88
88
- RabbitMq
89
-
- ER
90
-
- EI-Backend
91
-
- EI-Frontend (Using the local EI-Frontend Docker image build from previous steps)
89
+
- ER (Event Repository)
90
+
- Mail server
91
+
- Jenkins
92
+
- Eiffel REMReM services (Generate and Publish)
93
+
- 3 instances of EI backend (using different rule sets)
94
+
- EI frontend (Using the local EI front-end Docker image build from previous steps)
92
95
93
-
If you have used a different image tag when you build the EI Frontend docker image, then you need to update docker-compose.yml file.
96
+
NOTE: Only MongoDB, RabbitMQ, ER and EI components are needed to start.
97
+
The rest of the components can be commented out if not needed.
94
98
95
-
This line need to changed, in ei_backend service section:
99
+
### 1 Source environment variables used in docker-compose.yml
96
100
97
-
"image: eiffel-intelligence-frontend:0.0.19"
101
+
For easier configuration, the Docker images to be used and ports for the different
102
+
services are set in [env.bash](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/docker/env.bash)
103
+
file. Update to whichever ports you want to use, or keep default values. If you have used a different image tag when you built the EI front-end
104
+
docker image, then you need to update the [env.bash file](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/docker/env.bash)
105
+
with the locally built image.
98
106
99
-
To:
107
+
To run docker-compose commands, the environment variables needs to be set:
100
108
101
-
"image: \<your image tag\>"
109
+
source src/main/docker/env.bash
102
110
103
111
Two variables need to be set before we can start up all services with docker-compose tool.
104
-
Set Docker host ip to the HOST variable.
105
-
If on Linux:
106
-
112
+
Set Docker host IP to the HOST variable. This is done automatically when sourcing [env.bash](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/docker/env.bash).
113
+
But it is also possible to do it manually. If on Linux:
107
114
`export HOST=$(hostname -I | tr " " "\n"| head -1)`
115
+
If on Windows, get Docker Host IP with command: `dockermachine ip`
116
+
Set that Docker host IP to HOST environment variable.
108
117
109
-
If on Windows, get Docker Host ip with command: `dockermachine ip`
110
-
111
-
Set that Docker host ip to HOST environment varaible.
118
+
Currently we need to provide EI back-end instances list outside of docker-compose.yml file.
119
+
This is also done via the [env.bash](https://github.com/Ericsson/eiffel-intelligence-frontend/blob/master/src/main/docker/env.bash)
120
+
file.
112
121
113
-
Currently we need to provide EI Back-end instances list outside of docker-compose.yml file.
122
+
### 2 Then run following docker-compose command to startup all components:
docker-compose -f src/main/docker/docker-compose.yml up -d
116
125
117
-
Then run following docker-compose command to startup all components:
118
-
119
-
`docker-compose -f src/main/docker/docker-compose.yml up -d`
120
-
121
-
It will take some minutes until all components has started. When all components has loaded, you should be able to access EI Front-end web page with address:
126
+
It will take some minutes until all components has started. When all components has loaded, you should be able to access EI front-end web page with address:
122
127
http://\<docker host ip\>:8081/
123
128
124
-
Curl command can be used to make request via EI Front-end bridge to EI Back-end Rest-Api, example for getting all subscriptions:
129
+
Curl command can be used to make request via EI front-end bridge to EI back-end REST API, example for getting all subscriptions:
125
130
126
131
127
132
`curl -X GET http://localhost:8081/subscriptions`
128
133
129
134
It is also possible to access these Rest-Api addresses in web-browser and get result presented in a Json view in web-browser.
130
135
131
-
Following command can be used to get the logs from the EI Front-end container/service:
136
+
Following command can be used to get the logs from the EI front-end container/service:
0 commit comments