Skip to content

Commit 7bfc05e

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 7bfc05e

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

ci/code-validation.dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ ARG uid=1000
77
RUN apt-get update -y && apt-get install -y \
88
git \
99
wget \
10+
autoconf \
11+
autotools-dev \
12+
build-essential \
13+
libtool-bin \
14+
zlib1g-dev \
15+
libbz2-dev \
16+
pkg-config \
1017
python3.5 \
1118
python3-pip \
19+
python3-dev \
1220
python-setuptools \
1321
python3-nacl
1422
RUN pip3 install -U \
1523
pip \
1624
setuptools \
25+
Cython \
1726
pep8 \
1827
pep8-naming \
1928
flake8

ci/ubuntu.dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,38 @@ 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+
17+
USER $user
18+
WORKDIR /home/indy
19+
RUN git clone https://github.com/evernym/snappy.git
20+
WORKDIR /home/indy/snappy
21+
RUN ./autogen.sh && ./configure && cat ./README.md > ./README
22+
RUN make
23+
24+
USER root
25+
RUN make install
26+
27+
USER $user
28+
WORKDIR /home/indy
29+
RUN git clone https://github.com/evernym/rocksdb.git
30+
WORKDIR /home/indy/rocksdb
31+
RUN make EXTRA_CFLAGS="-fPIC" EXTRA_CXXFLAGS="-fPIC" static_lib
32+
33+
USER root
34+
RUN make install
35+
36+
USER $user
37+
WORKDIR /home/indy
38+
RUN git clone https://github.com/evernym/python-rocksdb.git
39+
WORKDIR /home/indy/python-rocksdb
40+
RUN python3 setup.py build
41+
USER root
42+
RUN python3 setup.py install
43+
RUN ldconfig
44+
45+
####### FIXME end #######
46+
1547
RUN indy_image_clean
1648

1749
USER $user

0 commit comments

Comments
 (0)