diff options
author | Brad King <brad.king@kitware.com> | 2020-10-03 09:00:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-05 12:57:10 (GMT) |
commit | b23f36bba66fbf6033fb0d7371c7c9f1d7196f92 (patch) | |
tree | 086664221ddc6d476dc57d116b4c24cf3806be94 /.gitlab/ci/docker | |
parent | 20f7d51b7b1f26bf21b618927cff043123a6b94f (diff) | |
download | CMake-b23f36bba66fbf6033fb0d7371c7c9f1d7196f92.zip CMake-b23f36bba66fbf6033fb0d7371c7c9f1d7196f92.tar.gz CMake-b23f36bba66fbf6033fb0d7371c7c9f1d7196f92.tar.bz2 |
ci: add packages for many find modules to the Fedora 31 image
Diffstat (limited to '.gitlab/ci/docker')
-rw-r--r-- | .gitlab/ci/docker/fedora31/Dockerfile | 10 | ||||
-rwxr-xr-x | .gitlab/ci/docker/fedora31/install_deps.sh | 52 | ||||
-rwxr-xr-x | .gitlab/ci/docker/fedora31/install_rvm.sh | 18 |
3 files changed, 79 insertions, 1 deletions
diff --git a/.gitlab/ci/docker/fedora31/Dockerfile b/.gitlab/ci/docker/fedora31/Dockerfile index 4ad8d45..80ab379 100644 --- a/.gitlab/ci/docker/fedora31/Dockerfile +++ b/.gitlab/ci/docker/fedora31/Dockerfile @@ -1,3 +1,9 @@ +FROM fedora:31 as rvm-build +MAINTAINER Ben Boeckel <ben.boeckel@kitware.com> + +COPY install_rvm.sh /root/install_rvm.sh +RUN sh /root/install_rvm.sh + FROM fedora:31 MAINTAINER Ben Boeckel <ben.boeckel@kitware.com> @@ -6,3 +12,7 @@ RUN sh /root/install_deps.sh COPY install_ispc.sh /root/install_ispc.sh RUN sh /root/install_ispc.sh + +COPY --from=rvm-build /root/rvm.tar /root/rvm.tar +RUN tar -C /usr/local -xf /root/rvm.tar \ + && rm /root/rvm.tar diff --git a/.gitlab/ci/docker/fedora31/install_deps.sh b/.gitlab/ci/docker/fedora31/install_deps.sh index 0d857c1..8de213a 100755 --- a/.gitlab/ci/docker/fedora31/install_deps.sh +++ b/.gitlab/ci/docker/fedora31/install_deps.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + # Install build requirements. dnf install --setopt=install_weak_deps=False -y \ ncurses-devel \ @@ -22,6 +24,54 @@ dnf install --setopt=install_weak_deps=False -y \ # Tools needed for the test suite. dnf install --setopt=install_weak_deps=False -y \ findutils \ - file + file \ + which + +# Packages needed to test find modules. +dnf install --setopt=install_weak_deps=False -y \ + alsa-lib-devel \ + blas-devel \ + boost-devel boost-python3-devel \ + bzip2-devel \ + cups-devel \ + doxygen \ + expat-devel \ + fontconfig-devel \ + freetype-devel \ + gdal-devel \ + giflib-devel \ + glew-devel \ + gnutls-devel \ + gsl-devel \ + gtest-devel \ + gtk2-devel \ + jsoncpp-devel \ + lapack-devel \ + libarchive-devel \ + libcurl-devel \ + libinput-devel systemd-devel \ + libjpeg-turbo-devel \ + libpng-devel \ + libpq-devel postgresql-server-devel \ + libtiff-devel \ + libuv-devel \ + libxml2-devel \ + libxslt-devel \ + openmpi-devel \ + patch \ + perl \ + protobuf-devel protobuf-c-devel protobuf-lite-devel \ + pypy2 pypy2-devel \ + pypy3 pypy3-devel \ + python2 python2-devel python2-numpy \ + python3 python3-devel python3-numpy \ + ruby rubygems ruby-devel \ + SDL-devel \ + sqlite-devel \ + swig \ + unixODBC-devel \ + xalan-c-devel \ + xerces-c-devel \ + xz-devel dnf clean all diff --git a/.gitlab/ci/docker/fedora31/install_rvm.sh b/.gitlab/ci/docker/fedora31/install_rvm.sh new file mode 100755 index 0000000..2332ab7 --- /dev/null +++ b/.gitlab/ci/docker/fedora31/install_rvm.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +gpg2 --keyserver hkp://pool.sks-keyservers.net \ + --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \ + 7D2BAF1CF37B13E2069D6956105BD0E739499BDB + +dnf install --setopt=install_weak_deps=False -y \ + findutils \ + procps \ + which + +curl -sSL https://get.rvm.io | bash -s stable + +/usr/local/rvm/bin/rvm install ruby-2.7.0 + +tar -C /usr/local -cf /root/rvm.tar rvm |