Sign inSign up

malovec/ex2-ultra

By malovec

•Updated almost 5 years ago

Docker images for ARM based systems (especially for Western Digital My Cloud EX2 Ultra NAS).

Image
0

229

malovec/ex2-ultra repository overview

Maintainer contact: here⁠

⁠Contents

⁠ Cron Server

⁠Info

Cron Server enables you to schedule tasks/scripts to be run on desired time.

Running container returns healthy/unhealthy running status every 30 minutes.

⁠How to create container

$ docker create                                                   \
           --name cron-server                                     \
           --restart always                                       \
           -v /path/to/docker_crontab.txt:/docker_crontab.txt     \
           -v /path/to/cron_scripts:/CRON_SCRIPTS                 \
           malovec/ex2-ultra:cron-server-1.0

NOTE: Make sure to use path /CRON_SCRIPTS/my_script.sh in your docker_crontab.txt in case you are scheduling your custom provided my_script.sh script.

⁠How to run container
$ docker start cron-server
⁠Example of docker_crontab.txt file

Description: Run my_script.sh every day at 3am

# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  *  command to be executed
# *  *  *  *  *  command --arg1 --arg2 file1 file2 2>&1

0 3 * * * /CRON_SCRIPTS/my_script.sh >/dev/null 2>&1

⁠ Calibre Server

⁠Info

Calibre Server (OPDS books server) for your ebooks (EPUB, MOBI, etc.), pdf, comics and more.

More information about Calibre server here⁠.

⁠How to create container

IMAGE="malovec/ex2-ultra:calibre-server-1.0"
SSL_PATH="/etc/ssl-certs"
PARAMS="--enable-local-write --ssl-certfile=${SSL_PATH}/fullchain.pem --ssl-keyfile=${SSL_PATH}/privkey.pem --userdb /opt/calibre/.config/calibre/users.sqlite --enable-auth"
LIBRARY_PATH="/Library"

$ docker create                                                                                          \
           --name calibre-server                                                                         \
           --restart always                                                                              \
           -p 61337:8080                                                                                 \
           -e TZ=Europe/Prague                                                                           \
           -v /path/to/ssl-certs:/etc/ssl-certs                                                          \
           -v /path/to/ComicsServer/.config:/opt/calibre/.config                                         \
           -v /path/to/CalibreLibrary:${LIBRARY_PATH}                                                    \
           ${IMAGE}                                                                                      \
           ${PARAMS}                                                                                     \
           ${LIBRARY_PATH}

NOTES:

  • If you do not have SSL certificates remove --ssl-certfile and --ssl-keyfile options from your PARAMS definition.
  • Place your Calibre Library to your ${LIBRARY_PATH} directory
⁠How to run container
$ docker start calibre-server
⁠Open Calibre Server

Open in browser: https://localhost:61337⁠

Tag summary

Content type

Image

Digest

Size

58.7 MB

Last updated

almost 5 years ago

docker pull malovec/ex2-ultra:cron-server-1.0