Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
feat(keri): setting environment for KERI
Browse files Browse the repository at this point in the history
We relied on keripy, the python implementation of KERI from WebOfTrust
  • Loading branch information
aminbenmansour committed Oct 16, 2023
1 parent c5d24b0 commit 38e36d7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions backend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,31 @@ RUN gradle clean installDist

FROM docker.io/eclipse-temurin:17

SHELL ["/bin/bash", "-c"]

RUN apt update && \
apt upgrade -y

# installing crypto lib dependencies for KERI
RUN apt install -y libsodium23 && \
apt install -y libsodium-dev && \
apt install -y libffi-dev

# setup Rust for blake3 dependency build
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
source "$HOME/.cargo/env"

# installing keripy directly from source (published 1.0.0 is bugged)
WORKDIR /keripy
RUN apt install git -y && \
git clone -b development https://github.com/WebOfTrust/keripy.git . && \
git checkout 4185296affb2348d19af6009be04f682a3e19360

RUN apt install pip -y && \
source "$HOME/.cargo/env" &&pip install -r requirements.txt && \
mkdir -p /usr/local/var/keri && \
pip install -e .

COPY --from=buildstage /work/build/install/ /
WORKDIR /waltid-web-wallet

Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
lmdb>=0.98
pysodium>=0.7.5
blake3>=0.1.5
msgpack>=1.0.0
simplejson>=3.17.0
cbor2>=5.1.0

0 comments on commit 38e36d7

Please sign in to comment.