You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
516 B
20 lines
516 B
#! /bin/sh
|
|
|
|
# exit if a command fails
|
|
set -eo pipefail
|
|
|
|
# install s3cmd
|
|
apk update
|
|
apk add --no-cache python py-pip py-setuptools git ca-certificates
|
|
pip install python-magic
|
|
git clone https://github.com/s3tools/s3cmd.git /tmp/s3cmd
|
|
cd /tmp/s3cmd
|
|
python setup.py install
|
|
apk del git
|
|
rm -rf /tmp/s3cmd
|
|
|
|
# install go-cron
|
|
apk add --no-cache curl
|
|
curl -L --insecure https://github.com/odise/go-cron/releases/download/v0.0.6/go-cron-linux.gz | zcat > /usr/local/bin/go-cron
|
|
chmod u+x /usr/local/bin/go-cron
|
|
apk del curl
|