forked from arteria-project/arteria-packs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 1.23 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
# This file has been modified from the https://github.com/StackStorm/st2-docker repo
# It is therefore subject to Apache Licence 2.0.
# It has been modified to work with the specific Arteria services and workflow.
# If ARTERIA_MONITORED_FOLDER is not defined in the environment set it to the
# default of using a monitored folder in the arteria repo
export ARTERIA_MONITORED_FOLDER ?= ${PWD}/docker-mountpoints/monitored-folder/
prepare:
mkdir -p -m 2770 docker-mountpoints/bcl2fastq-output
mkdir -p -m 2770 docker-mountpoints/monitored-folder
mkdir -p -m 2770 docker-runtime/entrypoint.d
mkdir -p -m 2770 docker-runtime/st2.d
docker volume create --opt "device=${ARTERIA_MONITORED_FOLDER}" --opt "type=local" --opt "o=bind" monitored-dir-volume
up: prepare
docker-compose up -d
down:
docker-compose down
interact: up
docker exec -it stackstorm /bin/bash
test-pack: up
docker exec stackstorm st2-run-pack-tests -c -v -p /opt/stackstorm/packs/arteria
test-integration: up
docker exec stackstorm /opt/stackstorm/packs/arteria/tests/integration_tests
exec:
docker exec -it stackstorm $(cmd)
remove-all: down
docker rmi $$(docker images -a -q)
remove-st2: down
docker images -a | grep stackstorm | awk '{print($$1)}' | xargs docker rmi