added steps to dockerfile to build ursa for temp fix
@@ -9,7 +9,11 @@ RUN echo "To invalidate cache"
RUN apt-get update -y && apt-get install -y \
python3-nacl \
- libindy-crypto=0.4.5 \
+ cmake \
+ autoconf \
+ libtool \
+ pkg-config \
+ libssl-dev \
libindy=1.10.1~1220 \
# rocksdb python wrapper
libbz2-dev \
@@ -18,6 +22,40 @@ RUN apt-get update -y && apt-get install -y \
libsnappy-dev \
rocksdb=5.8.8
+
+ENV RUST_VERSION=${RUST_VERSION:-1.34.0}
+
+ENV RUSTUP_HOME=/usr/local/rustup \
+ CARGO_HOME=/usr/local/cargo \
+ PATH=/usr/local/cargo/bin:$PATH
+
+RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain $RUST_VERSION \
+ && chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
+ && rustup --version \
+ && cargo --version \
+ && rustc --version
+
+WORKDIR /home/
+
+RUN curl -fsSL https://github.com/jedisct1/libsodium/releases/download/1.0.14/libsodium-1.0.14.tar.gz | tar -xz
+
+WORKDIR libsodium-1.0.14
+
+RUN ./autogen.sh && ./configure && make && sudo make install
+
+ENV SODIUM_LIB_DIR=/usr/local/lib \
+ LD_LIBRARY_PATH=/usr/local/lib
+
+WORKDIR /home/
+
+RUN git clone https://github.com/hyperledger/ursa.git
+
+WORKDIR /home/ursa/
+
+RUN cargo build --release
+
+RUN cp /home/ursa/target/release/libursa.so /usr/lib/.
+
RUN indy_ci_add_user $uid $user $venv
RUN indy_image_clean
