#!/bin/bash

set -x

yum install -y yum-utils device-mapper-persistent-data lvm2 git
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
mkdir -p /mnt/resource/docker /etc/docker
echo '{"data-root": "/mnt/resource/docker"}' > /etc/docker/daemon.json
systemctl start docker
cd /mnt/resource
docker pull osehra/osehravista
docker run -p 9430:9430 -p 8001:8001 -p9080:9080 -p2222:22 -p57772:57772 -d -P --name=cache osehra/osehravista
#!/bin/bash

set -x

yum install -y yum-utils device-mapper-persistent-data lvm2 git
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
mkdir -p /mnt/resource/docker /etc/docker
echo '{"data-root": "/mnt/resource/docker"}' > /etc/docker/daemon.json
systemctl start docker
cd /mnt/resource
docker pull osehra/osehravista
docker run -p 9430:9430 -p 8001:8001 -p9080:9080 -p2222:22 -p57772:57772 -p 61012:61012 -d -P --sysctl kernel.msgmax=1048700 --sysctl kernel.msgmnb=65536000 --name=cache osehra/osehravista
Update docker command to support PIP SQL Mapping
Update docker command to support PIP SQL Mapping

PIP SQL Mapping requires another port forward, 61012, and increased
sysctl sized for messages: kernel.msgmax=1048700 and kernel.msgmnb=65536000

This doesn't affect applications that don't listen on port 61012
or need increased sysctl message sizes
