This is a Dockerfile to set up "ServiceNow MID Server" - (http://wiki.servicenow.com/index.php?title=MID_Server_Installation)
git clone https://github.com/tools-proservia/sn-mid-server.git
cd sn-mid-server
docker build -t sn-mid-server .
This image includes EXPOSE 80 (the web services port)
docker run -d --name demonightlyeureka \
-e 'SN_URL=demonightlyeureka' \
-e 'SN_USER=admin' \
-e 'SN_PASSWD=admin' \
-e 'SN_MID_NAME=my_mid' \
toolsproservia/sn-mid-server
docker run --rm \
-e 'SN_URL=demonightlyeureka' \
-e 'SN_USER=admin' \
-e 'SN_PASSWD=admin' \
-e 'SN_MID_NAME=my_personnal_mid' \
toolsproservia/sn-mid-server mid:setup > /my_directory/demonightlyeureka/config.xml
docker run -d --name demonightlyeureka \
-v /my_directory/demonightlyeureka/logs:/opt/agent/logs \
-v /my_directory/demonightlyeureka/config.xml:/opt/agent/config.xml \
toolsproservia/sn-mid-server
Available options:
mid:start - Starts the mid server (default)
mid:setup - Generate config.xml
mid:help - Displays the help
[command] - Execute the specified linux command eg. bash.