Commit a126e4fa authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Updating docker builds to do various versions of fedora and ubuntu

parent b962fbe7
from mccaskey/base-fedora-gcc6
from mccaskey/base-fc25-gcc6
run dnf -y install openssl openssl-devel spdlog python-devel \
https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold-2.0-1.fc25.x86_64.rpm \
&& git clone https://github.com/cppmicroservices/cppmicroservices \
......
from mccaskey/base-fc26-gcc6
run dnf -y install openssl openssl-devel spdlog python-devel \
https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold-2.0-1.fc25.x86_64.rpm \
&& git clone https://github.com/cppmicroservices/cppmicroservices \
&& cd cppmicroservices && mkdir build && cd build && cmake .. && make install && cd /projects \
&& git clone --recursive https://github.com/ORNL-QCI/xacc \
&& rm -rf /projects/xacc/tpls/fire/.git \
&& source /etc/bashrc && module load mpi/mpich-x86_64 && cd /projects/xacc && mkdir build \
&& cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/xacc && make && make install && ctest
from fedora:latest
from fedora:25
maintainer Alex McCaskey <mccaskeyaj@ornl.gov>
run mkdir -p /projects
workdir /projects
......
from fedora:26
maintainer Alex McCaskey <mccaskeyaj@ornl.gov>
run mkdir -p /projects
workdir /projects
run dnf install -y https://github.com/genereese/togo/releases/download/v2.3r7/togo-2.3-7.noarch.rpm \
python-devel gcc-c++ openssl openssl-devel cmake mpich-devel boost-mpich-devel make git wget \
https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold-2.0-1.fc26.x86_64.rpm spdlog \
&& git clone https://github.com/cppmicroservices/cppmicroservices \
&& cd cppmicroservices && mkdir build && cd build && cmake .. && make install && cd /projects \
&& git clone --recursive https://github.com/ORNL-QCI/xacc \
&& source /etc/bashrc && module load mpi/mpich-x86_64 && cd xacc && mkdir build \
&& cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/xacc && make install
run cd /projects/xacc && mkdir rpm_build && cd rpm_build && togo configure -n "Alex McCaskey" -e "mccaskeyaj@ornl.gov" \
&& togo project create xacc && cd xacc && mkdir -p root/usr/local/xacc root/usr/local/lib root/usr/local/include \
&& cp -r /usr/local/xacc/* root/usr/local/xacc/ && cp -r /usr/local/include/cppmicroservices3 root/usr/local/include/ \
&& cp -r /usr/local/lib/libCpp* root/usr/local/lib/ && cp -r /usr/local/lib/libus* root/usr/local/lib/ \
&& togo file exclude root/usr/local/xacc \
&& sed -i -r "s/(Version: *).*/\11.0/" spec/header && sed -i -r "s/(Summary: *).*/\1XACC - eXtreme-scale ACCelerator programming environment./" spec/header \
&& sed -i -r "s/(Release: *).*/\11.fc26/" spec/header && sed -i -r "s/(License: *).*/\1BSD/" spec/header \
&& sed -i -r "s/(Buildarch: *).*/\1x86_64/" spec/header && sed -i -r "s/(Group: *).*/\1Development\/System/" spec/header \
&& sed -i -r "s/(Requires: *).*/\1gcc-c++ cmake python-devel git make libtool spdlog mpich-devel boost-mpich-devel/" spec/header \
&& sed -i -r '/Requires/s/^#//g' spec/header \
&& togo build package && cp rpms/*.rpm /projects/ \
&& cat spec/header
from fedora:25
run mkdir -p /projects
workdir /projects
run dnf install -y python-devel gcc-c++ openssl-devel cmake \
gdb mpich-devel boost-mpich-devel gmp-devel make git spdlog \
run dnf install -y gdb \
http://eclipseice.ornl.gov/downloads/xacc/rpms/x86_64/xacc-1.0-1.fc25.x86_64.rpm \
https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold-2.0-1.fc25.x86_64.rpm
from fedora:26
run mkdir -p /projects
workdir /projects
run dnf install -y gdb \
http://eclipseice.ornl.gov/downloads/xacc/rpms/x86_64/xacc-1.0-1.fc26.x86_64.rpm \
https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold-2.0-1.fc26.x86_64.rpm
from ubuntu:latest
from ubuntu:l16.04
maintainer Alex McCaskey <mccaskeyaj@ornl.gov>
run mkdir -p /projects
workdir /projects
......
from ubuntu:17.04
maintainer Alex McCaskey <mccaskeyaj@ornl.gov>
run mkdir -p /projects
workdir /projects
run apt-get -y upgrade && apt-get -y update && apt-get install -y software-properties-common \
python-software-properties libgmp-dev libmpfr-dev ruby ruby-dev rubygems && add-apt-repository ppa:ubuntu-toolchain-r/test \
&& apt-get -y update && apt-get -y install libboost-all-dev git make libtool cmake gcc-6 g++-6 mpich \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 \
&& rm -rf /var/lib/apt/lists/* \
&& gem install --no-ri --no-rdoc fpm
run apt-get -y update && apt-get -y install wget && wget https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold_2.0_amd64.deb && \
apt-get -y update && apt-get -y install $(dpkg --info scaffold_2.0_amd64.deb | grep Depends | \
sed "s/.*ends:\ //" | sed 's/,//g') && dpkg -i scaffold_2.0_amd64.deb \
&& apt-get -y install python-dev libssl-dev libspdlog-dev \
&& git clone https://github.com/cppmicroservices/cppmicroservices && cd cppmicroservices && mkdir build && cd build \
&& cmake .. && make install && cd /projects \
&& git clone --recursive https://github.com/ORNL-QCI/xacc \
&& cd xacc && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/xacc && make && make install
run cd /projects/xacc && mkdir deb_build && cd deb_build && mkdir -p usr/local/xacc usr/local/include usr/local/lib \
&& cp -r /usr/local/include/cppmicroservices3 usr/local/include/ && cp /usr/local/lib/libCpp* usr/local/lib/ \
&& cp /usr/local/lib/libus* usr/local/lib/ \
&& cp -r /usr/local/xacc/* usr/local/xacc/ \
&& fpm -s dir -t deb --name xacc --version 1.0 --depends libboost-all-dev --depends gcc-6 --depends g++-6 --depends python-dev --depends mpich \
--depends libspdlog-dev --depends cmake --depends git --depends make --depends libtool --description "XACC - eXtreme-scale ACCelerator programming framework" . && cp *.deb /
from mccaskey/base-ubuntu-gcc6
from mccaskey/base-ubuntu16-04-gcc6
run wget https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold_2.0_amd64.deb && \
apt-get -y update && apt-get -y install $(dpkg --info scaffold_2.0_amd64.deb | grep Depends | \
sed "s/.*ends:\ //" | sed 's/,//g') && dpkg -i scaffold_2.0_amd64.deb \
......
from mccaskey/base-ubuntu17-04-gcc6
run wget https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold_2.0_amd64.deb && \
apt-get -y update && apt-get -y install $(dpkg --info scaffold_2.0_amd64.deb | grep Depends | \
sed "s/.*ends:\ //" | sed 's/,//g') && dpkg -i scaffold_2.0_amd64.deb \
&& apt-get -y install python-dev libssl-dev libspdlog-dev \
&& git clone https://github.com/cppmicroservices/cppmicroservices && cd cppmicroservices && mkdir build && cd build \
&& cmake .. && make install && cd /projects \
&& git clone --recursive https://github.com/ORNL-QCI/xacc \
&& cd xacc && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/xacc && make && make install && ctest
from ubuntu:16.04
run mkdir /projects
workdir /projects
# Build XACC and its Dependencies, Scaffold included
run apt-get -y upgrade && apt-get -y update && apt-get install -y software-properties-common wget && add-apt-repository ppa:ubuntu-toolchain-r/test \
&& wget http://eclipseice.ornl.gov/downloads/xacc/debs/16.04/xacc_1.0_amd64.deb \
&& wget https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold_2.0_amd64.deb \
&& apt-get -y update && apt-get install -y $(dpkg --info xacc_1.0_amd64.deb | grep Depends | sed "s/.*ends:\ //" | sed 's/,//g') \
&& apt-get -y update && apt-get -y install $(dpkg --info scaffold_2.0_amd64.deb | grep Depends | sed "s/.*ends:\ //" | sed 's/,//g') \
&& dpkg -i scaffold_2.0_amd64.deb && dpkg -i xacc_1.0_amd64.deb
from ubuntu:17.04
run mkdir /projects
workdir /projects
# Build XACC and its Dependencies, Scaffold included
run apt-get -y upgrade && apt-get -y update && apt-get install -y software-properties-common wget && add-apt-repository ppa:ubuntu-toolchain-r/test \
&& wget http://eclipseice.ornl.gov/downloads/xacc/debs/17.04/xacc_1.0_amd64.deb \
&& wget https://github.com/ORNL-QCI/ScaffCC/releases/download/v2.0/scaffold_2.0_amd64.deb \
&& apt-get -y update && apt-get install -y $(dpkg --info xacc_1.0_amd64.deb | grep Depends | sed "s/.*ends:\ //" | sed 's/,//g') \
&& apt-get -y update && apt-get -y install $(dpkg --info scaffold_2.0_amd64.deb | grep Depends | sed "s/.*ends:\ //" | sed 's/,//g') \
&& dpkg -i scaffold_2.0_amd64.deb && dpkg -i xacc_1.0_amd64.deb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment