-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathDockerfile
31 lines (22 loc) · 1.22 KB
/
Dockerfile
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
FROM ubuntu:trusty
MAINTAINER josh <joshjdevl [at] gmail {dot} com>
RUN apt-get update && apt-get -y install python-software-properties software-properties-common
RUN add-apt-repository "deb http://gb.archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
RUN apt-get update
RUN add-apt-repository ppa:saiarcot895/myppa
RUN apt-get update
RUN apt-get -y install apt-fast
RUN apt-fast -y install git
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | \
/usr/bin/debconf-set-selections
RUN apt-fast install -y oracle-java8-installer
RUN apt-fast install -y oracle-java8-set-default
ENV MAVEN_VERSION 3.2.2
ADD https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz /tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz
RUN tar xfz /tmp/apache-maven-$MAVEN_VERSION-bin.tar.gz -C /opt
ENV PATH /opt/apache-maven-$MAVEN_VERSION/bin:$PATH
RUN cd /tmp && git clone https://github.com/joshjdevl/dropwizard-kafka-http
RUN cd /tmp/dropwizard-kafka-http && mvn clean install && mvn package
CMD cd /tmp/dropwizard-kafka-http && java -jar target/dropwizard-kafka-http-0.0.1-SNAPSHOT.jar server kafka-http.yml