Simple init container to bootstrap any application data in k8s by storing a simple tar.gz
archive in selfhosted filebrowser.
FILEBROWSER_URL
(str): filebrowser urlFILEBROWSER_USER
(str): filebrowser userFILEBROWSER_PASSWORD
(str): filebrowser passwordNAME
(str): data bootstrap archive name without.tar.gz
extension
STRIP_ARCHIVE_ROOT
(bool): strip the top level directory inside the archive (default istrue
)DESTINATION
(str): destination path where to extract the data (default is/init
)FILEBROWSER_DIR
(str): filebowser directory where the archives are located (default isbootstrap
)
nix build '.#dockerImage'
docker load < result
docker run -it k8s-app-bootstrap:$HASH
For $HASH
see docker images
output.
NOTE: The nix build container is broken. The os.system
instructions do not work inside the container?! For now we use a standard Dockerfile to build the container