Sign inSign up

mmesri/snow_mid_docker

By mmesri

•Updated over 4 years ago

ServiceNow MID Server (Quebec)

Image
0

214

mmesri/snow_mid_docker repository overview

⁠What is ServiceNow MID Sever

Read here⁠

Why do you need it? Just ignore this repo if you don't know the answer.

⁠TLDR

  • mmesri/snow_mid_docker:linux
  • mmesri/snow_mid_docker:windows

⁠Get started right away

$ docker run -d --name sn-mid-server \
             -e 'SN_URL=https://dev00000.service-now.com' \
             -e 'SN_USER=username' \
             -e 'SN_PASSWD=userpassword' \
             -e 'SN_MID_NAME=sn-mid-server' \
             mmesri/snow_mid_docker:linux
Optional Parameters:
SN_MID_NAME_STATIC      (If TRUE, do not append random UUID to end of MID Server Name)
SN_MAX_THREADS          (Set max thread count in MID Server Parameters)
SN_JVM_SIZE             (Sets the JVM Size in MB)
SN_PROXY_HOST           (Sets required proxy host)
SN_PROXY_PORT           (Sets the required proxy port)
SN_PROXY_USERNAME       (Sets required proxy username)
SN_PROXY_PASSWORD       (Sets the required proxy password)

or using Docker Compose:

version: '3'
services:
  midserver:
    container_name: sn-midserver
    image: mmesri/snow_mid_docker:linux
    network_mode: host
    environment:
      - SN_URL=https://dev00000.service-now.com
      - SN_USER=username
      - SN_PASSWD=password
      - SN_MID_NAME=my-mid-server

or using 'systemd' (Reccomended)

[Unit]
Description=ServiceNow MID Server Agent
Documentation=https://docs.servicenow.com/bundle/paris-servicenow-platform/page/product/mid-server/concept/mid-server-landing.html
After=network.target auditd.service docker.service

[Service]
ExecStartPre=/usr/bin/docker pull mmesri/snow_mid_docker:linux
ExecStart=/usr/bin/docker run --rm  \
                              --name sn-mid-server \
                              -e 'SN_URL=https://dev00000.service-now.com' \
                              -e 'SN_USER=username' \
                              -e 'SN_PASSWD=password' \
                              -e 'SN_MID_NAME='%H \
                              --network="host" \
                              --health-cmd="/opt/agent/bin/mid.sh status" \
                              --health-interval=60s \
                              --health-start-period=15s \
                              --health-retries=3 \
                              --health-timeout=10s\
                              mmesri/snow_mid_docker:linux
ExecStop=/usr/bin/docker exec sn-mid-server /opt/agent/bin/mid.sh stop
Restart=on-failure

[Install]
WantedBy=multi-user.target

⁠Persisting Logs

$ docker run -d --name sn-mid-server \
             -e 'SN_URL=https://dev00000.service-now.com' \
             -e 'SN_USER=username' \
             -e 'SN_PASSWD=password' \
             -e 'SN_MID_NAME=my-mid-server' \
             -v './sn-midserver/logs:/opt/agent/logs' \
             mmesri/snow_mid_docker:linux

or using Docker Compose:

version: '3'
services:
  midserver:
    container_name: sn-midserver
    image: mmesri/snow_mid_docker:linux
    volumes:
      - ./sn-midserver/logs:/opt/agent/logs
    network_mode: host
    environment:
      - SN_URL=https://dev00000.service-now.com
      - SN_USER=username
      - SN_PASSWD=password
      - SN_MID_NAME=my-mid-server

Tag summary

Content type

Image

Digest

Size

426.1 MB

Last updated

over 4 years ago

docker pull mmesri/snow_mid_docker:linux