-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
29 lines (20 loc) · 881 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
.PHONY: build create_current_weekdays create_current_month_weekdays clean down install shell test up
build:
docker build --no-cache -t bambooing:test .
create_current_weekdays:
docker run --rm --name bambooing_week --env-file ${PWD}/configuration.env bambooing:test bundle exec rake bambooing:create_current_weekdays
create_current_month_weekdays:
docker run --rm --name bambooing_month --env-file ${PWD}/configuration.env bambooing:test bundle exec rake bambooing:create_current_month_weekdays
clean:
docker rm -f bambooing
docker rmi bambooing:test
down:
docker rm -f bambooing
install:
docker exec -it bambooing bundle install
shell:
docker exec -it bambooing sh
test:
docker run --rm --name bambooing_test bambooing:test bundle exec rspec
up:
docker run --name bambooing -v ${PWD}:/opt --env-file ${PWD}/configuration.env -d bambooing:test tail -f /dev/null