All Projects → ogarcia → docker-polaris

ogarcia / docker-polaris

Licence: GPL-3.0 license
Small docker of Polaris based on Alpine Linux

Programming Languages

shell
77523 projects
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-polaris

Polaris
Polaris is a Face recognition attendance system .
Stars: ✭ 211 (+904.76%)
Mutual labels:  polaris
RandomX OpenCL
RandomX OpenCL implementation
Stars: ✭ 26 (+23.81%)
Mutual labels:  polaris
shopify-node-react-app
Shopify paid app in Node.js & React.js that connects to a store and lets merchants select products to automatically discount them in the Shopify admin interface.
Stars: ✭ 29 (+38.1%)
Mutual labels:  polaris
PolarisBiosEditor
Polaris Bios Editor PBE 1.7.6
Stars: ✭ 129 (+514.29%)
Mutual labels:  polaris
Polaris
Polaris - A version of Spacestation13, forked from Baystation12.
Stars: ✭ 65 (+209.52%)
Mutual labels:  polaris
LawRun
Kernel source code (LawRun Kernel) for xiaomi sdm845 | Pocophone f1 (beryllium), Mi 8 (dipper), Mi Mix 2s (polaris) | You can fork and enjoy.
Stars: ✭ 22 (+4.76%)
Mutual labels:  polaris
polaris
Service Governance Center for Distributed and Microservice Architecture
Stars: ✭ 1,062 (+4957.14%)
Mutual labels:  polaris
polaris.py
A multiplatform Python bot using plugins!
Stars: ✭ 19 (-9.52%)
Mutual labels:  polaris
create-shopify-app
Create Shopify App With JWT Authentication using NodeJs, React, Shopify Polaris and MongoDb
Stars: ✭ 58 (+176.19%)
Mutual labels:  polaris

Polaris docker CircleCI

(c) 2018-2022 Óscar García Amor

Redistribution, modifications and pull requests are welcomed under the terms of GPLv3 license.

Polaris is a music streaming application, designed to let you enjoy your music collection from any computer or mobile device.

This docker packages Polaris under Alpine Linux, a lightweight Linux distribution.

Visit Docker Hub or Quay to see all available tags.

Run

To run this container, simply exec.

docker run -t -d \
  --name=polaris \
  -p 5050:5050 \
  ogarcia/polaris

This start polaris and publish the port to host. You can go to http://localhost:5050 to see it running.

Warning: this is a basic run, all data will be destroyed after container stop and rm.

Volumes

This container exports three volumes.

  • /music: for store you music collection
  • /var/cache/polaris: polaris cache
  • /var/lib/polaris: polaris data like database

You can exec the following to mount your music dir, store cache and data.

docker run -t -d \
  --name=polaris \
  -p 5050:5050 \
  -v /my/music/directory:/music \
  -v /my/polaris/cache:/var/cache/polaris \
  -v /my/polaris/data:/var/lib/polaris \
  ogarcia/polaris

Take note that you must create before the cache directory /my/polaris/cache and data directory /my/polaris/data and set ownership to UID/GID 100 in both, otherwise the main proccess will crash.

mkdir -p /my/polaris/cache /my/polaris/data
chown -R 100:100 /my/polaris/cache /my/polaris/data

WARNING: Breaking changes in 0.13.x. The database is stored by default in /var/lib/polaris/db.sqlite. You must move your database from /my/polaris/data/.local/share/polaris to /my/polaris/data. The cache files are stored now in /var/cache/polaris.

Environment variables

The run-polaris command can use the following environment variables.

Variable Used for Default value
POLARIS_PORT Define listen port 5050
POLARIS_CONFIG Optional config file location
POLARIS_DB Optional database file location
POLARIS_CACHE_DIR Optional cache directory location /var/cache/polaris
POLARIS_PIDFILE Optional pid file location (see note)
POLARIS_LOGFILE Optional log file location (see note)
POLARIS_LOGLEVEL Optional log level between 0 (off) and 3 (debug)
POLARIS_DAEMONIZE Run polaris as daemon in docker (see note) false

Note: both POLARIS_PIDFILE and POLARIS_LOGFILE only apply if you set POLARIS_DAEMONIZE as true. This only have sense if you want use this image as base of your own modified one and you want run anything else.

Shell run

If you can run a shell instead run-polaris command, simply do.

docker run -t -i --rm \
  --name=polaris \
  -p 5050:5050 \
  -v /my/music/directory:/music \
  -v /my/polaris/data:/var/lib/polaris \
  --entrypoint=/bin/sh \
  ogarcia/polaris

Please note that the --rm modifier destroy the docker after shell exit.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].