Skip to content

Commit

Permalink
Add alt arch images
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Atkins committed Apr 9, 2020
1 parent 1c77225 commit 6df06e8
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
52 changes: 52 additions & 0 deletions scripts/ci/images/altarch-el7-base/Dockerfile
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
58 changes: 58 additions & 0 deletions scripts/ci/images/cross-el7-base/Dockerfile
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

0 comments on commit 6df06e8

Please sign in to comment.