diff --git a/contrib/parseq-tracevis-server/Dockerfile b/contrib/parseq-tracevis-server/Dockerfile new file mode 100644 index 00000000..b744e07f --- /dev/null +++ b/contrib/parseq-tracevis-server/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu + +MAINTAINER Jaroslaw Odzga "jodzga@linkedin.com" + +# Update aptitude with new repo +# Install other software +RUN apt-get -y update && apt-get install -y \ + graphviz \ + default-jdk \ + wget + +RUN mkdir /opt/parseq-tracevis-server +RUN wget -O /opt/parseq-tracevis-server/parseq-tracevis-server-2.6.21-jar-with-dependencies.jar 'https://search.maven.org/remotecontent?filepath=com/linkedin/parseq/parseq-tracevis-server/2.6.21/parseq-tracevis-server-2.6.21-jar-with-dependencies.jar' + +# Expose port 8080 to the host +EXPOSE 8080 + +# Set the current work directory +WORKDIR /opt/parseq-tracevis-server + +ENTRYPOINT ["java", "-Xmx2g", "-Xms2g", "-jar", "/opt/parseq-tracevis-server/parseq-tracevis-server-2.6.21-jar-with-dependencies.jar", "/usr/bin/dot", "8080"] diff --git a/contrib/parseq-tracevis-server/README.md b/contrib/parseq-tracevis-server/README.md index 98ea8420..8b7011eb 100644 --- a/contrib/parseq-tracevis-server/README.md +++ b/contrib/parseq-tracevis-server/README.md @@ -29,6 +29,11 @@ Run server passing path to `dot` as an argument e.g. `java -jar parseq-tracevis- You can optionally specify port number, by default it will run on port 8080. +Docker +====================================== + +To start tracevis server using docker: `docker run -d -p 8080:8080 jodzga/parseq-tracevis-server:latest`. The server is accessible at [http://localhost:8080](http://localhost:8080). + More Info =========