forked from Lamafahad/petclinic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.ONESHELL:
SHELL = /bin/bash
build: build-petclinic-components build-petclinic-tools
petclinic: pull up
build-petclinic-components:
DOCKER_BUILDKIT=1 docker-compose build
build-petclinic-tools:
DOCKER_BUILDKIT=1 docker build --tag bryandollery/petclinic .
pull:
docker pull bryandollery/petclinic
docker pull bryandollery/petclinic-db
docker pull bryandollery/petclinic-server
docker pull bryandollery/petclinic-client
docker pull bryandollery/petclinic-testing-newman
run:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock bryandollery/petclinic
cbuild:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock bryandollery/petclinic build
up:
docker-compose up -d
down:
docker-compose down
clean:
docker rm -f $(docker ps -qa)
cleandb:
docker volume rm petclinic-db
logs:
docker-compose logs -f