Skip to content

linickx/docker-spideroak

Repository files navigation

docker-spideroak

A Docker Container for SpiderOakONE

AKA: Yet another SpiderOakOne Container, a version with a few personal preferences 😝

Images

This image comes in a few flavours

Security

The RedHat container build also will fail if the GPG Key/Signature of the RPM fails. The Debian container imports the GPG Key into the APT Source for verification. ... both measures should help prevent any supply chain attacks.

Although the container starts as root, SpiderOak runs rootless as a non-root account. The initial root and drop-down allows you to set the UID and Group with environment variables.

Simplicity

This container can get up and running with 1x command...

docker run -ti -e USERNAME="nick" -e PASSWORD="password" -v /home/nick/important_files:/home/important_files linickx/spideroak-ubi8

Although, you don't have to do it like that, this will also work:

docker run -ti linickx/spideroak-ubi8

However, you will need to connect to a shell to enter your credentials, and of course no external files can be backed up.

Notes

The docs directory has an example docker-compose, both a simple and more advanced version.

Credential Security

Environment variables can be exposed on docker hosts with the inspect command, SpiderOak doesn't need the password each time, after initial setup everything is stored in the /spideroak/.config directory.

If you really don't like ENV VARS then you have a couple of further choices, either get a shell and run the setup command manually, or create & mount /spideroak/config.json manually, run the setup as the SpiderOak user, like this:

su - spideroak -c "SpiderOakONE --setup=config.json"

SpiderOak CLI Parameters

By default, SpiderOakOne starts with --headless if you want to do something else like --batchmode then set the environment variable $HEADLESS_PARAMETERS

Quit for One-Shot Parameters

There are CLI commands you may wish to run just once, like --repar or --rebuild-reference-database depending on your docker/Podman/SystemD setup you may find the container is accidentally restarted after it is run and therefore runs again, and again, and again.

To help prevent this you can set the environment variable $QUIT to any value (yes, true, whatever), this will create a file /spideroak/.config/SpiderOakONE/.docker.quit causing the container to quit when it starts up. By default the container will wait for 600 seconds before exiting allowing some time to connect a terminal if needed. If you wish to extend the sleep time set the environment variable $QUIT_SLEEP to whatever number of seconds you need.

When you want the container to go back to normal operations, remove /spideroak/.config/SpiderOakONE/.docker.quit.

Delayed Start-up

Starting SpiderOak can be quite resource intensive, setting the environment variable $START_SLEEP to 60 will delay SpiderOak from starting for 60s, this allows the container to start quickly without hammering your CPU/Memory straight away.

About

A Docker Container for SpiderOakONE

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages