Skip to content

Run as a Docker Image

Bryan Soltis edited this page Jul 21, 2023 · 8 revisions

Overview

This process will allow you to deploy the Azure Naming Tool using Docker in your local environment.

Steps

  1. Scroll up to the top, left corner of this page.
  2. Click on the AzureNamingTool link to open the root of this repository.
  3. In the right menu, select the desired Release.


NOTE:
It is recommended to use the Latest Stable Release.

  1. Under Assets, select AzureNamingTool.zip.
  2. Open your Downloads folder using File Explorer.
  3. Extract the contents of the ZIP archive.


NOTE:
Validate the project files extracted successfully and match the contents in the GitHub repository.

  1. Open a Command Prompt in the extracted folder
  2. Run the following Docker command to build the image:
docker build -t azurenamingtool .


NOTE:
Ensure the '.' is included in the command

  1. Run the following Docker command to create a new container and mount a new volume:
docker run -d -p 8081:80 --mount source=azurenamingtoolvol,target=/app/settings azurenamingtool:latest


NOTES:

  • Substitute 8081 for any port not in use on your machine
  • You may see warnings in the command prompt regarding DataProtection and keys. These indicate that the keys are not persisted and are only local to the container instance.

  1. Access the site using the following URL: http://localhost:8081


NOTE:
Substitute 8081 for the port you used in the docker run command