From b556ee3c306611aa015242231c1050d893ec1130 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 2 Jun 2019 11:30:53 +0200 Subject: [PATCH] Add local nginx repository --- _build/etc/nginx/conf.d/apkrepo.conf | 8 ++++++++ _build/install-toolchain.sh | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 _build/etc/nginx/conf.d/apkrepo.conf 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