Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.29 KB

cluster_deployer_test.md

File metadata and controls

43 lines (32 loc) · 1.29 KB

Running a test using Cluster Deployer in a Docker image

Prerequisites

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.

Linux Setup

  1. Edit the Daemon configuration (normally /etc/docker/daemon.json)
{
  "ipv6": true,
  "fixed-cidr-v6": "fd00::/64"
}
  1. 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
  1. Reload Docker. On Ubuntu
sudo systemctl daemon-reload
sudo systemctl restart docker

Running the test

Build Service Fabric

$ ./runbuild.sh

Run the test

  $ cd out/build.prod/ClusterDeployerTest/
  $ ./runtest.sh

Details

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.