diff options
author | Loïc Hoguin <[email protected]> | 2019-06-29 11:00:36 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-06-29 11:00:36 +0200 |
commit | dba0d2df42cc304e54a1f9781f1c5270931754b8 (patch) | |
tree | 29fce7f77729f9cfe1b2b8e3481ec7718a062255 | |
parent | 73c263e194574d3d974fae7846a71961e8b4499d (diff) | |
download | ci-dba0d2df42cc304e54a1f9781f1c5270931754b8.tar.gz ci-dba0d2df42cc304e54a1f9781f1c5270931754b8.tar.bz2 ci-dba0d2df42cc304e54a1f9781f1c5270931754b8.zip |
Update alpine packages
I have not tested the apk_install_erlang() function
but it should be doing roughly what we want. Test it
on the next rebuild.
-rwxr-xr-x | alpine.sh | 5 | ||||
-rw-r--r-- | ci.d/apk | 10 |
2 files changed, 13 insertions, 2 deletions
@@ -8,9 +8,9 @@ DIST=alpine RELEASE=edge ARCH=amd64 PACKAGES="pcre ca-certificates openssl-dev ncurses-dev zlib-dev \ - openssh bash curl zsh vim sudo erlang erlang-crypto erlang-dev git build-base autoconf gawk \ + openssh bash curl zsh vim sudo git build-base autoconf gawk \ go dep shadow rsync sdl2-dev sdl2_image-dev sdl2_ttf-dev p7zip \ - cppcheck clang-analyzer groff parallel mercurial subversion" + cppcheck clang-analyzer groff parallel mercurial subversion grep unzip" for f in ci.d/*; do source "$f"; done @@ -20,6 +20,7 @@ lxc_create $DIST $RELEASE $ARCH lxc_wait_for_ip apk_upgrade apk_install $PACKAGES +apk_install_erlang buildkite_install $DIST $BUILDKITE_TOKEN ssh_copy_host_key ssh_copy_host_key buildkite-agent /home/buildkite-agent @@ -9,3 +9,13 @@ apk_upgrade() { apk_install() { lxc_do apk add "$@" } + +# apk_install_erlang +# +# Necessary because erlang has been split up into +# a zillion silly packages. +apk_install_erlang() { + VSN=`lxc_do apk search -x erlang | cut -d- -f 2-` + ERLANG=`lxc_do apk search erlang | sed s/-$VSN//` + lxc_do apk add $ERLANG +} |