summaryrefslogtreecommitdiffstats
path: root/packer
AgeCommit message (Collapse)AuthorFilesLines
2017-08-10Add openSuSE imageVanessa Rene Valderrama3-2/+102
Configure baseline and basebuild scripts to build openSuSE packer images Configure Jenkins keys for openSuSE Add openSuSE as a Jenkins system type Change-Id: I69bdd265773fa9c50753179b0b3f0d214490b28e Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-03-31Increase lock check verbosityC.J. Collier1-5/+7
* print FILE/USER/PID/ACCESS/COMMAND for each lock * use ${i} instead of ${WASLOCKED} to determine whether file lock was taken * add a 1s back-off if lock had been taken * use TERM=dumb to avoid tput noise when there is no tty * add /var/cache/apt/archives/lock to list of lock files Change-Id: Ib04f67892581a7bf33125d485fcc69044d3d1c5d Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org> Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
2017-03-30Correct lock check failuresC.J. Collier1-2/+10
* fuser can take multiple filenames and return the lock status atomically - This eliminates a race condition we were experiencing * if the file was locked, run the lock check again. Otherwise, just run apt-get directly Change-Id: I00eb6e0fa6bdf223eadfcade05f4a4f00745750f Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
2017-03-27Merge "Python API: Missing python-all package needed by .deb packaging."Ed Warnicke1-2/+3
2017-03-22Install pypcap package for CentOSVanessa Rene Valderrama1-0/+2
The pypcap package required a newer version of pip to install. This change upgrades the version of pip and installs the pypcap package which is required for CSIT jobs. Change-Id: Iaa23da629396225c27f0ecd3b64615fe105ce9e2 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-03-22Python API: Missing python-all package needed by .deb packaging.Ole Troan1-2/+3
Change-Id: I02f6d541e0171bc680119fa0da26fac2db76de73 Signed-off-by: Ole Troan <ot@cisco.com>
2017-03-11Python: Add support for RPM Python macros.Ole Troan1-1/+1
Change-Id: I3c43199a081bee515b7103a1f2a5db3b84e2500c Signed-off-by: Ole Troan <ot@cisco.com>
2017-03-09Install packagecloudVanessa Rene Valderrama1-0/+3
Updating images to install packagecloud for FD.io to use packagecloud as an alternative to Nexus for staging repos because Nexus does not create package metadata for yum/apt staging repos which is required for testing. Change-Id: I2396b78f5f8b1c72c569e8c230c28ee720b33936 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-03-08Python API: Add dependencies on CFFI / libffi.Ole Troan1-1/+1
Change-Id: Id0a87ef7599f49d6d553bb1199f0f19518ba7c82 Signed-off-by: Ole Troan <ot@cisco.com>
2017-02-28Add CentOS packagesVanessa Rene Valderrama1-12/+22
TLDK and CSIT teams requested additional packages be added to the CentOS image. TLDK - scapy CSIT - libffi-devel CSIT request was due to errors when upgrading cryptography. I added python-cffi & libxml2 as well. Change-Id: I04c2f4f4fcd390a1d5b2877b5ec99894bd65a98e Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-02-23Enable HugepagesVanessa Rene Valderrama1-0/+7
TLDK project requires Hugepages to be enabled. This change enables Hugepages and sets the size to 128. Change-Id: Ie582cdf5ab2c766da268c0a39ed47bc45f31058c Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-02-16Merge "Add hashicorp's packer 0.12.2 to basebuild"Vanessa Rene Valderrama1-0/+8
2017-02-15Add hashicorp's packer 0.12.2 to basebuildAnil Belur1-0/+8
Change-Id: I3bc41f53d5e36fab5fe475aac67f1406d12d4075 Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
2017-02-14Also wait for apt-get update list lockRudy Grigar1-1/+1
Change-Id: I56c644e4862736271ac1c991d3a9d60bfbdf5505 Signed-off-by: Rudy Grigar <rgrigar@linuxfoundation.org>
2017-02-14Quotes required to avoid interpretationRudy Grigar1-1/+1
Change-Id: I8bbbf6e9d23841c58bd0acf4c4b36c9ef8baaa85 Signed-off-by: Rudy Grigar <rgrigar@linuxfoundation.org>
2017-02-13Additional fixes for dpkg lock issuesRudy Grigar1-0/+25
This adds a wrapper around apt-get to loop until the lock is available for dpkg operations. Change-Id: I85d3b1f1e6992a046d021a192997f307c7ca4785 Signed-off-by: Rudy Grigar <rgrigar@linuxfoundation.org>
2017-02-13Add dot separator for systemctl unitsAndrew Grimberg1-1/+1
Change-Id: Ide382ac6d6e7fe2b041aeca6222380183c8bbff1 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
2017-02-13Bring in fail build and stomp on Ubuntu auto-upAndrew Grimberg1-27/+66
Bring in changes to fail the build if something does not properly install or has an error during the build. Also, forcibly disable and mask out the apt-daily service and timer on Ubuntu 16.04 and hopefully destroy any cron related to it for 14.04 Change-Id: I301d9c696c3d166ecece8060d415dd931d446335 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
2017-02-13Disable auto updates on UbuntuVanessa Rene Valderrama2-34/+31
Modifying the disable auto updates on Ubuntu to use perl instead of sed because the sed -ine is creating new files ending in ne. Modifying where the apt-get upgrade and updates occur to resolve dpkg/locks which are causing VPP & NSH_SFC builds to fail. Change-Id: I5a81d72df7b758bd8287c54909386114c33ed730 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-02-06Add various packages to Packer imagesVanessa Rene Valderrama1-6/+18
Modifying Packer images to include various packages required by various FD.io projects. New images have been tested on the Jenkins sandbox. Change-Id: I236804da3cbf4ddf33812e7714e66250d55a1e60 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2017-02-02Add pkg-config to base imagesEd Warnicke1-1/+1
Change-Id: I75b81064ef46348a2afef832c2dec98cf41de8f8 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2017-02-01Merge "Add git-review to base system"Vanessa Rene Valderrama1-2/+2
2017-01-31Merge "Add jq to baseline"Vanessa Rene Valderrama1-0/+8
2017-01-19Disable automatic system updates on UbuntuAndrew Grimberg1-9/+2
The cloud-init package has a hard dependency on the automatic update mechanism in Ubuntu 14.04. As removing this causes systems to not be accessible when booted, instead we're just going disable all of the options for the automatic update system Change-Id: I209dabe5deeda0fa30cfea918fc4feb4948cc0df Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
2017-01-19Add git-review to base systemThanh Ha1-2/+2
Having git-review on the system is extremely useful for downloading Gerrit changes easily using the Review ID. Change-Id: I5833d8d3bf8f76f2dc0895e599e3b6d37f30935c Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-01-19Add jq to baselineThanh Ha1-0/+8
This package is useful on all vm types so install it everywhere. Change-Id: Ic99cc1e5dcb90dd21e95a3f1884bd7b3f662b2a3 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-01-06Add lcov package to Ubuntu imagesVanessa Rene Valderrama1-1/+1
Add lcov package to the Ubuntu image to prevent dependency resolution issues during builds. Change-Id: I835945aeffa7a46c1a136486b3d8d804fa2b7727 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
2016-12-21Update Ubuntu baseline to disable daily auto-updateAndrew Grimberg2-0/+12
* Updates the Ubuntu baseline build section to forcibly disable the default daily system package update for security patches * Make sure that the provision/basebuild directory that the build template is using exists with a .dummy placeholder Change-Id: Iffd493c3cfb6263d32d65d06e0e20a3bdbc58926 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
2016-12-16Convert Vagrant to PackerVanessa Rene Valderrama12-0/+522
This converts all of the in use Vagrant definitions to Packer and allows us to build images and allow automated testing of images. Change-Id: Ic87cce4aa674146952efad325a42b095086426d0 Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>