mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
24 lines
1.1 KiB
Docker
24 lines
1.1 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 wget http://apache-mirror.rbc.ru/pub/apache//commons/io/binaries/commons-io-2.4-bin.tar.gz -P /tmp
|
|
RUN tar xzf /tmp/commons-io-2.4-bin.tar.gz -C /tmp
|
|
|
|
RUN apt-get install libpcap-dev -y
|
|
RUN go get github.com/google/gopacket
|
|
RUN go get -u github.com/golang/lint/golint
|
|
|
|
WORKDIR /go/src/github.com/buger/gor/
|
|
ADD . /go/src/github.com/buger/gor/
|
|
|
|
RUN javac -cp /tmp/commons-io-2.4/commons-io-2.4.jar ./examples/middleware/echo.java
|
|
RUN go get |