-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
55 lines (53 loc) · 1.74 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.PHONY: dockerrun test
# docker
docker-run:
@echo make $@
cd .docker && docker-compose run --rm autobdd-run "make $(jobs)" || exit $?
cd -
autobdd-clean-all: autobdd-clean-image autobdd-clean-nodejs autobdd-clean-ubuntu
autobdd-clean-ubuntu:
@echo make $@
if docker images --filter=reference="xyteam/autobdd-ubuntu:*" | grep autobdd; then \
docker images --filter=reference="xyteam/autobdd-ubuntu:*" -q | xargs docker rmi -f; \
fi
autobdd-clean-nodejs:
@echo make $@
if docker images --filter=reference="xyteam/autobdd-nodejs:*" | grep autobdd; then \
docker images --filter=reference="xyteam/autobdd-nodejs:*" -q | xargs docker rmi -f; \
fi
autobdd-clean-image:
@echo make $@
if docker images --filter=reference="xyteam/autobdd:*" | grep autobdd; then \
docker images --filter=reference="xyteam/autobdd:*" -q | xargs docker rmi -f; \
fi
autobdd-build-all: autobdd-ubuntu autobdd-nodejs autobdd-image
autobdd-ubuntu:
cd .docker && make autobdd-ubuntu || exit $?
cd -
autobdd-nodejs:
cd .docker && make autobdd-nodejs || exit $?
cd -
autobdd-image:
cd .docker && make autobdd-image || exit $?
cd -
autobdd-test:
cd ../autobdd-test && \
make docker-run jobs="clean e2e-test cy-test js-test py3-test k6-test" || exit $?
cd -
autobdd-bash:
cd .docker && make autobdd-run-bash || exit $?
autobdd-up:
cd .docker && make autobdd-up || exit $?
autobdd-logs:
cd .docker && make autobdd-logs || exit $?
autobdd-logs-f:
cd .docker && make autobdd-logs-f || exit $?
autobdd-ssh:
ssh-keygen -f "$${HOME}/.ssh/known_hosts" -R "[localhost]:2222"
ssh $$USER@localhost -p 2222 || exit $?
autobdd-down:
cd .docker && make autobdd-down || exit $?
autobdd-push:
cd .docker && make autobdd-push || exit $?
autobdd-pull:
cd .docker && make autobdd-pull || exit $?