/GoServiceFabric

A Service Fabric service written in Go

Primary LanguageGoMIT LicenseMIT

GoServiceFabric

A simple Go service and configuration files for testing Azure Service Fabric.

First, install the Azure Service Fabric SDK from here.

To build the application:

make build

To deploy the application, open a Powershell prompt and run:

cd build

Connect-ServiceFabricCluster localhost:19000

Copy-ServiceFabricApplicationPackage -ApplicationPackagePath 'build' -ImageStoreConnectionString 'file:C:\SfDevCluster\Data\ImageStoreShare' -ApplicationPackagePathInImageStore 'goapp'

Register-ServiceFabricApplicationType -ApplicationPathInImageStore 'goapp'

New-ServiceFabricApplication -ApplicationName 'fabric:/goapp' -ApplicationTypeName 'FabricServiceType' -ApplicationTypeVersion 1.0

When finished, remove the application with the following Powershell cmdlet:

Remove-ServiceFabricApplicationPackage -ApplicationPackagePathInImageStore 'goapp'