Packages not in mainline version or version is outdated
# manully setup# setup key - or use --allowed-untrusted when apk add
VER=$(egrep -o '^\d+[.]\d+' /etc/alpine-release)
(cd /etc/apk/keys; sudo curl -LO https://repo.wener.me/alpine/[email protected] )
# add repoecho https://repo.wener.me/alpine/v${VER}/community | sudo tee -a /etc/apk/repositories
echo https://repo.wener.me/alpine/v${VER}/main | sudo tee -a /etc/apk/repositories
# setup by ansible for a lot of hosts - https://github.com/wenerme/alpine-admin
ansible-playbook adhoc.yaml -e 'task=wener-repo' -l myhost
dev
# setup builder env by https://github.com/wenerme/alpine-admin # builder will accessable throw port 2222 account is admin:admin
ansible-playbook adhoc.yaml -e 'role=dev task=builder-create facts=true host_data_path=/data/build' -l hostwithdocker
# setup build by docker run
WD=$PWD
docker run -d \
-v $WD:/opt/build \
-v $WD/packages:/home/admin/packages \
-v $WD/home:/home/admin \
-v $WD/distfiles:/var/cache/distfiles \
-v $WD/cache:/etc/apk/cache \
-p 2222:22 \
--name build-server wener/app:builder
#
docker exec build-server sudo chown admin:admin /home/admin /opt/build
# enter the build server
ssh [email protected] -p 2222
# or
docker exec -it -u admin -w /opt/build build-server bash
# copy build files
rsync -avz packages/ alpine/v3.11/