2022-09-23 13:39:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-12-21 22:24:20 +00:00
|
|
|
set -exo pipefail
|
2023-11-03 09:54:58 +00:00
|
|
|
|
2023-12-21 22:24:20 +00:00
|
|
|
function main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
upgradeSystem
|
2024-05-03 09:21:12 +00:00
|
|
|
apt-get install -qqy unzip rsync jq imagemagick curl
|
|
|
|
install-hugo-from-deb
|
2024-05-03 10:07:33 +00:00
|
|
|
install-go-from-tar
|
2022-09-23 13:39:17 +00:00
|
|
|
|
2023-12-21 22:24:20 +00:00
|
|
|
install -d /etc/lein/
|
|
|
|
install -m 0700 /tmp/entrypoint.sh /
|
|
|
|
install -m 0700 /tmp/functions.sh /usr/local/bin/
|
|
|
|
install -m 0700 /tmp/exclude.pattern /etc/
|
|
|
|
install -m 0700 /tmp/project.clj /etc/lein/
|
2022-09-27 15:06:21 +00:00
|
|
|
|
2023-12-21 22:24:20 +00:00
|
|
|
cd /etc/lein
|
|
|
|
lein deps
|
|
|
|
|
|
|
|
cleanupDocker
|
|
|
|
} > /dev/null
|
|
|
|
}
|
2022-09-27 15:06:21 +00:00
|
|
|
|
2023-12-21 22:24:20 +00:00
|
|
|
source /tmp/install_functions_debian.sh
|
2024-05-03 09:21:12 +00:00
|
|
|
source /tmp/functions.sh
|
2023-12-21 22:24:20 +00:00
|
|
|
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|