The official document at https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started-linux is problematic (ESPECIALLY, DO NOT follow the instruction in that document to install Docker!). Here're the correct steps.
- Check if your Linux distro and version are supported at https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-versions#supported-linux-versions-and-support-end-date
- Setup Docker as instructed by https://docs.docker.com/engine/install/ubuntu
Add the dotnet repo to your sources list corresponding to your distribution.
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Add the new MS Open Tech Gnu Privacy Guard (GnuPG or GPG) key to your APT keyring.
sudo curl -fsSL https://packages.microsoft.com/keys/msopentech.asc | sudo apt-key add -
Install SDK
sudo apt-get update
sudo apt-get install servicefabricsdkcommon
NOTE:
- servicefabricsdkcommon depends on Python 3 and pip. It will automatically install the dependencies.
- The Service Fabric CLI sfctl is included in servicefabricsdkcommon. See https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-cli for more about the CLI.
Setup a dev cluster by
sudo /opt/microsoft/sdk/servicefabric/common/clustersetup/devclustersetup.sh
Then you can open Service Fabric Explorer at http://localhost:19080/Explorer for it.
Remove the dev cluster when it's not needed any more by
sudo /opt/microsoft/sdk/servicefabric/common/clustersetup/devclustercleanup.sh
Follow this document to create a Linux container app on a dev cluster.
See sample code at https://github.com/coin8086/sf-container-sample