Skip to content

Run as a Docker image with podman

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:
podman 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:
podman run -d -p 8081:8081 --mount type=volume,source=azurenamingtoolvol,target=/app/settings -e "ASPNETCORE_URLS=http://+:8081" 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 instances.

  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