Infrahub is a new source of truth from Opsmill, that allows you to create your own Schema. This means you are in control of the data model, which gives network engineers unlimited options for how their source of truth is built. But first we need to install it!
There are a few options to install Infrahub detailed on Infrahub Documentation page but for this rest of this post I am going to detail the method that worked best for me.
Installing Infrahub on an Ubuntu 22.04 Server
InfraHub Install Guide
Infrahub runs as a docker container, so you need to have Docker installed on your machine.
The quickest way to get Infrahub installed is to just run this command
curl https://infrahub.opsmill.io | sudo docker compose -p infrahub -f - up -d
Once all the images have been pulled, you should see Running 9/9 and all objects showing as healthy

Then point your browser to http://<server-ip>:8000

If you already have something running on port 8000 you will need to clone the repo and then go into the docker-compose.yml file and change the port number
This is my preferred method of installing Infrahub
Clone the repo
You can clone the Infrahub Repo from this link
git clone --recursive --depth 1 https://github.com/opsmill/infrahub.git

Once you have cloned the repo, go into the infrahub folder and run
docker compose up -d

The benefit of using this method is if you have another application using port 8000 you can change this in the docker-compose.yml file

This is the standard installation, if you want to change the port you need to change the inside port number
So in my case I will change 8000 to 8040 – so the line will look like this

You should now be able to access your infrahub on http://<server-ip>:8040
Infrahub Default Password
The default login credentials for infrahub are username: admin password: infrahub
Infrahub Install Documentation
https://docs.infrahub.app/guides/installation
If your install is not as easy as this drop a comment below or check out the official documentation

Leave a Reply