/stvid-docker

Docker container of cbassa's stvid

Primary LanguageDockerfileGNU Affero General Public License v3.0AGPL-3.0

stvid-docker

Docker container of cbassa's stvid
Somewhat designed for the dev branch 2022-09, will evolve over time.

Install

Refer to docker installation on how to get the latest installed on your system.
Short version, ymmv: Base image: Rasperry Pi OS 32bit Lite (bullseye):

# already installed: ca-certificates curl lsb-release
# optional: tmux uidmap
sudo apt update
sudo apt upgrade -y
sudo apt install -y ca-certificates curl gnupg lsb-release git

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg
echo "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

# add user to docker group, avoid needing sudo, re-login to apply
sudo adduser pi docker

Pulling the latest image will be performed when the container is started, this will take some time.

If you want more control or don't trust the image, you can use the ./build.sh and it will build it for you from the sources.

Useage

The srv directory is mounted inside the container at /srv
By default it contains the old and new config, that you should edit to your needs.
Environment variables can be set in srv/stvid.env and is read by entrypoint.sh
Workdir is /srv

When running the container, by default gets you a bash shell. You can change this by passing argument to docker run, for example: ./run.sh acquire.py.

Other useful scripts will be put into srv