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
|
|
|
|
apt-get install -qqy unzip rsync jq imagemagick curl
|
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
|
|
|
|
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|