-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 703 Bytes
/
Makefile
File metadata and controls
42 lines (28 loc) · 703 Bytes
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
41
42
DOCKER_IMAGES_TAG?=latest
DOCKER_REGISTRY_URL?=mischenkovn/devops-for-programmers-project-lvl1
test-web:
bash -c "for i in {1..9}; do sleep 1; curl -k https://localhost && exit 0; done; exit 1"
push-release:
docker tag ${DOCKER_REGISTRY_URL}:cashed ${DOCKER_REGISTRY_URL}:${DOCKER_IMAGES_TAG}
push-prod:
docker push ${DOCKER_REGISTRY_URL}:${DOCKER_IMAGES_TAG}
prod: build up test-web push-prod
server:
npx nodos server
test:
npm -s test
up:
docker-compose up -d
ps:
docker-compose ps
build:
docker-compose build
logs:
docker-compose logs -f
down:
docker-compose down || true
stop:
docker-compose stop || true
restart:
docker-compose restart
setup: compose-down compose-build