From 2fd56554571bd47a44b19ed191a6bf09fe344ecb Mon Sep 17 00:00:00 2001 From: "Balasankar \"Balu\" C" Date: Wed, 13 Nov 2019 11:43:24 +0530 Subject: [PATCH] Add CentOS 8 image Signed-off-by: Balasankar "Balu" C --- .gitlab-ci.yml | 2 ++ Dockerfile.omnibus-gitlab-centos8 | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile.omnibus-gitlab-centos8 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d8920f..139cd76 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,6 +84,7 @@ gitlab-puppeteer test: *test_build omnibus-gitlab-bionic test: *test_build omnibus-gitlab-centos6 test: *test_build omnibus-gitlab-centos7 test: *test_build +omnibus-gitlab-centos8 test: *test_build omnibus-gitlab-jessie test: *test_build omnibus-gitlab-opensuse42.3 test: *test_build omnibus-gitlab-opensuse15.0 test: *test_build @@ -135,6 +136,7 @@ gitlab-puppeteer: *build_and_deploy omnibus-gitlab-bionic: *build_and_deploy omnibus-gitlab-centos6: *build_and_deploy omnibus-gitlab-centos7: *build_and_deploy +omnibus-gitlab-centos8: *build_and_deploy omnibus-gitlab-jessie: *build_and_deploy omnibus-gitlab-opensuse42.3: *build_and_deploy omnibus-gitlab-opensuse15.0: *build_and_deploy diff --git a/Dockerfile.omnibus-gitlab-centos8 b/Dockerfile.omnibus-gitlab-centos8 new file mode 100644 index 0000000..50ca43f --- /dev/null +++ b/Dockerfile.omnibus-gitlab-centos8 @@ -0,0 +1,22 @@ +FROM centos:centos8 + +RUN yum update -y -q \ + && yum groupinstall -y "Development Tools" \ + && yum install -y \ + gcc gcc-c++ git make curl zlib-devel openssl-devel glibc-locale-source \ + && yum clean all + +ENV LANG en_US.UTF-8 +ENV LC_ALL en_US.UTF-8 +RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8 + +ENV RUBY_VERSION 2.6.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd "/tmp/ruby-${RUBY_VERSION}" \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install \ + && cd / \ + && rm -rf "/tmp/ruby-${RUBY_VERSION}" \ + && gem install bundler --no-document