System Requirements for Google Cloud Platform (GCP)#
Privacera Manager requires a Virtual Machine (VM) with the CentOS operating system.
See System Requirements for Docker in GCP to learn more.
Install Docker and Docker Compose#
-
Ensure the following ports are opened on the host: Ports of Privacera Services.
-
SSH to the VM as the administrator
$VM_USER
- Set the
VM_USER
to the OS user:VM_USER=privacera
sudo yum install -y docker wget sudo sed -i 's/1024:4096/1024000:1024000/g' /etc/sysconfig/docker sudo cat /etc/sysconfig/docker sudo service docker start sudo systemctl enable docker sudo usermod -a -G docker ec2-user exit
-
Log into the VM as
VM_USER
, this forces the usermod action. -
Install Docker-Compose:
DOCKER_COMPOSE_VERSION="1.23.2"
sudo curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Possible error messages and actions#
Error message: "usermod: group ‘docker’ does not exist"
Run the following command to check if “docker” is added to groups.
id
sudo vi /etc/docker/daemon.json
{
"group": "dockerroot"
}
sudo usermod -aG dockerroot ${USER_NAME}
sudo service docker restart
exit
Permission denied when installing PM and configuring components
There is a GCP specific issue around default file permissions if the user who does the installation does not have user id of 1000. By copying vars.docker.custom.user.yml you can set the required permissions to all the files generated by Privacera Manager.
cd ~/privacera/privacera-manager/
cp config/sample-vars/vars.docker.custom.user.yml config/custom-vars/
./privacera-manager.sh update
Repository is unavailable or subscription manager is not found in the CentOS base
Open the config file.
sudo vi /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0
SELinux Enabled
Verify the status of SELinux. If it is enforcing, you need to disable it.
getenforce
Run the following.
sudo vi /etc/selinux/config
SELINUX=disabled
sudo reboot