You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-17 01:22:25 +02:00
add motion-arm
This commit is contained in:
21
motion-arm/Dockerfile
Normal file
21
motion-arm/Dockerfile
Normal 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
10
motion-arm/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
motion-arm
|
||||||
|
==========
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[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
|
10
motion-arm/docker-compose.yml
Normal file
10
motion-arm/docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user