This repository contains a Dockerfile and setup files needed for a Windows Server 2019 container running Autodesk licensing.
The image(s) built with this repository depend on the Microsoft official Windows server container images. These image(s) do not contain a license file and do not start the license server process. You will need to provide a license (.lic) file and a PowerShell CMD to start the container in production and serve licenses.
The README below assumes some intermediate knowledge of docker
, and basic git
and Powershell.
To build and test, you must:
- Have Windows 10 build 1809 running on your workstation.
- Enable
Hyper-V
. See the Microsoft Docs. - Install Docker Desktop for Windows
- Switch Docker Desktop's running mode to Windows containers
- Clone this repository locally.
- Launch Powershell as an administrator.
cd
to the directory where the repository you cloned is located.- Run
docker build --tag=yourtag .
- After 5-10 minutes, your container should be built.
- Run the container by running:
docker run -td -p 2080:2080 -p 27000-27009:27000-27009 -h="yourhostname" --mac-address="macaddressinyourlicensefile" yourtag