In this guide we will:
iofogctl is a CLI tool and a one-stop-shop for all your ioFog needs.
All you need to run
iofogctl is a Linux or MacOS host.
Mac users can use Homebrew:
brew tap eclipse-iofog/iofogctl brew install iofogctl
The Debian package can be installed like so:
https://packagecloud.io/install/repositories/iofog/iofogctl/script.deb.sh | sudo bash sudo apt install iofogctl
And similarly, the RPM package can be installed like so:
https://packagecloud.io/install/repositories/iofog/iofogctl/script.rpm.sh | sudo bash sudo apt install iofogctl
iofogctl version to verify you have successfully installed the CLI.
You can use
iofogctl deploy to install and provision ioFog software. Now we will deploy ioFog locally by specifying localhost in the
host fields of our yaml file.
Go ahead an paste the following commands into your terminal:
echo "--- controllers: - name: LocalController host: localhost iofoguser: name: Quick surname: Start email: email@example.com password: q1u45ic9kst563art agents: - name: LocalAgent host: localhost" > /tmp/quick-start.yaml iofogctl deploy -f /tmp/quick-start.yaml
After the deployment has successfully completed, we can verify the resources we specified in the YAML file are running on our local machine.
iofogctl get all
To have a quick look at the local ECN, we can run:
iofogctl get all
To remove our ECN and any microservices deployed on it, we can run the following command:
iofogctl delete all
Now that you have seen what ioFog is about, you can create a real ECN with remote hosts. Instructions are found here.
You can also try deploying Microservices on the local ECN. You can follow the tutorial found here.