Skip to content

Commit

Permalink
Implement the first version of installation of rocksdb and python-roc…
Browse files Browse the repository at this point in the history
…ksdb.

Signed-off-by: Sergey Shilov <sergey.shilov@dsr-company.com>
  • Loading branch information
Sergey Shilov committed Mar 7, 2018
1 parent 3e88988 commit a551c09
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions ci/ubuntu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,48 @@ RUN apt-get update -y && apt-get install -y \

RUN indy_ci_add_user $uid $user $venv

####### FIXME: this code of rocksdb and python-rocksdb installation should be re-factored #######
RUN apt-get update -y && apt-get install -y \
autoconf \
build-essential \
libtool-bin \
zlib1g-dev \
libbz2-dev \
pkg-config \
python3-dev

RUN pip install -U Cython

USER $user
WORKDIR /home/indy
RUN git clone https://github.com/evernym/snappy.git
WORKDIR /home/indy/snappy
RUN ./autogen.sh && ./configure && cat ./README.md > ./README
RUN make

USER root
RUN make install

USER $user
WORKDIR /home/indy
RUN git clone https://github.com/evernym/rocksdb.git
WORKDIR /home/indy/rocksdb
RUN make EXTRA_CFLAGS="-fPIC" EXTRA_CXXFLAGS="-fPIC" static_lib

USER root
RUN make install

USER $user
WORKDIR /home/indy
RUN git clone https://github.com/evernym/python-rocksdb.git
WORKDIR /home/indy/python-rocksdb
RUN python setup.py build
USER root
RUN python setup.py install
RUN ldconfig

####### FIXME end #######

RUN indy_image_clean

USER $user
Expand Down

0 comments on commit a551c09

Please sign in to comment.