1
- # This image provides the ability to run Ruby/RSpec tests against a Clojure app.
2
- # To build:
3
- # sudo docker build --rm --force-rm --tag=$(basename $(pwd)) .
4
-
5
- FROM centos:centos7
6
-
1
+ FROM centos:centos8
7
2
USER root
8
- # Get java, epel, whatnot
9
- RUN yum install -y epel-release centos-release-scl-rh llvm-toolset-7-clang \
10
- && yum --enablerepo=updates clean metadata \
11
- && yum install -y bzip2 \
12
- chromedriver \
13
- cmake \
14
- https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm \
15
- https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
16
- git \
17
- gcc \
18
- gcc-c++ \
19
- ImageMagick \
20
- java-11-openjdk-headless.x86_64 \
3
+ RUN cd /etc/yum.repos.d/
4
+ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
5
+ RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
6
+ RUN yum install -y epel-release
7
+ # RUN yum install -y centos-release-scl-rh
8
+ # RUN yum install -y llvm-toolset-7-clang
9
+ # && yum --enablerepo=updates clean metadata \
10
+ RUN yum install -y bzip2
11
+ RUN yum install -y cmake
12
+ RUN yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
13
+ RUN yum install -y chromedriver
14
+ RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
15
+ RUN yum install -y git gcc gcc-c++
16
+ RUN yum install -y ImageMagick
17
+ RUN yum install -y java-11-openjdk-headless.x86_64 \
21
18
liberation-fonts \
22
19
libffi-devel \
23
20
libicu-devel \
@@ -29,13 +26,12 @@ RUN yum install -y epel-release centos-release-scl-rh llvm-toolset-7-clang \
29
26
tar \
30
27
which \
31
28
xorg-x11-server-Xvfb \
32
- docker \
33
- && yum clean all
34
- # && freshclam
35
-
36
- RUN curl -sL https://rpm.nodesource.com/setup_16.x | bash -
29
+ docker
30
+ RUN curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
31
+ RUN curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
32
+ RUN yum install -y gcc-c++ make
37
33
RUN yum install -y nodejs && yum clean all
38
- RUN npm install --global yarn
34
+ RUN yum install -y yarn
39
35
40
36
ENV JAVA_HOME /etc/alternatives/jre
41
37
@@ -51,15 +47,19 @@ RUN curl -OL https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.gz \
51
47
&& cd / \
52
48
&& rm -fr ruby-2.7.2
53
49
50
+ RUN dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
51
+ RUN dnf -y module -y disable postgresql
52
+ RUN dnf clean all
54
53
ENV PATH /usr/pgsql-11/bin:$PATH
55
54
RUN gem install bundler
56
55
RUN groupadd -g 500 bamboo
57
56
RUN useradd --gid bamboo --create-home --uid 500 bamboo
58
- RUN yum install -y postgresql11-devel
57
+ RUN dnf install -y perl
58
+ RUN dnf --enablerepo=powertools install perl-IPC-Run -y
59
+ RUN dnf install -y postgresql11-devel
59
60
60
61
USER bamboo
61
62
WORKDIR /build
62
63
ENV HOME /home/bamboo
63
64
ENV PATH /home/bamboo/.gem/ruby/2.7.2/bin:/opt/google/chrome/:$PATH
64
- RUN gem install rspec --version=3.9 --user-install
65
- USER root
65
+ RUN gem install rspec --version=3.9 --user-install
0 commit comments