diff --git a/_build/etc/nginx/conf.d/apkrepo.conf b/_build/etc/nginx/conf.d/apkrepo.conf new file mode 100644 index 0000000..1b91492 --- /dev/null +++ b/_build/etc/nginx/conf.d/apkrepo.conf @@ -0,0 +1,8 @@ +server { + listen [::]:80; + server_name repo.spotter.cz; + + location / { + root /srv/build; + } +} diff --git a/_build/install-toolchain.sh b/_build/install-toolchain.sh index 66f7c2c..35b1a22 100755 --- a/_build/install-toolchain.sh +++ b/_build/install-toolchain.sh @@ -26,6 +26,11 @@ cp usr/bin/fix-apk /usr/bin/fix-apk cp usr/bin/lxc-build /usr/bin/lxc-build cp usr/bin/lxc-pack /usr/bin/lxc-pack +# Prepare local APK repository +cp etc/nginx/conf.d/apkrepo.conf /etc/nginx/conf.d/apkrepo.conf +echo "172.17.0.1 repo.spotter.cz" >>/etc/hosts +service nginx reload + # Supply abuild key # echo '/srv/build/repokey.rsa' | abuild-keygen