c4k-website/infrastructure/build/image/resources/install.sh

25 lines
571 B
Bash
Raw Normal View History

#!/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 hugo
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