Skip to content

Run as a Docker Image

Bryan Soltis edited this page Jul 14, 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. Click the green <>Code button and select Download ZIP.
  4. Open your Downloads folder using File Explorer.
  5. 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 AzNamingTool folder. For example:
cd .\Downloads\AzureNamingTool
  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

Clone this wiki locally