Video WebService

1. Installation

2. Prerequisites

If something should differ from the defaults, set the environment variables for the install and update script and add them to ~/.bashrc!

export VM_NAME=video-maps # optional
export VM_PORT=9004 # optional

Download this repository

mkdir -p ~/projects && cd ~/projects
git clone git@bitbucket.org:locr/phpmapcreatevideo.git PhpMapCreateVideo
cd PhpMapCreateVideo

3. Build image, create and start container

./scripts/install_service.sh

4. Create update script in home directory

cat <<EOF >~/update_video_maps.sh
#!/usr/bin/env bash

cd ${PWD}/scripts
./update_service.sh
EOF

chmod +x ~/update_video_maps.sh

5. Add nginx config

sudo cp nginx/video_maps /etc/nginx/conf.d

ensure, that the following line(s) exists in sudo nano /etc/nginx/sites-enabled/default

server {
    ...
    include conf.d/video_maps;
    ...
}
sudo service nginx restart