mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
27 lines
1.4 KiB
Docker
27 lines
1.4 KiB
Docker
FROM golang:latest
|
|
|
|
RUN apt-get update && apt-get install ruby vim-common -y
|
|
|
|
# Install Java for middleware testing
|
|
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
|
|
RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
|
|
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
|
|
RUN apt-get update -y
|
|
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
|
|
RUN apt-get install oracle-java8-installer -y
|
|
|
|
RUN apt-get install flex bison -y
|
|
RUN wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz && tar xzf libpcap-1.8.1.tar.gz && cd libpcap-1.8.1 && ./configure && make install
|
|
RUN go get github.com/google/gopacket
|
|
RUN go get -u golang.org/x/lint/golint
|
|
|
|
WORKDIR /go/src/github.com/buger/goreplay/
|
|
|
|
RUN wget http://archive.apache.org/dist/commons/io/binaries/commons-io-2.4-bin.tar.gz && tar xzf commons-io-2.4-bin.tar.gz && cd commons-io-2.4 && mv commons-io-2.4.jar /tmp/
|
|
RUN wget http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.9-bin.tar.gz && tar xzf commons-codec-1.9-bin.tar.gz
|
|
|
|
ADD . /go/src/github.com/buger/goreplay/
|
|
|
|
RUN javac -cp commons-io-2.4/commons-io-2.4.jar -cp commons-codec-1.9/commons-codec-1.9.jar ./examples/middleware/echo.java
|
|
RUN go get
|