-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 1.26 KB
/
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
SHELL := /bin/bash
PWD := $(shell pwd)
default: build
all:
docker-client-image:
docker build -f ./client/Dockerfile -t "client:latest" .
.PHONY: docker-client-image
docker-image:
docker build -f ./comments_filter_columns/Dockerfile -t "comments_filter_columns:latest" .
docker build -f ./comments_filter_student/Dockerfile -t "comments_filter_student:latest" .
docker build -f ./posts_filter_score_gte_avg/Dockerfile -t "posts_filter_score_gte_avg:latest" .
docker build -f ./posts_reduce_avg_sentiment/Dockerfile -t "posts_reduce_avg_sentiment:latest" .
docker build -f ./posts_max_avg_sentiment/Dockerfile -t "posts_max_avg_sentiment:latest" .
docker build -f ./posts_filter_columns/Dockerfile -t "posts_filter_columns:latest" .
docker build -f ./posts_avg_score/Dockerfile -t "posts_avg_score:latest" .
docker build -f ./join_comments_with_posts/Dockerfile -t "join_comments_with_posts:latest" .
.PHONY: docker-image
docker-compose-up:
docker-compose -f docker-compose.yaml up -d --build --remove-orphans
.PHONY: docker-compose-up
docker-compose-down:
docker-compose -f docker-compose.yaml stop -t 2
docker-compose -f docker-compose.yaml down
.PHONY: docker-compose-down
docker-compose-logs:
docker-compose -f docker-compose.yaml logs -f
.PHONY: docker-compose-logs