-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathDockerfile
59 lines (53 loc) · 1.45 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM multiarch/ubuntu-core:i386-xenial
MAINTAINER Sebastiano Milardo <s.milardo at hotmail.it>
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-i386
# On MAC OSX:
# open -a XQuartz
# ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
# xhost + $ip
# docker run -it -v $(pwd):/src/sdn-wise-contiki -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix sdn-wise-contiki
# Update and install minimal
RUN apt-get update \
&& apt-get install \
--yes \
--no-install-recommends \
--no-install-suggests \
build-essential \
binutils-msp430 \
gcc-msp430 \
msp430-libc \
binutils-avr \
gcc-avr \
gdb-avr \
avr-libc \
avrdude \
binutils-arm-none-eabi \
gcc-arm-none-eabi \
gdb-arm-none-eabi \
openjdk-8-jdk \
openjdk-8-jre \
ant \
libncurses5-dev \
doxygen \
srecord \
git \
autoconf \
automake \
ca-certificates \
git \
libtool \
net-tools \
openssh-client \
patch \
curl \
iputils-ping \
# Clean up packages
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
LABEL org.label-schema.name="SDN-WISE" \
org.label-schema.description="The stateful Software Defined Networking solution for the Internet of Things" \
org.label-schema.url="http://sdn-wise.dieei.unict.it/" \
org.label-schema.schema-version="1.0"
WORKDIR /src/sdn-wise-contiki/contiki/tools/cooja
CMD ["ant", "run"]