]> www.vanbest.org Git - motioneye-debian/commitdiff
Support armv7 (tested on Odroid X with AlARM Arch Linux)
authorLuca Belluccini <lucabelluccini@gmail.com>
Fri, 7 Jul 2017 21:59:04 +0000 (21:59 +0000)
committerLuca Belluccini <lucabelluccini@gmail.com>
Fri, 7 Jul 2017 21:59:04 +0000 (21:59 +0000)
extra/Dockerfile.armv7-armhf [new file with mode: 0644]

diff --git a/extra/Dockerfile.armv7-armhf b/extra/Dockerfile.armv7-armhf
new file mode 100644 (file)
index 0000000..088315e
--- /dev/null
@@ -0,0 +1,68 @@
+
+FROM armv7/armhf-ubuntu:15.04
+MAINTAINER Conor Heine <conor.heine@gmail.com>
+
+ENV DEBIAN_FRONTEND noninteractive
+
+RUN locale-gen en_US.UTF-8
+ENV LANGUAGE en_US.UTF-8
+ENV LC_ALL en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LC_TYPE en_US.UTF-8
+ENV TZ America/Los_Angeles
+
+RUN apt-get update && \
+    apt-get --yes install \
+       automake \
+       autoconf \
+       build-essential \
+       ffmpeg \
+       git \
+       libav-tools \
+       libavcodec-dev \
+       libavformat-dev \
+       libavutil-dev \
+       libcurl4-openssl-dev \
+       libjpeg-dev \
+       libssl-dev \
+       libswscale-dev \
+       pkgconf \
+        python-dev \
+        python-pip \
+       python-setuptools \
+       subversion \
+       v4l-utils && \
+    apt-get clean
+
+# Pip
+RUN pip install tornado jinja2 pillow pycurl
+
+RUN cd /tmp && git clone --branch 4.0 https://github.com/Motion-Project/motion.git motion-project
+RUN cd /tmp/motion-project && \
+    autoreconf -fiv && \
+    ./configure --prefix=/usr --without-pgsql --without-sqlite3 --without-mysql --with-ffmpeg=/usr && \
+    make && \
+    touch README \
+    make install && \
+    cp motion /usr/local/bin/motion && cd / && \
+    rm -rf /tmp/motion-project
+
+RUN pip install motioneye
+
+# R/W needed for motioneye to update configurations
+VOLUME /etc/motioneye
+
+# PIDs
+VOLUME /var/run/motion
+
+# Video & images
+VOLUME /var/lib/motioneye
+
+ADD extra /usr/share/motioneye/extra/
+
+CMD test -e /etc/motioneye/motioneye.conf || \    
+    cp /usr/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf ; \
+    /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
+
+EXPOSE 8765
+