<reponame>ucrdavies/grpcScamp1<gh_stars>0
FROM nvidia/cuda:9.1-runtime

#ADD aws/run_job_self_join.sh .
#ADD aws/run_job_ab_join.sh .
#ADD aws/run_job_preprocess.sh .
#ADD aws/split_ts.py .
#ADD aws/run_job_postprocess.py .
#ADD aws/run_tile_self_join.sh .

#ADD ./SCAMP .


RUN apt-get update && \
    apt-get upgrade -y

RUN apt-get install -y \
    python \
    python-pip \
    python-virtualenv \
    zip \
    unzip \
    pxz \
    tar \
    git \
    wget \
    software-properties-common \
    apt-transport-https \
    ca-certificates \
    gnupg \
    software-properties-common \
    golang \
    build-essential \
    iputils-ping 

RUN apt-get install software-properties-common -y
RUN apt-get install build-essential autoconf libtool pkg-config -y
RUN apt-get install libgflags-dev libgtest-dev -y
RUN apt-get install clang libc++-dev -y
RUN apt-get install git -y
RUN apt-get install curl -y
RUN apt-get install make -y
RUN apt-get install zlib1g-dev -y
RUN apt-get install cmake -y
RUN apt-get install clang -y
RUN apt-get install clang-tidy -y
RUN apt-get install clang-format -y
RUN apt-get install module-init-tools -y

RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add -

RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'
RUN apt-get update -y

RUN apt-get install -y cmake



#ADD https://api.github.com/repos/zpzim/SCAMP/git/refs/heads/kubernetes-wip-2 version.json
ADD https://api.github.com/repos/ucrdavies/grpcScamp1/git/refs/heads/master version.json
#RUN git clone --branch kubernetes-wip-2 https://github.com/zpzim/SCAMP.git
RUN git clone --branch master https://github.com/ucrdavies/grpcScamp1.git
#RUN cd /SCAMP && git submodule update --init --recursive
RUN cd /grpcScamp1 && git submodule update --init --recursive
#RUN mkdir /SCAMP/build && cd /SCAMP/build && cmake -DBUILD_CLIENT_SERVER=1 .. && make -j16
RUN mkdir /grpcScamp1/build && cd /grpcScamp1/build && cmake -DBUILD_CLIENT_SERVER=1 .. && make -j16

CMD ./grpcScamp1/build/kubernetes/SCAMPclient
#CMD ./grpcScamp1/build/kubernetes/SCAMPserver
