Chapter 4. Using Docker to Install RHMAP (Optional)

An alternative method for installation is to use the RHMAP installer docker image, which includes Ansible and the templates, so you do not need to install Ansible. To use the RHMAP installer docker image:

docker pull rhmap44/installer
Note

You still need to create an inventory file as described in Section 2.2.1, “Setting Up an Inventory File.”.

The following example shows how you to run the image with an interactive terminal and mounting the directory that contains the inventory file:

docker run -it \
       -v ~/.ssh/id_rsa:/opt/app-root/src/.ssh/id_rsa:Z \
       -v ${HOME}/Desktop/rhmap-installer/inventories:/opt/app-root/src/inventories \
       -e ANSIBLE_PRIVATE_KEY_FILE=/opt/app-root/src/.ssh/id_rsa \
	   rhmap44/installer bash