Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(SIMP-4989) Fix EL7 rpm_docker builds (#529)
* Moved the installation of openssl_devel up in the stack so that it did not attempt to update incorrectly. * Split out the EL tests since we had to run the separately anyway and made the nodesets Travis aware. * Removed the no longer necessary travis_ci.yml * Updated the rhel nodesets to fail if the registry is not hooked up correctly * Fixed docker cp * Removed non-functional rhel nodesets * Removed deps checkout to try and clear cache * Changed to more reliable keyserver
- Loading branch information
1 parent
547cf49
commit 8a189b2
Showing
9 changed files
with
210 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
el7.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
HOSTS: | ||
el6-build-server: | ||
roles: | ||
- primary | ||
platform: el-6-x86_64 | ||
hypervisor: docker | ||
# This needs to be the *oldest* image of EL6 to preserve SELinux build compatibility | ||
image: centos:6.6 | ||
docker_preserve_image: true | ||
docker_image_commands: | ||
# The following 2 commands are intended to solve the problem in | ||
# https://github.com/CentOS/sig-cloud-instance-images/issues/15. | ||
# However, sometimes these commands cause yum problems, instead | ||
# of fixing yum problems. If the install of yum-plugin-ovl and | ||
# yum-utils fails, try commenting out these commands. | ||
- 'rm -f /var/lib/rpm/__db*' | ||
- 'yum clean all' | ||
# This is a hack to force an exit code of 0 | ||
# Sometimes yum-plugin-ovl will install dependencies, which will fail with rpmdb errors | ||
# since yum-plugin-ovl is not installed (chicken and egg) | ||
- 'yum install -y yum-plugin-ovl || :' | ||
- 'yum install -y yum-utils' | ||
|
||
# We only want to deal with the original distro packages | ||
- 'yum-config-manager --disable \*' | ||
- 'echo -e "[legacy]\nname=Legacy\nbaseurl=http://vault.centos.org/6.6/os/x86_64\ngpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-6\ngpgcheck=1" > /etc/yum.repos.d/legacy.repo' | ||
|
||
# Downgrade ALL THE THINGS!!! | ||
# ...except yum and python-urlgrabber, which yum-plugin-ovl has dependencies on | ||
- 'cd /root; yum -x yum -x python-urlgrabber downgrade -y *' | ||
|
||
# Work around bug https://bugzilla.redhat.com/show_bug.cgi?id=1217477 | ||
# This does *not* update the SELinux packages, so it is safe | ||
- 'yum --enablerepo=updates --enablerepo=base update -y git curl nss' | ||
|
||
# Getting rid of package conflicts | ||
- '\cp -a /etc/ssh /root' | ||
- 'yum install -y openssh-server' | ||
- '\cp -a /root/ssh /etc' | ||
|
||
# Add the SELinux Build dependencies | ||
- 'yum install -y selinux-policy-targeted selinux-policy-devel policycoreutils policycoreutils-python' | ||
|
||
# Allow the build user to perform privileged operations | ||
- "echo 'Defaults:build_user !requiretty' >> /etc/sudoers" | ||
- "echo 'build_user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" | ||
|
||
# Add the build user | ||
- 'useradd -b /home -G wheel -m -c "Build User" -s /bin/bash -U build_user' | ||
|
||
# No limits | ||
- 'rm -rf /etc/security/limits.d/*.conf' | ||
|
||
# simp build-deps | ||
- 'yum-config-manager --enable extras' | ||
- 'yum install -y epel-release' | ||
- 'yum install -y openssl util-linux rpm-build augeas-devel createrepo genisoimage git gnupg2 libicu-devel libxml2 libxml2-devel libxslt libxslt-devel rpmdevtools which ruby-devel rpm-sign acl' | ||
|
||
# RVM build-deps | ||
- 'yum install -y libyaml-devel glibc-headers autoconf gcc gcc-c++ glibc-devel readline-devel libffi-devel openssl-devel automake libtool bison sqlite-devel tar' | ||
|
||
# Puppet Deps | ||
- 'yum install -y ntpdate rubygems' | ||
|
||
# simp doc deps | ||
# These need to come last due to some strangeness that can occur with SCL | ||
- 'yum -y install centos-release-scl python-pip python-virtualenv fontconfig dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts dejavu-fonts-common libjpeg-devel zlib-devel' | ||
- 'yum-config-manager --enable rhel-server-rhscl-6-rpms' | ||
- 'yum -y install python27' | ||
|
||
# RVM | ||
- 'runuser build_user -l -c "gpg2 --keyserver hkp://pgp.mit.edu --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3"' | ||
- 'runuser build_user -l -c "curl -sSL https://get.rvm.io | bash -s stable"' | ||
- 'runuser build_user -l -c "rvm install 2.1.9 --disable-binary"' | ||
- 'runuser build_user -l -c "rvm use --default 2.1.9"' | ||
- 'runuser build_user -l -c "rvm all do gem install bundler --no-ri --no-rdoc"' | ||
|
||
# Add some gems that will drag along 90% of what the build requires | ||
- 'runuser build_user -l -c "rvm use default; gem install --no-ri --no-rdoc simp-rake-helpers"' | ||
- 'runuser build_user -l -c "rvm use default; gem install --no-ri --no-rdoc json"' | ||
- 'runuser build_user -l -c "rvm use default; gem install --no-ri --no-rdoc charlock_holmes"' | ||
- 'runuser build_user -l -c "rvm use default; gem install --no-ri --no-rdoc posix-spawn"' | ||
|
||
CONFIG: | ||
log_level: verbose | ||
type: aio | ||
<% unless ENV['TRAVIS'] -%> | ||
mount_folders: | ||
simp_core: | ||
host_path: './' | ||
container_path: '/simp-core' | ||
<% end -%> |
Oops, something went wrong.