You will need to setup Docker as instructed here for (mac)[https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started-mac] or see below for the Linux instructions.
- Edit the Daemon configuration (normally /etc/docker/daemon.json)
{
"ipv6": true,
"fixed-cidr-v6": "fd00::/64"
}
- Expose a tcp listener for your Docker daemon. For Ubuntu edit /etc/systemd/system/docker.service.d/docker.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376
- Reload Docker. On Ubuntu
sudo systemctl daemon-reload
sudo systemctl restart docker
Build Service Fabric
$ ./runbuild.sh
Run the test
$ cd out/build.prod/ClusterDeployerTest/
$ ./runtest.sh
This test first builds a Docker image (service-cluster-run-ubuntu) locally, this image contains the necessary packages to run Service Fabric. The test then runs Docker, mounting the FabricDrop folder in your output directory. Then a (sample application)[https://github.com/Azure-Samples/service-fabric-dotnet-core-getting-started] is downloaded and built inside the container. The application is installed, and if the http endpoint can be hit then the test passes.