Initial commit

Things appear to be working. No documentation yet
This commit is contained in:
ViViDboarder 2016-10-11 23:22:01 +00:00
commit 6fb8d75ed7
4 changed files with 65 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
tags
README.md

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tags

57
Dockerfile Normal file
View File

@ -0,0 +1,57 @@
FROM resin/rpi-raspbian:jessie
MAINTAINER ViViDboarder <ViViDboarder@gmail.com>
# Instal Python dependencies
RUN echo 'deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free rpi firmware' >> /etc/apt/sources.list && \
apt-get update && apt-get install -y \
wget \
zlib1g \
zlib1g-dev \
--no-install-recommends && \
apt-get build-dep -y python2.7 && \
rm -rf /var/lib/apt/lists/*
# Install python with zlib support
RUN wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz && \
tar xvf Python-2.7.12.tgz && \
cd Python-2.7.12 && \
./configure && make && make install && \
cd .. && rm -fr Python-2.7.12 Python-2.7.12.tgz
# Install motion dependencies
RUN apt-get update && apt-get install -y \
curl \
libav-tools \
libavformat56 \
libcurl4-openssl-dev \
libjpeg-dev \
libssl-dev \
motion \
python-dev \
python-pip \
v4l-utils \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Link avconv to ffmpeg because ffmpeg was forked in Debian
RUN ln -s /usr/bin/avconv /usr/bin/ffmpeg
# Install motioneye
RUN pip install motioneye
# Create config dir
RUN mkdir -p /etc/motioneye
VOLUME /etc/motioneye
# Create data dir
RUN mkdir -p /var/lib/motioneye
VOLUME /var/lib/motioneye
EXPOSE 8765
# RUN useradd motioneye
# RUN chown -R motioneye /etc/motioneye /var/lib/motioneye
# USER motioneye
CMD test -e /etc/motioneye/motioneye.conf || \
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf ; \
/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# rpi-motioneye
Work in progress Docker image for running Motioneye on a Raspberry Pi
So far, it appears to work fine. Documentation to come... Use at your own risk