-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chuck Atkins
committed
Apr 9, 2020
1 parent
1c77225
commit 6df06e8
Showing
2 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
ARG ARCH=ppc64le | ||
FROM ${ARCH}/centos:centos7 | ||
|
||
# Install core dev packages | ||
RUN yum upgrade -y && \ | ||
yum -y install make curl file valgrind vim bison flex sudo gdb \ | ||
pkgconfig bison flex pkgconfig gcc gcc-c++ gcc-gfortran \ | ||
zlib zlib-devel bzip2 bzip2-libs bzip2-devel libpng-devel \ | ||
libfabric-devel libffi-devel | ||
RUN yum -y install epel-release && \ | ||
yum -y install zeromq-devel blosc-devel libzstd-devel | ||
|
||
# Install and setup newer version of git | ||
WORKDIR /opt/git | ||
RUN yum install -y gettext openssl-devel curl-devel expat-devel && \ | ||
mkdir tmp && \ | ||
cd tmp && \ | ||
curl -L https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.26.0.tar.gz | tar -xz && \ | ||
cd git-2.26.0 && \ | ||
make -j$(grep -c '^processor' /proc/cpuinfo) prefix=/opt/git/2.26.0 all && \ | ||
make prefix=/opt/git/2.26.0 install && \ | ||
cd ../.. && \ | ||
rm -rf tmp | ||
ENV PATH=/opt/git/2.26.0/bin:${PATH} | ||
|
||
# Install the most recent CMake from source | ||
WORKDIR /opt/cmake | ||
RUN yum install -y \ | ||
bzip2-devel libcurl-devel expat-devel \ | ||
xz-devel rhash-devel zlib-devel libzstd-devel && \ | ||
mkdir tmp && \ | ||
cd tmp && \ | ||
curl -L https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0.tar.gz | \ | ||
tar -xz && \ | ||
mkdir build && \ | ||
cd build && \ | ||
../cmake-3.17.0/bootstrap \ | ||
--system-libs \ | ||
--no-qt-gui \ | ||
--no-system-libarchive \ | ||
--no-system-libuv \ | ||
--no-system-jsoncpp \ | ||
--prefix=/opt/cmake/3.17.0 \ | ||
--parallel=$(grep -c '^processor' /proc/cpuinfo) && \ | ||
make -j$(grep -c '^processor' /proc/cpuinfo) install && \ | ||
cd ../.. && \ | ||
rm -rf tmp | ||
ENV PATH=/opt/cmake/3.17.0/bin:${PATH} | ||
|
||
# Misc cleanup of unneeded files | ||
RUN yum clean all && \ | ||
rm -rfv /tmp/* /var/cache/yum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
ARG SYSTEM_ARCH_FROM=x86_64 | ||
ARG SYSTEM_ARCH_TO=ppc64le | ||
ARG DOCKER_ARCH_TO=ppc64le | ||
FROM multiarch/qemu-user-static:${SYSTEM_ARCH_FROM}-${SYSTEM_ARCH_TO} as qemu | ||
FROM ${DOCKER_ARCH_TO}/centos:centos7 | ||
|
||
ARG SYSTEM_ARCH_TO=ppc64le | ||
COPY --from=qemu /usr/bin/qemu-${SYSTEM_ARCH_TO}-static /usr/bin | ||
|
||
# Install core dev packages | ||
RUN yum upgrade -y && \ | ||
yum -y install make curl file valgrind vim bison flex sudo gdb \ | ||
pkgconfig bison flex pkgconfig gcc gcc-c++ gcc-gfortran \ | ||
zlib zlib-devel bzip2 bzip2-libs bzip2-devel libpng-devel \ | ||
libfabric-devel libffi-devel | ||
RUN yum -y install epel-release && \ | ||
yum -y install zeromq-devel blosc-devel libzstd-devel | ||
|
||
# Install and setup newer version of git | ||
WORKDIR /opt/git | ||
RUN yum install -y gettext openssl-devel curl-devel expat-devel && \ | ||
mkdir tmp && \ | ||
cd tmp && \ | ||
curl -L https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.26.0.tar.gz | tar -xz && \ | ||
cd git-2.26.0 && \ | ||
make -j$(grep -c '^processor' /proc/cpuinfo) prefix=/opt/git/2.26.0 all && \ | ||
make prefix=/opt/git/2.26.0 install && \ | ||
cd ../.. && \ | ||
rm -rf tmp | ||
ENV PATH=/opt/git/2.26.0/bin:${PATH} | ||
|
||
# Install the most recent CMake from source | ||
WORKDIR /opt/cmake | ||
RUN yum install -y \ | ||
bzip2-devel libcurl-devel expat-devel \ | ||
xz-devel rhash-devel zlib-devel libzstd-devel && \ | ||
mkdir tmp && \ | ||
cd tmp && \ | ||
curl -L https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0.tar.gz | \ | ||
tar -xz && \ | ||
mkdir build && \ | ||
cd build && \ | ||
../cmake-3.17.0/bootstrap \ | ||
--system-libs \ | ||
--no-qt-gui \ | ||
--no-system-libarchive \ | ||
--no-system-libuv \ | ||
--no-system-jsoncpp \ | ||
--prefix=/opt/cmake/3.17.0 \ | ||
--parallel=$(grep -c '^processor' /proc/cpuinfo) && \ | ||
make -j$(grep -c '^processor' /proc/cpuinfo) install && \ | ||
cd ../.. && \ | ||
rm -rf tmp | ||
ENV PATH=/opt/cmake/3.17.0/bin:${PATH} | ||
|
||
# Misc cleanup of unneeded files | ||
RUN yum clean all && \ | ||
rm -rfv /tmp/* /var/cache/yum |