-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·27 lines (26 loc) · 1.04 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -uex pipefail
apk update && apk upgrade --no-cache
for apkPackage in $(yq '.apk[]' < /tmp/packages.yml); do
apk add --update --no-cache "$apkPackage"
done
for cpanPackage in $(yq '.cpan[]' < /tmp/packages.yml); do
cpan -I "$cpanPackage"
done
curl -LJ https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o /tmp/uplink_linux_amd64.zip
unzip /tmp/uplink_linux_amd64.zip -d /usr/local/bin/
chmod 755 /usr/local/bin/uplink
## make bash default shell for root and symlink to /usr
usermod --shell /bin/bash root
ln -s /bin/bash /usr/bin/bash
ln -s /bin/cat /usr/bin/cat
##FIX: distrobox-host-exec runs with #!/usr/bin/sh but Alpine does not have a symlink
if [ ! -x /usr/bin/sh ]; then
ln -sf "$(readlink -f /bin/sh)" /usr/bin/sh
fi
##FIX: tmux bash completion (Alpine ships without it)
curl -LJ https://src.fedoraproject.org/rpms/tmux/raw/rawhide/f/bash_completion_tmux.sh -o /usr/share/bash-completion/completions/tmux
#Install mutt-wizard
git clone https://github.com/LukeSmithxyz/mutt-wizard
cd mutt-wizard
make install