matomo/rootfs/usr/local/bin/container-setup
Knut Ahlers b49906031d
Initial version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-06-09 12:51:46 +02:00

31 lines
548 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
url="https://builds.matomo.org/piwik-${MATOMO_VERSION}.tar.gz"
packages=(
php7-dom
php7-gd
php7-iconv
php7-json
php7-ldap
php7-mbstring
php7-mysqli
php7-opcache
php7-pdo_mysql
php7-pecl-apcu
php7-pecl-redis
php7-simplexml
php7-xml
php7-zip
)
function step() {
echo "$@..." >&2
}
step "Downloading matomo release ${MATOMO_VERSION}"
curl -sSfLo /opt/matomo.tgz "${url}"
echo "${MATOMO_CHECKSUM} /opt/matomo.tgz" | sha256sum -c
step "Installing required packages"
apk --no-cache add "${packages[@]}"