Sign inSign up

rtomac/gmvault

By rtomac

•Updated over 5 years ago

Gmvault running on Alpine (multi-arch)

Image
1

1.4K

rtomac/gmvault repository overview

⁠Overview

Gmvault⁠ running on Alpine (multi-arch).

Inspired by other good gmvault images (e.g. tianon/gmvault⁠), but with multi-arch support and a few additional features to solve minor pain points.

Features:

  • Multi-arch image, including support for arm (Raspberry Pi!)
  • Ability to inject conf file changes via environment variables
  • Pinned to Python 2 (more stable/tested for gmvault)
  • Works around a known 1.9.1 bug that overwrites conf file changes

⁠Usage

Provide gmvault args directly as command args:

docker run -it --rm \
    rtomac/gmvault sync --type quick [email protected]

Pass in environments variables to override conf file settings (see Environment Variables section below):

docker run -it --rm \
    -e SYNC__QUICK_DAYS=7 \
    -e GOOGLEOAUTH2__GMVAULT_CLIENT_ID="myclientid" \
    -e GOOGLEOAUTH2__GMVAULT_CLIENT_SECRET="mysecret" \
    rtomac/gmvault sync --type quick [email protected]

Or, directly bind mount a gmvault_defaults.conf file:

docker run -it --rm \
    -v ${HOME}/.gmvault/gmvault_defaults.conf:/root/.gmvault/gmvault_defaults.conf \
    rtomac/gmvault sync --type quick [email protected]

See Gmvault docs⁠ for more information on gmvault usage and options.

⁠Environment Variables

The following environment variables can be provided to the container to override conf file settings.

Env variableConf sectionConf property
SYNC__QUICK_DAYSSyncquick_days
RESTORE__QUICK_DAYSRestorequick_days
GENERAL__LIMIT_PER_CHAT_DIRGenerallimit_per_chat_dir
GENERAL__ERRORS_IF_CHAT_NOT_VISIBLEGeneralerrors_if_chat_not_visible
GENERAL__NB_MESSAGES_PER_BATCHGeneralnb_messages_per_batch
GENERAL__NB_MESSAGES_PER_RESTORE_BATCHGeneralnb_messages_per_restore_batch
GENERAL__RESTORE_DEFAULT_LOCATIONGeneralrestore_default_location
GENERAL__KEEP_IN_BINGeneralkeep_in_bin
GENERAL__ENABLE_IMAP_COMPRESSIONGeneralenable_imap_compression
GOOGLEOAUTH2__GMVAULT_CLIENT_IDGoogleOauth2gmvault_client_id
GOOGLEOAUTH2__GMVAULT_CLIENT_SECRETGoogleOauth2gmvault_client_secret

⁠Development

Source repository:
http://github.com/rtomac/docker-gmvault⁠

⁠Build and test

make test

⁠Release to Docker Hub

make release

See targets and variables in Makefile⁠ for more options.

⁠License

MIT License

Tag summary

Content type

Image

Digest

Size

19.9 MB

Last updated

over 5 years ago

docker pull rtomac/gmvault