This guide will help you to setup your On-Prem environment using Docker. Please follow the below steps to setup the complete eco-system on your environment.
Pre-Requisite For Onpremisses Docker: #
- Git
- Docker
- Docker Compose
How to Install:
To run the On-Premise common Agent Docker Compose File locally, you must have Git,Docker and Docker Compose installed and do the following:
This shows all necessary steps regarding to setup on docker
1. Firstly Clone the Docker Compose file from Github using
git clone https://github.com/devatengit/onpremises-common-agent.git
Folder Structure: #
Configuration Changes in docker-compose file:
Step 1) Open on-premises-common-agent.
Step 2) open docker compose file with any text editor & make changes in environment
environment:
spring.datasource.username: root
spring.datasource.password: root
spring.flyway.user: root
spring.flyway.password: root
openai.apiKey: Enter-your-openai-key
smtp.host: Enter-your-smtp-host
smtp.email: Enter-your-smtp-email
smtp.password: Enter-your-smtp-password
smtp.port: Enter-your-smtp-port
explain-table-name-for-oracle: planed_table stoprecording.explainjson: enable
stoprecording.jira: disabled
stoprecording.report: enable
stoprecording.recordingmail: whenFailure
How to Run:
2. You will see the ‘On-Premise common agent’ folder as soon as the clone is complete. Go to that folder, open terminal and run the following commands:
docker-compose pull
3. To run Docker Images mentioned in Docker Compose File, Write the following command:
docker-compose up
This command starts all the docker container
4. You will see the following Page after hitting URL to localhost:8081.
How to Pull Latest Version
For pull the latest version you have to follow the following 3 commands in your cmd.
- To remove all the running containers of the on-premise dashboard docker image use this command:
> sudo docker-compose down
It will stop all running containers and delete all the containers.
- You will see the ‘on-premises-mysql-agent’ folder as soon as the clone is complete. Go to that folder, open terminal and run the following commands:
> sudo docker-compose pull
This will download the docker images locally.
-
- To run Docker Images mentioned in Docker Compose File, Write the following command:
> sudo docker-compose up
This command starts all the docker containers.