distribution/build_demo_1.17.sh
2022-09-05 13:23:56 +02:00

25 lines
692 B
Bash
Executable File

#!/bin/sh
File='Dockerfile.bci'
Version='1.17'
Port='5000'
Green='\033[1;32m'
GreenBG='\033[42m'
Nc='\033[0m' # No Color
echo ""
echo -e "${Green}Removing any cached image${Nc}"
echo -e "${GreenBG}docker system prune -a${Nc}"
#docker system prune -a -f
echo ""
echo -e "${Green}Building the distribution project..."
echo -e "${GreenBG}DOCKER_BUILDKIT=1 docker build -t distribution-${Version} -f ${File}.${Version} .${Nc}"
DOCKER_BUILDKIT=1 docker build -t distribution-${Version} -f ${File}.${Version} .
echo ""
echo -e "${Green}Running the registry...${Nc}"
echo -e "${GreenBG}docker run -p ${Port}:5000 distribution-${Version}${Nc}"
docker run -p ${Port}:5000 distribution-${Version}