Files
peertube/abra.sh
mirsal 31520c2cb1 fix: Copy the client assets over to a named volume at runtime
This commit makes the entrypoint copy the client's dist files to
the mountpoint of the app-assets named volume. That way, changed
files are made available to the nginx container when the peertube
image gets updated

Closes: #8
2021-07-16 21:19:03 +00:00

27 lines
526 B
Bash

# shellcheck disable=SC2034,SC2145
export NGINX_CONFIG_VERSION=v2
export APP_ENTRYPOINT_VERSION=v2
sub_npm() {
abra__service_="app"
ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
sub_app_run bash -c "\
export PEERTUBE_DB_PASSWORD=\$(cat /run/secrets/db_password) && \
npm run \"$@\" \
"
}
sub_prune() {
sub_npm prune-storage
unsilence
success "Storage pruned - don't forget to restart your Peertube instance!"
}
sub_regen_thumb() {
sub_npm regenerate-thumbnails
unsilence
}