Every time we build the docker image we need to follow the below steps.
Step 1: Go inside the docker container
docker container exec -it CONTAINER ID bash
Step 2: Create a directory ApplicareSingleAgent
Step 3: Go to ApplicareSingleAgent directory.
Step 4: Execute below command to download the agent .
curl CONTROLLER_PROTOCOL://CONTROLLER_IP:CONTROLLER_PORT/applicare/standalone?filename=ApplicareSingleAgentLinux.zip>ApplicareSingleAgentLinux.zip
Replace the below values in the above script
CONTROLLER_PROTOCOL -> http (or) https
CONTROLLER_IP -> Applicare Controller IP
CONTROLLER_PORT -> Applicare Controller Port
Example:
curl http://127.0.01:8880/applicare/standalone?filename=ApplicareSingleAgentLinux.zip >ApplicareSingleAgentLinux.zip
Note: In case if curl command is not available, then we need to manually download the ApplicareSingleAgent and copy it to docker container.
Step 5: Extract the ApplicareSingleAgent zip file to that directory.
unzip ApplicareSingleAgent.zip
Step 6: Give read, write and executable permission for the ApplicareSingleAgent directory.
chmod -R 777 ApplicareSingleAgent installed directory
chmod +x ApplicareSingleAgent installed directory
Step 7: Go to the ApplicareSingleAgent installed directory/wrapper/linux directory and execute below command to install the wrapper.
./install.sh
Step 8: Execute the below command to confirm that Wrapper is installed.
java -version
Step 9: Exit from the container
exit
Step 10: Restart the container
docker restart container ID
Comments
0 comments
Article is closed for comments.