Dockerfiles for base centos, ags, portal, and postgres containers. Draws heavily from the work of Mansour and many others in the Docker community.
- Download the installers for AGS and Portal (see https://my.esri.com/#/downloads)
- Get your provisioning file for AGS/Portal
- Install virtualbox
- Install docker
- If you're running on windows or OSX, install docker-machine
The AGS, Portal, and PostGRES images are built off of a base CENTOS image, with a few extra dependencies. On Windows or OSX machines, these images will run on top of a virtual machine running linux.
- On Windows or OSX, your containers will run inside a virtual machine. To set this up the first time, run
docker-machine start arcgis
docker-machine env arcgis --shell bash(or
- Run the output of the above command, i.e.,
export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="C:\Users\<username>\.docker\machine\machines\arcgis" export DOCKER_MACHINE_NAME="arcgis"
- Copy your AGS installer (i.e.
ArcGIS_for_Server_Linux_1041_151978.tar.gz) to a local directory that you can use as the root of a webserver
- Spin up a webserver pointed at the above directory
Copy your provisioning file to
- Edit the
ags/build-image.shscript to point to your provisioning file and local webserver
- In your browser, navigate to the AGS manager on the VM ip address, i.e.
- Copy your Portal installer and provisioning file to
- Change the registration email in
ags/Dockerfileto the appropriate email
- Important: There is a bug in the automatic installer, where it only reads a single entry from the provisioning file. Open your .prvc file, and ensure that the first entry is for portal, i.e.
Portal for ArcGIS=ECP123456789
- In your browser, navigate to the Portal admin on the VM ip address, i.e.
- Important: It takes the Portal instance some time (~30 seconds) before it will begin accepting connections, even once the container is spun up.