Add local nginx repository
This commit is contained in:
parent
cd4591501f
commit
b556ee3c30
8
_build/etc/nginx/conf.d/apkrepo.conf
Normal file
8
_build/etc/nginx/conf.d/apkrepo.conf
Normal file
@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen [::]:80;
|
||||
server_name repo.spotter.cz;
|
||||
|
||||
location / {
|
||||
root /srv/build;
|
||||
}
|
||||
}
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user