Skip to content

Commit a551c09

Browse files
author
Sergey Shilov
committed
Implement the first version of installation of rocksdb and python-rocksdb.
Signed-off-by: Sergey Shilov <[email protected]>
1 parent 3e88988 commit a551c09

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

ci/ubuntu.dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,48 @@ RUN apt-get update -y && apt-get install -y \
1212

1313
RUN indy_ci_add_user $uid $user $venv
1414

15+
####### FIXME: this code of rocksdb and python-rocksdb installation should be re-factored #######
16+
RUN apt-get update -y && apt-get install -y \
17+
autoconf \
18+
build-essential \
19+
libtool-bin \
20+
zlib1g-dev \
21+
libbz2-dev \
22+
pkg-config \
23+
python3-dev
24+
25+
RUN pip install -U Cython
26+
27+
USER $user
28+
WORKDIR /home/indy
29+
RUN git clone https://github.com/evernym/snappy.git
30+
WORKDIR /home/indy/snappy
31+
RUN ./autogen.sh && ./configure && cat ./README.md > ./README
32+
RUN make
33+
34+
USER root
35+
RUN make install
36+
37+
USER $user
38+
WORKDIR /home/indy
39+
RUN git clone https://github.com/evernym/rocksdb.git
40+
WORKDIR /home/indy/rocksdb
41+
RUN make EXTRA_CFLAGS="-fPIC" EXTRA_CXXFLAGS="-fPIC" static_lib
42+
43+
USER root
44+
RUN make install
45+
46+
USER $user
47+
WORKDIR /home/indy
48+
RUN git clone https://github.com/evernym/python-rocksdb.git
49+
WORKDIR /home/indy/python-rocksdb
50+
RUN python setup.py build
51+
USER root
52+
RUN python setup.py install
53+
RUN ldconfig
54+
55+
####### FIXME end #######
56+
1557
RUN indy_image_clean
1658

1759
USER $user

0 commit comments

Comments
 (0)