-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
25 lines (20 loc) · 1.12 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
FROM ubuntu:15.04
MAINTAINER Marcel Wiget
# Install enough packages to compile snabb and qemu
RUN apt-get update
RUN apt-get install -y --no-install-recommends bridge-utils tmux telnet net-tools netcat expect iproute2 numactl dosfstools
# Download and compile snabb and qemu, then cleanup
RUN apt-get install -y --no-install-recommends build-essential git ca-certificates \
libqtcore4 libusbredirhost1 qtcore4-l10n spice-client-glib-usb-acl-helper \
glib-2.0 libglib2.0-dev libsdl1.2debian libsdl1.2-dev libaio-dev libcap-dev \
libattr1-dev libpixman-1-dev libncurses5 libncurses5-dev libspice-server1 \
&& git clone -b v2015.10 https://github.com/SnabbCo/snabbswitch.git \
&& cd snabbswitch && make -j && make install && make clean \
&& git clone -b v2.4.0-snabb --depth 50 https://github.com/SnabbCo/qemu && \
cd qemu && ./configure --target-list=x86_64-softmmu && make -j && make install \
&& apt-get purge -y build-essential git ca-certificates libncurses5-dev glib-2.0 \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /snabbswitch /qemu
COPY launch.sh README.md /
ENTRYPOINT ["/launch.sh"]
CMD ["vmx"]