Skip to content

Run as a Docker Image

Bryan Soltis edited this page Jul 17, 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 mean, select the desired Release.


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

  1. Under Assets, select desired file.
  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
  2. Change the directory to the AzureNamingTool/src folder. For example:
cd .\Downloads\AzureNamingTool\src
  1. 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