mirror of
https://github.com/ViViDboarder/docker-rpi-motioneye.git
synced 2024-12-04 08:26:44 +00:00
Add Makefile and docker-compose.yaml
This commit is contained in:
parent
6fb8d75ed7
commit
64c8357b6e
27
Makefile
Normal file
27
Makefile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
default: build
|
||||||
|
|
||||||
|
# Default target to build the image
|
||||||
|
build:
|
||||||
|
docker build -t rpi-motioneye-dev .
|
||||||
|
|
||||||
|
# Target to build and run and subsequently remove image
|
||||||
|
run: build
|
||||||
|
docker run --rm \
|
||||||
|
-p "localhost:8765:8765"
|
||||||
|
-v "recordings:/var/lib/motioneye" \
|
||||||
|
rpi-motioneye-dev
|
||||||
|
|
||||||
|
# Target to drop into an interractive shell
|
||||||
|
shell: build
|
||||||
|
docker run --rm \
|
||||||
|
-p "localhost:8765:8765"
|
||||||
|
-v "recordings:/var/lib/motioneye" \
|
||||||
|
-it rpi-motioneye-dev bash
|
||||||
|
|
||||||
|
# Tags dev image so it can be pushed
|
||||||
|
tag: build
|
||||||
|
docker tag rpi-motioneye-dev vividboarder/rpi-motioneye
|
||||||
|
|
||||||
|
# Pushes tagged image to docker hub
|
||||||
|
push: tag
|
||||||
|
docker push vividboarder/rpi-motioneye
|
11
docker-compose.yaml
Normal file
11
docker-compose.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
motioneye:
|
||||||
|
build: .
|
||||||
|
container_name: motioneye
|
||||||
|
ports:
|
||||||
|
- "8765:8765"
|
||||||
|
volumes:
|
||||||
|
- recordings:/var/lib/motioneye
|
||||||
|
volumes:
|
||||||
|
recordings: {}
|
Loading…
Reference in New Issue
Block a user