Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2024-lonisummit-workshop-automation/internal-lab-setup-assets/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (30 sloc)
881 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .phony: gen | |
FILES=$(wildcard workshop[0-9]*.clab.yml) | |
SLEEP=40 | |
clab-install: | |
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
dnf config-manager --add-repo https://yum.fury.io/netdevops/ | |
dnf update | |
dnf install docker-ce docker-ce-cli containerd.io -y | |
dnf install containerlab -y --nogpgcheck | |
containerlab version upgrade | |
gen: clean | |
python gen-topo.py | |
deploy: gen | |
for name in workshop[0-9]*.clab.yml; do\ | |
containerlab deploy --reconfigure -t $${name};\ | |
sleep $(SLEEP);\ | |
done | |
destroy: | |
for name in workshop[0-9]*.clab.yml; do\ | |
containerlab destroy --cleanup -t $${name};\ | |
done | |
rm -rf $(wildcard clab-automation-workshop-[0-9]*) | |
inspect: | |
for name in workshop[0-9]*.clab.yml; do\ | |
containerlab inspect -t $${name};\ | |
done | |
container: | |
docker build -t internet2/getting_started -f Containerfile . | |
clean: | |
rm -rf $(FILES) |