-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (23 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
37 lines (23 loc) · 760 Bytes
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
32
33
34
35
36
FROM debian:stable
MAINTAINER Glenn Y. ROLLAND <glenn.rolland@netcat.io>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -q -y opam
RUN apt-get install -q -y \
mercurial darcs git m4 ocaml-nox pkg-config
RUN opam init && \
opam config setup -a
RUN eval $(opam config env) && \
opam switch 4.02.3
RUN eval $(opam config env) && \
opam install -y core base-bytes
ADD . /usr/src/oconperf
WORKDIR /usr/src/oconperf
RUN eval $(opam config env) && \
make clean && \
make
RUN cp /usr/src/oconperf/oconperf.native /usr/local/bin/oconperf
RUN cp /usr/src/oconperf/scripts/run-server.sh /usr/local/bin/oconperf-server
RUN rm -fr /usr/src/oconperf
RUN apt-get autoremove -y
EXPOSE 4217
CMD /usr/local/bin/oconperf-server eth0