Join Chander Dhall for an in-depth discussion in this video Mac setup, part of Microservices and Azure Service Fabric Basics for Developers.
- [Narrator] In this video I'll show you how to set up your environment on Mac OS X with a Linux VM. I just want to be clear that we're not going to be doing any work on Mac or Linux throughout the course, we'll be doing every single thing in Windows. But for a lot of developers who love to dwell upon the Mac I wanted to show them that this is possible and it works. In order to set up your development environment on Mac OS X you will need Vagrant and VirtualBox. A highlighted command visiting docs.microsoft.com and when you are in Azure Service Fabric, might want to click "Get Started" and then "Set up your development environment" and please do read this tutorial for Mac OS X.
Service Fabric does not run natively on Mac OS X. However, the good news is that Microsoft has created a preconfigured ubuntu virtual machine that will run a local service fabric cluster. So in order to get started we will need to download Vagrant and then VirtualBox. Once you click here you will get to the downloads page, click Universal 32 and 64-bit for Mac OS X. Once it's downloaded you can come in here and double-click Vagrant.dmg and then double-click Vagrant.pkg and follow the steps for installation.
It will ask you for your password. So we see that the installation was successful. Next, you will need VirtualBox. Once you go to the download page select OS X hosts. Once this is downloaded double-click VirtualBox.dmg Similar steps for installation. Double-click VirtualBox.pkg Once the installation is successful you might want to open Terminal.
So now we will need to clone the Vagrant file repo from Github using the command getclone and add the URL. Once you hit enter this will clone this repo into the folder service-fabric-linux-vagrant-onebox You can hit ls and you can see the folder right there. And then we will open the data tree and you can see we have the Vagrant file here. This is when we can use the command vagrant up.
So when we execute the command vagrant up it will do three things. Download the preconfigured Virtual Machine image, this could take up to a few minutes and then it will boot it locally and then set up a local service cluster inside it. Once this is done you'll see a success message indicating cluster is starting up. Now, just for your reference the local VM is configured with just three gigabytes of memory and the private host network is configured at IP address 192.168.50.50 This enables the pass-through of traffic from the Mac host.
In case of Windows you would have simply used localhost. In order to change any of these settings you will need to refer the Vagrant documentation at vagrantup.com/docs. As you can see we see the message right there starting service, fabric service started cluster should come up in a few minutes. So at times, when you pull up your Safari or any other browser and you do not see the cluster do not worry it might take up to a few minutes. Now we'll go to Safari and go to the IP address colon 19080 19080 is the port where we have the Service Fabric Explorer we also need to say /explorer and it resolves the rest of the address on it's own.
As you can see the Service Fabric Cluster is up and running. However, we do not see anything here because we don't have any applications or services that are running, but your setup is complete. If you want to prepare your development environment on Linux or highlight a command go into this particular tutorial. It talks about the prerequisites and then about the installation and setup of the SDK and then you can also install the Azure command line interface, set up your local cluster and if you're using Java you can use the Java SDK and Eclipse plugin if needed.
Or you can also do .NET on Linux now using the .NET core SDK.
- Reviewing microservices vs. monolithic architecture
- Reviewing microservices and Azure Service Fabric basics
- Programming model architecture
- Creating a stateless service and a stateful service
- Creating a cluster in Azure
- Adding security to a cluster
- Finalizing cluster creation
- Deploying to an Azure cluster
- Debugging an application remotely