https://github.com/opsmill/devnet-live-2025
https://github.com/opsmill/devnet-live-2025
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/opsmill/devnet-live-2025
- Owner: opsmill
- Created: 2025-04-09T16:52:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-25T16:01:41.000Z (about 1 year ago)
- Last Synced: 2025-12-25T19:02:33.011Z (6 months ago)
- Language: Python
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# how to build a production-grade automation platform with Infrahub
This project was created during a 2 parts stream with Adrian from Cisco DevNet to showcase how to build a production-grade automation platform with Infrahub.
- Part 1 (April 2025) : https://www.youtube.com/watch?v=E3KLBzyNBrU
- Part 2 (May 2025) : https://www.youtube.com/watch?v=SlncONsRyX4
## Create your environment
### 1. Initialize uv project
```shell
uv init devnet-live-2025
cd devnet-live-2025
uv add infrahub-sdk --extra all
```
### 2. Create project structure
```shell
mkdir schemas
mkdir data
mkdir templates
mkdir tests
```
### 3. Start infrahub
Option 1 - start with a one liner command
```shell
curl https://infrahub.opsmill.io | docker compose -p infrahub -f - up -d
```
Option 2 - Copy the docker compose file locally and start docker compose
```shell
curl https://infrahub.opsmill.io > docker-compose.yaml
docker compose up -d
```
Stop Infrahub (assuming you used Option 2)
```shell
docker compose down -v
```
### Configure Infrahubctl
```shell
source .venv/bin/activate
```
```shell
export INFRAHUB_USERNAME=admin
export INFRAHUB_PASSWORD=infrahub
export INFRAHUB_ADDRESS=http://localhost:8000
```
```shell
infrahubctl info
```