-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 856 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
help:
@echo "build - bild kindle service from sources"
@echo "install - install dependecies"
@echo "kindle - run the script to parse highlights from Amazon Kindle"
@echo "bkindle - build and run"
@echo "deploy - tag and push images to the registry"
@echo "gbooks - build gbooks service from sources"
build:
GOOS=linux go build -o bin/kindle src/kindle/main.go
install:
cd src/kindle && dep ensure && cd -
kindle:
docker-compose up kindle
bkindle: build kindle
deploy:
docker tag $(shell docker images --format="{{.ID}}" | head -n1) zerc/book-highlights-kindle
docker push zerc/book-highlights-kindle
gbooks:
GOOS=linux go build -o bin/gbooks src/gbooks/*.go
docker-compose build gbooks
docker-compose run gbooks
storage:
GOOS=linux go build -o bin/storage src/storage/*.go
docker-compose build storage
docker-compose up storage