forked from tekn0ir/eibd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (30 loc) · 1.32 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
FROM debian:jessie
MAINTAINER Anders Åslund <[email protected]>
# update apt and install dependencies
RUN apt-get -qq update
RUN apt-get install -y python python-dev python-pip python-virtualenv
RUN apt-get install -y build-essential gcc git rsync cmake make g++ binutils automake flex bison patch wget
ENV KNXDIR /usr
ENV INSTALLDIR $KNXDIR/local
ENV SOURCEDIR $KNXDIR/src
ENV LD_LIBRARY_PATH $INSTALLDIR/lib
ENV EIBD_iptn 192.168.250.5
ENV EIBD_eibaddr 15.15.1
WORKDIR $SOURCEDIR
# build pthsem
COPY pthsem_2.0.8.tar.gz pthsem_2.0.8.tar.gz
RUN tar -xzf pthsem_2.0.8.tar.gz
RUN cd pthsem-2.0.8 && ./configure --prefix=$INSTALLDIR/ && make && make test && make install
# build linknx
COPY linknx-0.0.1.32.tar.gz linknx-0.0.1.32.tar.gz
RUN tar -xzf linknx-0.0.1.32.tar.gz
RUN cd linknx-0.0.1.32 && ./configure --without-log4cpp --without-lua --prefix=$INSTALLDIR/ --with-pth=$INSTALLDIR/ && make && make install
# build eibd
COPY bcusdk_0.0.5.tar.gz bcusdk_0.0.5.tar.gz
RUN tar -xzf bcusdk_0.0.5.tar.gz
RUN cd bcusdk-0.0.5 && ./configure --enable-onlyeibd --enable-eibnetiptunnel --enable-eibnetipserver --enable-ft12 --prefix=$INSTALLDIR/ --with-pth=$INSTALLDIR/ && make && make install
RUN useradd eibd -s /bin/false -U -M
ADD eibd.sh /etc/init.d/eibd
RUN chmod +x /etc/init.d/eibd
RUN update-rc.d eibd defaults 98 02
EXPOSE 6720