Testing
To run this as-is, you will need to do the following:
- Create a windows EC2 instance.
Recommend Windows Server 2019 with Containers (As this will already have docker installed), a type of t3.large or more with substantial storage, 120+GB
Another option is Windows 10 build 1803 or higher. This will need to be run under VMWare Fusion, though, as it needs nested virtualization that VirtualBox does not support.
Another advantage of using VMWare Fusion over VirtualBox is that it supports running Windows and Linux containers simutaneously.
Once Docker is installed, you will need to switch it to use Windows Containers
-
Install golang 1.11.5+ for windows
-
Clone or copy the
module-testingrepository to windows. -
Rebuild the
modules-testingcontainer for windows
docker build -f Dockerfile.windows -t local-dev/module-testing:latest .
-
Clone or copy the
sigsci-agentrepository to windows. -
Rebuild the
sigsci-agentcontainer for windows
cd packaging
docker build -f Dockerfile.windows -t local-dev/sigsci-agent:latest .
- Build the IIS Module locally for the Release target
This is needed to build the web container
- Optionally build the
webcontainer if you will run many times as building each run is slow
docker build -f module_testing/Dockerfile -t local-dev/web:latest .
Modify the docker-compose.yml to use the image (commented out) instead of
the build directive
- Run the test script
go run ./test.go
or run docker-compose manually:
docker-compose up --no-color --abort-on-container-exit --exit-code-from mtest