forked from renegare/devops-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (19 loc) · 743 Bytes
/
Makefile
File metadata and controls
22 lines (19 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
VERSION=$(shell git rev-parse --short HEAD)
DOCKER_REPO=dkws
APP_NAME=devops-proxy
build:
echo $(VERSION) > VERSION
docker build -t $(DOCKER_REPO)/$(APP_NAME):latest .
docker tag $(DOCKER_REPO)/$(APP_NAME):latest $(DOCKER_REPO)/$(APP_NAME):$(VERSION)
-docker ps -qaf status=exited | xargs docker rm
-docker images -qaf dangling=true | xargs docker rmi
docker images | grep $(DOCKER_REPO)/$(APP_NAME)
push:
docker push $(DOCKER_REPO)/$(APP_NAME):latest
docker push $(DOCKER_REPO)/$(APP_NAME):$(VERSION)
update-webservices-ip:
docker inspect devopsproxy_webservices_1 | grep IPAddress
docker-compose stop webservices
docker-compose rm -f
docker-compose up -d webservices
docker inspect devopsproxy_webservices_1 | grep IPAddress