From 4b782f299b8595a2a111e01937ce5f874483e67b Mon Sep 17 00:00:00 2001 From: Balasankar C Date: Thu, 18 May 2017 14:23:29 +0000 Subject: [PATCH] Add Dockerfiles of images for omnibus-gitlab's tests --- .gitlab-ci.yml | 14 ++++++++++++++ Dockerfile.omnibus-gitlab-centos6 | 16 ++++++++++++++++ Dockerfile.omnibus-gitlab-centos7 | 16 ++++++++++++++++ Dockerfile.omnibus-gitlab-jessie | 15 +++++++++++++++ Dockerfile.omnibus-gitlab-opensuse42.1 | 17 +++++++++++++++++ Dockerfile.omnibus-gitlab-trusty | 15 +++++++++++++++ Dockerfile.omnibus-gitlab-wheezy | 15 +++++++++++++++ Dockerfile.omnibus-gitlab-xenial | 15 +++++++++++++++ 8 files changed, 123 insertions(+) create mode 100644 Dockerfile.omnibus-gitlab-centos6 create mode 100644 Dockerfile.omnibus-gitlab-centos7 create mode 100644 Dockerfile.omnibus-gitlab-jessie create mode 100644 Dockerfile.omnibus-gitlab-opensuse42.1 create mode 100644 Dockerfile.omnibus-gitlab-trusty create mode 100644 Dockerfile.omnibus-gitlab-wheezy create mode 100644 Dockerfile.omnibus-gitlab-xenial diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7abfc9..c0a08a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,13 @@ golang-1.5-git-2.8.4 test: *test_build golang-1.6-git-2.8.4 test: *test_build golang-1.7-git-2.8.4 test: *test_build golang-1.8-git-2.8.4 test: *test_build +omnibus-gitlab-centos6 test: *test_build +omnibus-gitlab-centos7 test: *test_build +omnibus-gitlab-jessie test: *test_build +omnibus-gitlab-opensuse42.1 test: *test_build +omnibus-gitlab-trusty test: *test_build +omnibus-gitlab-wheezy test: *test_build +omnibus-gitlab-xenial test: *test_build ruby-2.1-git-2.7-phantomjs-2.1: *build_and_deploy ruby-2.3-git-2.7-phantomjs-2.1: *build_and_deploy @@ -52,3 +59,10 @@ golang-1.5-git-2.8.4: *build_and_deploy golang-1.6-git-2.8.4: *build_and_deploy golang-1.7-git-2.8.4: *build_and_deploy golang-1.8-git-2.8.4: *build_and_deploy +omnibus-gitlab-centos6: *build_and_deploy +omnibus-gitlab-centos7: *build_and_deploy +omnibus-gitlab-jessie: *build_and_deploy +omnibus-gitlab-opensuse42.1: *build_and_deploy +omnibus-gitlab-trusty: *build_and_deploy +omnibus-gitlab-wheezy: *build_and_deploy +omnibus-gitlab-xenial: *build_and_deploy diff --git a/Dockerfile.omnibus-gitlab-centos6 b/Dockerfile.omnibus-gitlab-centos6 new file mode 100644 index 0000000..a7c8274 --- /dev/null +++ b/Dockerfile.omnibus-gitlab-centos6 @@ -0,0 +1,16 @@ +FROM centos:centos6 + +RUN yum update -y -q +RUN yum groupinstall -y Development Tools +RUN yum install -y \ + gcc git make curl zlib-devel openssl-devel + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler diff --git a/Dockerfile.omnibus-gitlab-centos7 b/Dockerfile.omnibus-gitlab-centos7 new file mode 100644 index 0000000..fdd607e --- /dev/null +++ b/Dockerfile.omnibus-gitlab-centos7 @@ -0,0 +1,16 @@ +FROM centos:centos7 + +RUN yum update -y -q +RUN yum groupinstall -y Development Tools +RUN yum install -y \ + gcc git make curl zlib-devel openssl-devel + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler diff --git a/Dockerfile.omnibus-gitlab-jessie b/Dockerfile.omnibus-gitlab-jessie new file mode 100644 index 0000000..c37780c --- /dev/null +++ b/Dockerfile.omnibus-gitlab-jessie @@ -0,0 +1,15 @@ +FROM debian:jessie + +RUN apt-get update -q \ + && apt-get install -y gcc git make curl zlib1g-dev libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler diff --git a/Dockerfile.omnibus-gitlab-opensuse42.1 b/Dockerfile.omnibus-gitlab-opensuse42.1 new file mode 100644 index 0000000..d177a3b --- /dev/null +++ b/Dockerfile.omnibus-gitlab-opensuse42.1 @@ -0,0 +1,17 @@ +FROM opensuse:42.1 + +#RUN zypper addrepo http://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_42.1/ develtools +RUN zypper -q -n --gpg-auto-import-keys update +RUN zypper -q -n in -t pattern devel_perl devel_basis +RUN zypper -q -n install \ + gcc git make curl zlib-devel libopenssl-devel + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler diff --git a/Dockerfile.omnibus-gitlab-trusty b/Dockerfile.omnibus-gitlab-trusty new file mode 100644 index 0000000..22df96f --- /dev/null +++ b/Dockerfile.omnibus-gitlab-trusty @@ -0,0 +1,15 @@ +FROM ubuntu:14.04 + +RUN apt-get update -q \ + && apt-get install -y gcc git make curl zlib1g-dev libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler diff --git a/Dockerfile.omnibus-gitlab-wheezy b/Dockerfile.omnibus-gitlab-wheezy new file mode 100644 index 0000000..bf27309 --- /dev/null +++ b/Dockerfile.omnibus-gitlab-wheezy @@ -0,0 +1,15 @@ +FROM debian:wheezy + +RUN apt-get update -q \ + && apt-get install -y gcc git make libc6-dev curl zlib1g-dev libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler diff --git a/Dockerfile.omnibus-gitlab-xenial b/Dockerfile.omnibus-gitlab-xenial new file mode 100644 index 0000000..93c6c81 --- /dev/null +++ b/Dockerfile.omnibus-gitlab-xenial @@ -0,0 +1,15 @@ +FROM ubuntu:16.04 + +RUN apt-get update -q \ + && apt-get install -y gcc git make curl zlib1g-dev libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +ENV RUBY_VERSION 2.3.3 +RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \ + | tar -xzC /tmp \ + && cd /tmp/ruby-2.3.3 \ + && ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\ + && make \ + && make install + +RUN gem install bundler