-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,51 @@ | ||
| 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 | ||
| 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 | ||
| python3 gen-topo.py | ||
| python3 gen-topo.py | ||
|
|
||
| deploy: gen | ||
| for name in workshop[0-9]*.clab.yml; do\ | ||
| containerlab deploy --reconfigure -t $${name};\ | ||
| sleep 10;\ | ||
| done | ||
| for name in workshop[0-9]*.clab.yml; do\ | ||
| containerlab deploy --reconfigure -t $${name};\ | ||
| sleep 10;\ | ||
| done | ||
|
|
||
| deploy-lab: | ||
| # Use like `make deploy-lab num=1` | ||
| containerlab deploy --reconfigure --topo workshop$(num).clab.yml | ||
| # Use like `make deploy-lab num=1` | ||
| containerlab deploy --reconfigure --topo workshop$(num).clab.yml | ||
|
|
||
| destroy: | ||
| for name in workshop[0-9]*.clab.yml; do\ | ||
| containerlab destroy --cleanup -t $${name};\ | ||
| done | ||
| rm -rf $(wildcard clab-automation-workshop-[0-9]*) | ||
| for name in workshop[0-9]*.clab.yml; do\ | ||
| containerlab destroy --cleanup -t $${name};\ | ||
| done | ||
| rm -rf $(wildcard clab-automation-workshop-[0-9]*) | ||
|
|
||
| destroy-lab: | ||
| containerlab destroy --cleanup --topo workshop$(num).clab.yml | ||
| containerlab destroy --cleanup --topo workshop$(num).clab.yml | ||
|
|
||
| inspect: | ||
| for name in workshop[0-9]*.clab.yml; do\ | ||
| containerlab inspect -t $${name};\ | ||
| done | ||
| for name in workshop[0-9]*.clab.yml; do\ | ||
| containerlab inspect -t $${name};\ | ||
| done | ||
|
|
||
| inspect-all: | ||
| containerlab inspect --all | ||
| containerlab inspect --all | ||
|
|
||
| docker-stop-all: | ||
| # This allows the destruction of all running docker containers, regardless of if clab topology file exists | ||
| docker stop $(docker ps -a -q) | ||
| # This allows the destruction of all running docker containers, regardless of if clab topology file exists | ||
| docker stop $(docker ps -a -q) | ||
|
|
||
| docker-remove-all: | ||
| # This allows the removal of all running docker containers, regardless of if clab topology file exists | ||
| docker rm $(docker ps -a -q) | ||
| # This allows the removal of all running docker containers, regardless of if clab topology file exists | ||
| docker rm $(docker ps -a -q) | ||
|
|
||
| container: | ||
| docker build -t internet2/getting_started -f Containerfile . | ||
| docker build -t internet2/getting_started -f Containerfile . | ||
|
|
||
| clean: | ||
| rm -rf $(FILES) | ||
| rm -rf $(FILES) |