-
Notifications
You must be signed in to change notification settings - Fork 818
Run as a Docker Image
Bryan Soltis edited this page Jul 17, 2023
·
8 revisions
This process will allow you to deploy the Azure Naming Tool using Docker in your local environment.
- Scroll up to the top, left corner of this page.
- Click on the AzureNamingTool link to open the root of this repository.
- In the right mean, select the desired Release.
NOTE:
It is recommended to use the Latest Stable Release.
- Under Assets, select desired file.
- Open your Downloads folder using File Explorer.
- Extract the contents of the ZIP archive.
NOTE:
Validate the project files extracted successfully and match the contents in the GitHub repository.
- Open a Command Prompt
- Change the directory to the AzureNamingTool/src folder. For example:
cd .\Downloads\AzureNamingTool\src
- Run the following Docker command to build the image:
docker build -t azurenamingtool .
NOTE:
Ensure the '.' is included in the command
- 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.
- Access the site using the following URL: http://localhost:8081
NOTE:
Substitute 8081 for the port you used in the docker run command