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
# Dockerfile for Dashboard Profile of WSO2 API Manager Analytics #
2
+
3
+
This section defines the step-by-step instructions to build [Rocky Linux](https://hub.docker.com/_/rockylinux) based Docker image for for Dashboard profile of
4
+
WSO2 API Manager Analytics 3.1.0.
5
+
6
+
## Prerequisites
7
+
8
+
*[Docker](https://www.docker.com/get-docker) v17.09.0 or above
##### 1. Checkout this repository into your local machine using the following Git client command.
14
+
15
+
```
16
+
git clone https://github.com/wso2/docker-apim.git
17
+
```
18
+
19
+
> The local copy of the `dockerfile/rocky/apim-analytics/dasboard` directory will be referred to as `ANALYTICS_DOCKERFILE_HOME` from this point onwards.
20
+
21
+
##### 2. Build the Docker image.
22
+
23
+
- Navigate to `<ANALYTICS_DOCKERFILE_HOME>` directory. <br>
> If you encounter issue related to downloading the product pack from hosted webserver, use the IP address of the network interface instead of `localhost` or `127.0.0.1` in the `WSO2_SERVER_DIST_URL`.
27
+
28
+
> By default, the Docker image will prepackage the General Availability (GA) release version of the relevant WSO2 product.
29
+
30
+
##### 3. Running Docker images specific to each profile.
31
+
32
+
-`docker run -p 9643:9643 wso2am-analytics-dashboard:3.1.0-rocky`
33
+
34
+
> Here, only port 9643 has been mapped to a Docker host port.
35
+
You may map other container service ports, which have been exposed to Docker host ports, as desired.
36
+
37
+
##### 4. Accessing the Dashboard portal.
38
+
39
+
- For dashboard,
40
+
+`https:<DOCKER_HOST>:9643/analytics-dashboard`
41
+
42
+
> In here, <DOCKER_HOST> refers to hostname or IP of the host machine on top of which containers are spawned.
43
+
44
+
## How to update configurations
45
+
46
+
Configurations would lie on the Docker host machine and they can be volume mounted to the container. <br>
47
+
As an example, steps required to change the port offset using `deployment.yaml` is as follows:
48
+
49
+
##### 1. Stop the API Manager Analytics container if it's already running.
50
+
51
+
In WSO2 API Manager Analytics version 3.1.0 product distribution, `deployment.yaml` configuration file <br>
52
+
can be found at `<DISTRIBUTION_HOME>/conf/dashboard`. Copy the file to some suitable location of the host machine, <br>
53
+
referred to as `<SOURCE_CONFIGS>/deployment.yaml` and change the `offset` value under `ports` to 1.
54
+
55
+
##### 2. Grant read permission to `other` users for `<SOURCE_CONFIGS>/deployment.yaml`.
56
+
57
+
```
58
+
chmod o+r <SOURCE_CONFIGS>/deployment.yaml
59
+
```
60
+
61
+
##### 3. Run the image by mounting the file to container as follows:
0 commit comments