Created
August 24, 2018 15:06
-
-
Save mvtango/9a8703632c231947201f35bdbd7d0aa9 to your computer and use it in GitHub Desktop.
Makefile to run a EsperService inside a tomcat docker container using https://github.com/IPVS-AS/EsperService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL := /bin/bash | |
PWD := $(shell pwd) | |
target/EsperService-0.0.1.war: | |
mvn install | |
# make run MODE=-d - run as daemon | |
MODE := -it | |
PORT := 18184 | |
run: target/EsperService-0.0.1.war | |
docker run $(MODE) -v $(PWD)/target/EsperService-0.0.1.war:/usr/local/tomcat/webapps/EsperService.war --name esper -p $(PORT):8080 tomcat:8-alpine | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment