gitlab-build-images/Dockerfile.omnibus-gitlab-centos7
Balasankar "Balu" C d4a5fc3443
Bump Ruby version in omnibus-gitlab images to 2.7.5
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
2022-03-18 16:16:51 +05:30

24 lines
782 B
Docker

FROM centos:centos7
RUN yum update -y -q \
&& yum groupinstall -y Development Tools \
&& yum install -y \
gcc gcc-c++ git make curl zlib-devel openssl-devel \
&& yum clean all
# it seems C.UTF-8 is not available in centos-7
# https://bugzilla.redhat.com/show_bug.cgi?id=1361965
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.7.5
RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.7/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 --version 2.2.3