Commit bc4ade33 authored by David Blyth's avatar David Blyth

Added tensorflow-for-eic

parent 97308965
Pipeline #941 passed with stages
in 40 seconds
# Author: David Blyth
# Description: Docker build for producing a base for ANL EIC software efforts
FROM dbcooper/arch:2018-09-05
FROM dbcooper/arch:2018-06-05
ARG BUILD_THREADS=5
......@@ -45,7 +45,7 @@ RUN sudo pacman -S --noconfirm \
RUN git clone http://root.cern.ch/git/root.git \
&& cd root \
&& git checkout tags/$ROOT_RELEASE \
&& git checkout -q tags/$ROOT_RELEASE \
&& cd .. \
&& mkdir build \
&& cd build \
......@@ -82,7 +82,7 @@ ENV LZ4_RELEASE=v1.8.1.2
RUN git clone https://github.com/lz4/lz4.git \
&& cd lz4 \
&& git checkout tags/$LZ4_RELEASE \
&& git checkout -q tags/$LZ4_RELEASE \
&& make -j $BUILD_THREADS \
&& sudo make install \
&& cd ../ \
......@@ -97,12 +97,16 @@ RUN sudo pacman -S --noconfirm \
go \
&& sudo rm -rf /var/cache/pacman/pkg
RUN git clone https://github.com/proio-org/go-proio.git \
RUN sudo mkdir -p $GOPATH \
&& sudo chmod o+w $GOPATH \
&& mkdir -p $GOPATH/src/github.com/proio-org \
&& cd $GOPATH/src/github.com/proio-org \
&& git clone https://github.com/proio-org/go-proio.git \
&& cd go-proio \
&& git checkout $GO_PROIO_CHECKOUT \
&& git checkout -q $GO_PROIO_CHECKOUT \
&& go get ./... \
&& cd .. \
&& sudo rm -rf go-proio $GOPATH/src $GOPATH/pkg
&& cd \
&& sudo rm -rf $GOPATH/src $GOPATH/pkg
# py-proio
ENV PY_PROIO_VERSION=0.12.101
......@@ -121,7 +125,7 @@ ENV CPP_PROIO_CHECKOUT=v0.10.4
RUN git clone https://github.com/proio-org/cpp-proio.git \
&& mkdir cpp-proio/build \
&& cd cpp-proio/build \
&& git checkout $CPP_PROIO_CHECKOUT \
&& git checkout -q $CPP_PROIO_CHECKOUT \
&& git submodule init \
&& git submodule update \
&& cmake ../ \
......@@ -130,6 +134,30 @@ RUN git clone https://github.com/proio-org/cpp-proio.git \
&& cd ../../ \
&& rm -rf cpp-proio
# tensorflow-for-eic
RUN sudo pacman -S --noconfirm \
bazel \
patch \
python-numpy \
python-wheel \
which \
&& sudo rm -rf /var/cache/pacman/pkg
ENV TENSORFLOW_FOR_EIC_CHECKOUT=8d3bbba8ee64c4da12ed80602b9b668bcfef906d
RUN git clone https://eicweb.phy.anl.gov/EIC/tensorflow-for-eic.git \
&& cd tensorflow-for-eic \
&& git checkout -q $TENSORFLOW_FOR_EIC_CHECKOUT \
&& CC=/usr/bin/gcc \
&& CXX=/usr/bin/g++ \
&& ./configure \
&& bazel build --logging 0 --config=opt //tensorflow/tools/pip_package:build_pip_package \
&& rm -rf pkg \
&& ./bazel-bin/tensorflow/tools/pip_package/build_pip_package pkg \
&& pip install --user --upgrade pkg/*.whl \
&& cd ../ \
&& rm -rf tensorflow-for-eic .cache
# Convenience tools
RUN sudo pacman -S --noconfirm \
emacs \
......@@ -145,7 +173,6 @@ RUN sudo pacman -S --noconfirm \
vi \
vim \
wget \
which \
xorg-server-xvfb \
&& sudo rm -rf /var/cache/pacman/pkg
......
......@@ -5,6 +5,7 @@ context of EIC studies at ANL.
## Key software packages
* ProIO
* ROOT
* Tensorflow
# Running a container
## Docker
......
Markdown is supported
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