Skip to content

Instantly share code, notes, and snippets.

@mvtango
Created August 24, 2018 15:06
Show Gist options
  • Save mvtango/9a8703632c231947201f35bdbd7d0aa9 to your computer and use it in GitHub Desktop.
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
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