# Installation
- [Docker Install](#docker-install)
- [Tarball Install](#tarball-install)
- [Build From Source](#build-from-source)
On first start you have to enable one of the authentication plugins in `configs/sentryshot.toml`
``` diff
[[plugin]]
name = "auth_none"
-enable = false
+enable = true
```
[releases](https://codeberg.org/SentryShot/sentryshot/releases)
## Docker Install
```
docker run -it \
--env TZ=America/New_York \
--shm-size=500m \
-v /docker/sentryshot/configs:/app/configs \
-v /docker/sentryshot/storage:/app/storage \
-p 2020:2020 \
codeberg.org/sentryshot/sentryshot:v0.x.x
```
App will be served on `http://ip:2020/live`
### Compose
```
services:
sentryshot:
shm_size: 500m
image: codeberg.org/sentryshot/sentryshot:v0.x.x
ports:
- 2020:2020
environment:
- TZ=America/New_York # Timezone.
volumes:
- /docker/sentryshot/configs:/app/configs
- /docker/sentryshot/storage:/app/storage
```
## Tarball Install
The only requirement is a system with `glibc 2.34+` Check with `ld -v`
Download a tarball from the [releases](https://codeberg.org/SentryShot/sentryshot/releases) page.
```
mkdir sentryshot
tar -xzvf sentryshot-* -C ./sentryshot/
cd sentryshot
./sentryshot --help
```
Help wanted for proper install instructions.
## Build From Source
#### Dependencies
- [rust](https://www.rust-lang.org/tools/install) 1.65+
- [ffmpeg](https://ffmpeg.org/download.html)
- [tflite](https://www.tensorflow.org/lite/guide/build_cmake#build_tensorflow_lite_c_library)
- git
```
# Clone the repository.
git clone --branch master https://codeberg.org/SentryShot/sentryshot.git
cd sentryshot
# Build
./misc/utils build-target x86_64
# Make a tarball.
tar -czvf "./build/sentryshot-x86_64.tar.gz" -C "./build/x86_64" .
```
[Tarball Install](#tarball-install)