1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
20 sudo apt-get upgrade -y
21 sudo apt-get install -y rsync python python-yaml dpkg-dev openssl
24 fuseiso ${ISOCACHE} tmpiso
25 cp tmpiso/ubuntu/pool/main/f/fuel-createmirror/fuel-createmirror_6.1*.deb .
28 sudo dpkg -i fuel-createmirror_6.1*.deb
30 sudo mkdir -p /var/www
31 sudo su - -c /opt/fuel-createmirror-6.1/fuel-createmirror
32 sudo chmod -R 755 /var/www/nailgun
33 cp -Rp /var/www/nailgun .
38 # Deliberately not cleaning nailgun directory to speed up multiple builds
39 @rm -rf ../release/opnfv/nailgun fuel-createmirror_6.1*.deb
43 @rm -Rf ../release/opnfv/nailgun
44 @mkdir -p ../release/opnfv
45 @cp -Rp nailgun ../release/opnfv/nailgun