forked from wilhelm-lab/oktoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 1.08 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
OKTOBERFEST_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
# include $(OKTOBERFEST_DIR)MakefileShared # sourcing this is not needed because it is already sourced in MakefileCe
include $(OKTOBERFEST_DIR)MakefileShared
dependencies:
git config --global credential.helper cache
registry:
docker login gitlab.lrz.de:5005
docker build -t gitlab.lrz.de:5005/proteomics/github/oktoberfest .
docker push gitlab.lrz.de:5005/proteomics/github/oktoberfest
jump:
$(DOCKER_CMD) \
$(IMAGE) bash
# --no-cache
build: dependencies
git describe --long --dirty --always > hash.file
docker build -f Dockerfile -t $(IMAGE) . || (exit 1)
run_oktoberfest: rm_err_file
$(DOCKER_CMD) \
$(IMAGE) python3 -u -m oktoberfest --search_dir $(LOCAL_DIR) --config_path $(LOCAL_DIR)/config.json || (echo "2" > $(DATA)err.out; exit 2)
compress: run_oktoberfest
zip -j -r -9 "$(DATA)/results.zip" "$(DATA)/results/" || (echo "3" > $(DATA)err.out; exit 3)
all: compress
run_local:
python3 -u -m oktoberfest "$(DATA)"
clean_data_folder:
rm -rf $(DATA)/{proc,msms,results,mzML,msms.prosit,err.out,results.zip}