At Fonoster Inc, we want to help companies and individuals that wish to adopt Fonoster as their Programmable Telecommunications solution. To help archive this goal, our team uses Cloud-Init for cloud instance initialization.
You can deploy Fonoster to all major public cloud providers, private cloud infrastructure, and bare-metal installations with Cloud-Init.
In this tutorial, we will also use Multipass.
Multipass is a Canonical project that offers a lightweight VM manager for Linux, Windows, and macOS. With Multipass, you can deploy Fonoster on Ubuntu in a local environment in a single command. This deployment method is by far the fastest way to get started with Fonoster.
Before you start this tutorial, you will need the following:
- NodeJS 14+ (Use nvm if possible)
- Fonoster command-line tool (install with
npm install -g @fonoster/ctl)
Deploying to Multipass
This method will not automatically enable TLS for you
Deploy Fonoster to Multipass with the following steps. First, download the cloud-config.txt file into a local directory with:
curl https://raw.githubusercontent.com/fonoster/fonoster/main/operator/cloud-config.txt -o cloud-config.txt
Since we are running locally, we have to modify the
cloud-config to discover the private ipv4 instead of the public ipv4.
sed -i.bak -e "s#publicv4#privatev4#g" "cloud-config.txt"
Then, from the same directory, fire up Multipass.
multipass launch --name fonoster --disk 8G --cpus 2 --mem 4G --cloud-init cloud-config.txt
You might see a
timed out waiting for initialization to complete, especially in a slow Internet connection. Don't worry. The process will continue in the background.
You can access your VM and continue following the installation process with:
multipass shell fonoster
tail -f /var/log/cloud-init-output.log
Once you see "Cloud init is done!" the process is complete. If everything goes well, you will be able to log in to your Fonoster deployment. To authenticate for the first time to your deployment, first get your admin credentials with:
Your output will look like the one below.
Next, from the host machine, obtain your VM's IP with:
multipass info fonoster
Look for the entry starting with IPv4.
accessKeySecret, and your VM's IP address, you can now login using the command-line tool or access your server with the SDK.
For more deployment options, be sure to check the operator's section of Fonoster's documentation.
Star the project on Github and contact us via: