Skip to content

Commit

Permalink
override the entrypoint for make
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Jul 12, 2018
1 parent 69aff19 commit 2542527
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ help:
@echo "run Equivalent to eval_onelayer"
eval_onelayer: build_onelayer
@echo "Running OneLayer Eval on PCAP file $(PCAP)"
docker run -it -v "$(PCAP):/pcaps/eval.pcap" -e SKIP_RABBIT=true poseidonml:onelayer
docker run -it -v "$(PCAP):/pcaps/eval.pcap" -e SKIP_RABBIT=true --entrypoint=python3 poseidonml:onelayer eval_OneLayer.py
test_onelayer: build_onelayer
@echo "Running OneLayer Test on PCAP files $(PCAP)"
@docker run -it -v "/tmp/models:/OneLayer/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true poseidonml:onelayer test_OneLayer.py
@docker run -it -v "/tmp/models:/OneLayer/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true --entrypoint=python3 poseidonml:onelayer train_OneLayer.py
train_onelayer: build_onelayer
@echo "Running OneLayer Train on PCAP files $(PCAP)"
@docker run -it -v "/tmp/models:/OneLayer/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true poseidonml:onelayer train_OneLayer.py
@docker run -it -v "/tmp/models:/OneLayer/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true --entrypoint=python3 poseidonml:onelayer train_OneLayer.py
eval_randomforest: build_randomforest
@echo "Running RandomForest Eval on PCAP file $(PCAP)"
@docker run -it -v "$(PCAP):/pcaps/eval.pcap" -e SKIP_RABBIT=true poseidonml:randomforest
@docker run -it -v "$(PCAP):/pcaps/eval.pcap" -e SKIP_RABBIT=true --entrypoint=python3 poseidonml:randomforest eval_RandomForest.py
test_randomforest: build_randomforest
@echo "Running RandomForest Test on PCAP files $(PCAP)"
@docker run -it -v "/tmp/models:/RandomForest/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true poseidonml:randomforest test_RandomForest.py
@docker run -it -v "/tmp/models:/RandomForest/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true --entrypoint=python3 poseidonml:randomforest test_RandomForest.py
train_randomforest: build_randomforest
@echo "Running RandomForest Train on PCAP files $(PCAP)"
@docker run -it -v "/tmp/models:/RandomForest/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true poseidonml:randomforest train_RandomForest.py
@docker run -it -v "/tmp/models:/RandomForest/models" -v "$(PCAP):/pcaps/" -e SKIP_RABBIT=true --entrypoint=python3 poseidonml:randomforest train_RandomForest.py
build_onelayer: build_base
@pushd DeviceClassifier/OneLayer && docker build -t poseidonml:onelayer . && popd
build_randomforest: build_base
Expand Down

0 comments on commit 2542527

Please sign in to comment.