diff --git a/Dockerfile.omnibus-gitlab-centos6 b/Dockerfile.omnibus-gitlab-centos6 index e5a039c..ae4bdcd 100644 --- a/Dockerfile.omnibus-gitlab-centos6 +++ b/Dockerfile.omnibus-gitlab-centos6 @@ -3,7 +3,7 @@ FROM centos:centos6 RUN yum update -y -q \ && yum groupinstall -y Development Tools \ && yum install -y \ - gcc gcc-c++ git make curl zlib-devel openssl-devel \ + devtoolset-6-gcc devtoolset-6-gcc-c++ git make curl zlib-devel openssl-devel \ && yum clean all ENV LANG en_US.UTF-8 @@ -20,3 +20,11 @@ RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.4/ruby-${RUBY_VERSION}.ta && cd / \ && rm -rf "/tmp/ruby-${RUBY_VERSION}" \ && gem install bundler --no-document + +# Make new GCC available inside the container by default +RUN echo $'\ +export CC=/opt/rh/devtoolset-6/root/usr/bin/gcc \n\ +export CPP=/opt/rh/devtoolset-6/root/usr/bin/cpp \n\ +export CXX=/opt/rh/devtoolset-6/root/usr/bin/c++ \n\ +' > /etc/profile.d/devtools.sh +