ankita_sarkar
ServiceNow Employee
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
2 hours ago
Running a MID Server in Docker on an Apple Silicon Mac is a clean, lightweight alternative to a full VM. This walkthrough covers the whole flow: verifying Docker, building the image from the Linux MID Server recipe, and running the container with your instance credentials.
Prerequisite:
- Docker Desktop is installed and running on your Mac.
- A web service user created in serviceNow and assign the role "mid_server" and generate the user's password.
Steps to build and run the Docker image:
- Open Docker Desktop and confirm it is running.
- Open a terminal and run
docker psto check for running containers. If this is your first time, the list will be empty. - From the ServiceNow MID Server download page, download the Linux Docker recipe.[image: Linux_docker_recipe]
- Move the downloaded file to a secure location in your local machine.
- Unzip the file in your secure location.
- From terminal, use command cd "to-the-directory" where MID server file is stored
cd to-the-directory - Inside the directory you will find a
Dockerfile. - Build the image (note the
--platform linux/amd64flag, which is required on Apple Silicon). Below is the command and "server_image" is the docker image which you will be creating. [image: Dockerimage]docker build --platform linux/amd64 -t server_image . - Create a
.envfile to hold your MID Server environment variables in the same working directory. Below is the format in which you would like to store the variables. Note: Create a machine user in ServiceNow instance and assign role "mid_server" to the user and generate the password.
MID_INSTANCE_URL=https://<your-instance>.service-now.com/
MID_SERVER_NAME=<your-desired-midserver-name>
MID_INSTANCE_USERNAME=<your-mid-user>
MID_INSTANCE_PASSWORD=<your-mid-password>
- Run the container using the
.envfile in the same working directory:docker run -d --name <your-desired-midserver-name> --env-file .env server_image - Navigate to MID Server > Servers. Your ServiceNow MID Server is now up. Confirm it appears.
- Click on the MID server and click "validate" under Related Links and it validates your server in this ServiceNow instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.