Skip to content

Instantly share code, notes, and snippets.

@miton18
Created April 8, 2019 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miton18/8404a59e81d51981143cfd28aabe582c to your computer and use it in GitHub Desktop.
Save miton18/8404a59e81d51981143cfd28aabe582c to your computer and use it in GitHub Desktop.
FROM openjdk:8-jdk
MAINTAINER Rémi C. <remi@collignon-ducret.fr>
USER root
# DEPS
RUN apt update
RUN apt install -y \
git \
libboost-all-dev \
bison \
build-essential \
clang \
cmake \
debhelper \
flex \
gdb \
libasound2 \
libatk-bridge2.0-0 \
libgtk-3-0 \
llvm \
ninja-build \
pkg-config \
unzip \
valgrind \
ant \
ant-optional \
maven \
libssl-dev
RUN apt clean
RUN rm -rf /var/lib/apt/lists/*
ENV PATH /usr/lib/llvm-6.0/bin:$PATH
# THRIFT
RUN git clone --depth 1 --branch 0.11.0 https://github.com/apache/thrift.git /thrift
WORKDIR /thrift
RUN ./bootstrap.sh
RUN ./configure \
--without-python \
--without-ruby \
--without-php \
-without-nodejs \
--without-perl \
--without-tests
RUN make
RUN make install
# WARP10
RUN git clone --depth 1 https://github.com/senx/warp10-platform.git /warp10-platform
# BUILD
WORKDIR /warp10-platform
RUN ./gradlew
RUN ./gradlew warp10:generateThrift
RUN ./gradlew token:generateThrift
RUN ./gradlew crypto:install
RUN ./gradlew token:install
RUN ./gradlew warp10:pack
RUN ./gradlew createTarArchive
# SETUP
ENTRYPOINT /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment