Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP #35

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

WIP #35

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ The most convenient way to install the Bluecherry docker image is to use this sc

The included Dockerfile generates an image based on an **Ubuntu 20.04** docker image. The latest tagged version of the **Bluecherry Server v3.x.x** from the [bluecherry-apps](https://github.com/bluecherrydvr/bluecherry-apps) source repository. The included docker-compose file uses **MySQL version 8.x.x** to host the bluecherry database.

The current version of this docker code intends to build a bluecherry docker image that is as small as possible, and which does *not* bake in any configuration into the image (since docker images are intended to be ephemeral).

Instead, needed configuration parameters such as database and server passwords are passed into the docker container via environment variables. Environment variables are defined and passed using typical methods with `docker` or `docker-compose` commands.

## Initialization and Usage
Expand Down
28 changes: 0 additions & 28 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ read -p "Please provide the SMTP password: " smtppassword
read -p "Please provide the SMTP port: " smtpport
#read -p "Please provide the SMTP username: " smtplogin

#read -p "Please provide the NFS mount point for the NFS export" nfsmountpoint

echo "

Expand Down Expand Up @@ -196,7 +195,6 @@ echo "installing nfs"

read -p "Please provide the IP address of the NFS server: " nfsserver
read -p "Please provide the NFS server export path: " nfsexport
#read -p "Please provide the NFS mount point for the NFS export" nfsmountpoint

echo "

Expand Down Expand Up @@ -432,32 +430,6 @@ case $add_nfs in
esac


configure_nfs() {

echo "installing nfs"

read -p "Please provide the IP address of the NFS server: " nfsserver
read -p "Please provide the NFS server export path: " nfsexport

echo "

version: '3.8'
services:

bluecherry:
volumes:
# - ./recordings:/var/lib/bluecherry/recordings
- videos:/media/bluecherry/nfs

volumes:
videos:
driver_opts:
type: "nfs"
o: "addr=$nfsserver,nolock,soft"
device: ":$nfsexport"
" > $workingpath/bluecherry-docker/docker-compose.override.yml

}
# Let the user know how to access to Bluecherry web UI

IP=$(ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
Expand Down
Loading