23 lines
614 B
Bash
Executable file
23 lines
614 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script intend to delete existing images (if exists) and recreate them all
|
|
# This script must be launch in root mode
|
|
# This script must be launched from the 'forContainerNet' folder
|
|
# This script must be launched by being sure there isn't any running container using the images below (exit from topology if not yet done)
|
|
|
|
docker rmi config:topo
|
|
docker rmi server:topo
|
|
docker rmi gateway:topo
|
|
docker rmi device:topo
|
|
|
|
cd bootserver
|
|
docker build -t config:topo .
|
|
|
|
cd ../server
|
|
docker build -t server:topo .
|
|
|
|
cd ../gateway
|
|
docker build -t gateway:topo .
|
|
|
|
cd ../device
|
|
docker build -t device:topo .
|