File: Dockerfile_centos

package info (click to toggle)
ruby-mysql2 0.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,116 kB
  • sloc: ansic: 3,534; ruby: 3,447; sh: 297; makefile: 3
file content (34 lines) | stat: -rw-r--r-- 991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG IMAGE=centos:7
FROM ${IMAGE}

WORKDIR /build
COPY . .

# mirrorlist.centos.org no longer exists, see
# https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve/1161847#1161847
#
# The --setopt flags to yum enable faster installs
#
RUN cat /etc/redhat-release \
  && sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo \
  && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo \
  && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo \
  && yum -y -q update \
  && yum -y -q install epel-release \
  && yum -y -q install \
      --setopt=deltarpm=0 \
      --setopt=install_weak_deps=false \
      --setopt=tsflags=nodocs \
    gcc \
    gcc-c++ \
    git \
    make \
    mariadb-devel \
    mariadb-server \
    ruby-devel

RUN gem install --no-document "rubygems-update:~>2.7" \
  && update_rubygems > /dev/null \
  && gem install --no-document "bundler:~>1.17"

CMD bash ci/container.sh