diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-04-06 23:16:46 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-04-06 23:16:46 +0000 |
commit | 0d620afb717804bb2e6f07bcc84a471f51e84d19 (patch) | |
tree | 40165e441eab91e0f26797718708879c5440bc41 /files/usr/local/bin/setup.sh | |
parent | 32a5fa40e4a12b1fa0cfc5871935719a80fcdb07 (diff) | |
download | alpine-drone-ci-0d620afb717804bb2e6f07bcc84a471f51e84d19.tar.bz2 alpine-drone-ci-0d620afb717804bb2e6f07bcc84a471f51e84d19.tar.xz |
scripts: use only a single copy
Diffstat (limited to 'files/usr/local/bin/setup.sh')
-rwxr-xr-x | files/usr/local/bin/setup.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/files/usr/local/bin/setup.sh b/files/usr/local/bin/setup.sh new file mode 100755 index 0000000..9e80a82 --- /dev/null +++ b/files/usr/local/bin/setup.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -eu + +release=${1:-edge} +echo "http://dl-cdn.alpinelinux.org/alpine/$release/main" > /etc/apk/repositories + +apk -U upgrade -a +apk add alpine-sdk lua-aports pigz +rm -rf /var/cache/apk/* + +# use buildozer for building +adduser -D buildozer +adduser buildozer abuild +adduser buildozer wheel + +# default distfiles location +install -d -g abuild -m 775 /var/cache/distfiles |