Commit 2112eb01 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[docker] use docker build --pull

parent 8daefd9acb64
...@@ -8,7 +8,7 @@ NAMESPACE=intranet ...@@ -8,7 +8,7 @@ NAMESPACE=intranet
all: build all: build
build: build:
docker build -t $(IMAGE) . docker build --pull -t $(IMAGE) .
push: build push: build
docker push $(IMAGE) docker push $(IMAGE)
...@@ -21,10 +21,7 @@ run: build ...@@ -21,10 +21,7 @@ run: build
dev: build dev: build
docker run --rm -it $(DOCKER_ARGS) -v `pwd`:/src $(IMAGE) bash docker run --rm -it $(DOCKER_ARGS) -v `pwd`:/src $(IMAGE) bash
pull-base: deploy: push
grep '^FROM ' Dockerfile | awk '{ print $$2 }' | xargs docker pull
deploy: pull-base push
sed "$(IMAGE)@" deploy/deployment.yaml | kubectl -n $(NAMESPACE) apply -f - sed "$(IMAGE)@" deploy/deployment.yaml | kubectl -n $(NAMESPACE) apply -f -
@echo "wait at max 3 minutes for deployment to be UP" @echo "wait at max 3 minutes for deployment to be UP"
kubectl -n $(NAMESPACE) wait --for=condition=available --timeout=180s deployment/fresh deployment/fresh-scheduler kubectl -n $(NAMESPACE) wait --for=condition=available --timeout=180s deployment/fresh deployment/fresh-scheduler
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment