From 929520e63d9e51ca7e7e51a71d56f476653fef99 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 5 Oct 2019 10:08:03 +0200 Subject: Optimize dockerile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 34badf0..2381328 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,13 @@ rebuild: Dockerfile push: build docker push chsa/centos-tools:latest +login: + docker login -u `oc whoami` -p `oc whoami -t` docker-registry-default.kaas.kit.edu + +kaas: build login + docker tag chsa/centos-tools:latest docker-registry-default.kaas.kit.edu/kaas/kaas-manager:latest + docker push docker-registry-default.kaas.kit.edu/kaas/kaas-manager:latest + start: build if [ `docker ps | grep chsa/centos-tools | wc -l` -eq 0 ]; then \ if [ `docker ps -a | grep centos-tools | wc -l` -gt 0 ]; then \ -- cgit v1.2.3