1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add motion-arm

This commit is contained in:
kev 2016-01-03 13:23:48 +08:00
parent 965e160443
commit fe1218953a
3 changed files with 41 additions and 0 deletions

21
motion-arm/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
#
# Dockerfile for motion-arm
#
FROM resin/rpi-raspbian
MAINTAINER kev <noreply@datageek.info>
RUN set -xe \
&& apt-get update \
&& apt-get install -y motion \
&& sed -i -e 's/^daemon on/daemon off/' \
-e 's/^webcontrol_localhost on/webcontrol_localhost off/' \
-e 's/^stream_localhost on/stream_localhost off/' \
/etc/motion/motion.conf \
&& rm -rf /var/cache/apt/*
VOLUME /var/lib/motion
EXPOSE 8080 8081
CMD ["/usr/bin/motion"]

10
motion-arm/README.md Normal file
View File

@ -0,0 +1,10 @@
motion-arm
==========
![](https://badge.imagelayers.io/vimagick/motion-arm:latest.svg)
[Motion][1] is a program that monitors the video signal from one or more cameras
and is able to detect if a significant part of the picture has changed. Or in
other words, it can detect motion.
[1]: http://lavrsen.dk/foswiki/bin/view/Motion/WebHome

View File

@ -0,0 +1,10 @@
motion:
image: vimagick/motion-arm
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./motion:/var/lib/motion
devices:
- /dev/video0:/dev/video0
restart: always