Each time you build the Docker image, follow these steps.
Step 1: Enter the Docker container.
docker container exec -it CONTAINER ID bash
Step 2: Create a directory named ApplicareSingleAgent
Step 3: Navigate to the ApplicareSingleAgent directory.
Step 4: Run the following 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
e.g.
curl http://127.0.01:8880/applicare/standalone?filename=ApplicareSingleAgentLinux.zip >ApplicareSingleAgentLinux.zip
Note: If the curl command is unavailable, You will need to manually download the ApplicareSingleAgent.
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: Navigate to the ApplicareSingleAgent installed directory/wrapper/linux directory and execute the command to install the wrapper.
./install.sh
Step 8: Run the following command to verify that the Wrapper is installed.
java -version
Step 9: Exit the container
exit
Step 10: Restart the container
docker restart container ID
Comments
0 comments
Article is closed for comments.