srl-labs / clabernetes

containerlab, but in kubernetes!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create clabverter container

hellt opened this issue · comments

clabverter is a great aid for clab users to translate their clab files into c9s manifests.

But to make clabverter "included" in the clab workflows we need to containerize it, and once it is done, the clabverter invocation can be as simple as

CVVER=$(curl -sL https://api.github.com/repos/srl-labs/clabernetes/releases | jq -r ".[0].name")

alias clabverter="docker run -v $(pwd):/workdir --rm ghcr.io/srl-labs/clabernetes/clabverter:$CVVER"

The implication here is that clabverter is tagged the same tag as all clabernetes releases.