Added a readme for the Docker stuff

This commit is contained in:
Kyle Johnson 2014-01-27 14:03:51 -05:00
parent ab923ee960
commit 61c5658abf
3 changed files with 29 additions and 1 deletions

View File

@ -33,11 +33,14 @@ RUN make
RUN make install
# Adding the start script
ADD start.sh /tmp/start.sh
ADD utils/docker/start.sh /tmp/start.sh
# Make start script executable
RUN chmod 755 /tmp/start.sh
# Set the root passwd
RUN echo 'root:root' | chpasswd
# Expose ssh and http ports
EXPOSE 80
EXPOSE 22

21
utils/docker/README.md Normal file
View File

@ -0,0 +1,21 @@
# Overview
Docker allows you to quickly spin up containers. The ZoneMinder dockerfile will spin
up an Ubuntu 12.04 container with mysql, apache, php and then compile and install ZoneMinder (from master).
Afterwards you can connect to this container over SSH to check out the latest code.
This is still a bit of a work in progress.
## How To Use
1. Pull it
```sudo docker pull ubuntu:precise```
2. Built it
```sudo docker build -t yourname/zoneminder github.com/ZoneMinder/ZoneMinder```
3. Run it
```CID=$(sudo docker run -d -p 222:22 -p 8080:80 -name zoneminder yourname/zoneminder)```
4. Use it -- you can now SSH to port 222 on your host as user root with password root.
You can also browse to your host on port 8080 to access the zoneminder web interface
## Use Cases

View File

@ -18,3 +18,7 @@ service apache2 restart
# Start ZoneMinder
/usr/local/bin/zmpkg.pl start
# Start SSHD
mkdir /var/run/sshd
/usr/sbin/sshd -D