
To build a Service Fabric Java application on your Mac, JDK version 1.8 and Gradle must be installed on the host machine. Npm install -g generator-azuresfcontainer # for Service Fabric Container ApplicationsĪfter you install the generators, create guest executable or container services by running yo azuresfguest or yo azuresfcontainer, respectively. Npm install -g generator-azuresfguest # for Service Fabric Guest executables To create Service Fabric applications by using Yeoman, follow these steps: npm install -g generator-azuresfjava # for Service Fabric Java Applications Install the Yeoman generator that you prefer by following the steps in the getting started documentation. Install the Yeoman template generator on your machine from NPM: npm install -g yo

The software can be installed by using HomeBrew, as follows: brew install node Node.js and Node Package Manager (NPM) must be installed on your Mac.

Use the following steps to ensure that the Service Fabric Yeoman template generator is working on your machine: Service Fabric provides scaffolding tools that help you to create a Service Fabric application from the terminal by using the Yeoman template generator.

Sfctl cluster select -endpoint Create your application on your Mac by using Yeoman

The following are known limitations of the local cluster running in a container for Mac's: However, we will be using this container in the next step. To stop and clean up the container, use the following command. When it is running, you can view logs using the following command or jump to the dashboard to view the clusters health: docker logs sftestcluster For example, if your application is listening on port 8080, add the following -p tag:ĭocker run -itd -p 19000:19000 -p 19080:19080 -p 8080:8080 -name sfonebox /service-fabric/onebox:u18 If your application is listening on certain ports, the ports must be specified by using additional -p tags. Provide a name for your container instance so it can be handled in a more readable manner.
