...
Before you begin, ensure you have the following:
- Virtual Machine (VM): A VM VMs with root access.
- Git: Installed on your Jenkins VM.
- Docker (Optional):
- To be installed in all VMs where Automatics components has to be deployed
- Install : Install using the following commands:
Code Block |
---|
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh |
- Create a new user group named "docker" and add the Jenkins user to this group:
Code Block |
---|
sudo groupadd docker
sudo usermod -aG docker $USER |
- Log out and log back in to re-evaluate group membership. On a virtual machine, you may need to restart it. On Linux, you can also run:
- Verify Docker commands can be run without
sudo
: Code Block |
---|
docker run hello-world |
- Ensure access to pull Docker base images like Tomcat and MySQL from Docker Hub. If access is not available, ensure these images are available locally on the Jenkins VM.
...