forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add endpoint which exposes invitation url with admin rights
- Loading branch information
Karol Krzosa
committed
May 15, 2020
1 parent
8696e75
commit d4c3991
Showing
6 changed files
with
115 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "aries-acapy-plugin-toolbox"] | ||
path = aries-acapy-plugin-toolbox | ||
url = https://github.com/THCLab/aries-acapy-plugin-toolbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
FROM bcgovimages/von-image:py36-1.11-1 | ||
|
||
ENV ENABLE_PTVSD 0 | ||
|
||
ADD requirements*.txt ./ | ||
|
||
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements.dev.txt -r requirements.indy.txt | ||
|
||
COPY aries_cloudagent ./aries_cloudagent | ||
COPY aries-acapy-plugin-toolbox ./aries-acapy-plugin-toolbox | ||
COPY bin ./bin | ||
COPY README.md ./ | ||
COPY setup.py ./ | ||
COPY startup.sh ./ | ||
|
||
USER root | ||
|
||
RUN pip3 install --no-cache-dir -e ".[indy]" | ||
RUN /bin/bash -c "python3 -m venv env" | ||
RUN /bin/bash -c "source env/bin/activate" | ||
RUN /bin/bash -c "pip3 install -e /home/indy/aries-acapy-plugin-toolbox" | ||
RUN pip3 install --no-cache-dir -r /home/indy/aries-acapy-plugin-toolbox/requirements.txt | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y wget gcc openssl pkg-config libssl-dev | ||
# Rust | ||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH \ | ||
RUST_VERSION=1.41.1 | ||
|
||
RUN set -eux; \ | ||
dpkgArch="$(dpkg --print-architecture)"; \ | ||
case "${dpkgArch##*-}" in \ | ||
amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='ad1f8b5199b3b9e231472ed7aa08d2e5d1d539198a15c5b1e53c746aad81d27b' ;; \ | ||
armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='6c6c3789dabf12171c7f500e06d21d8004b5318a5083df8b0b02c0e5ef1d017b' ;; \ | ||
arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='26942c80234bac34b3c1352abbd9187d3e23b43dae3cf56a9f9c1ea8ee53076d' ;; \ | ||
i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='27ae12bc294a34e566579deba3e066245d09b8871dc021ef45fc715dced05297' ;; \ | ||
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \ | ||
esac; \ | ||
url="https://static.rust-lang.org/rustup/archive/1.21.1/${rustArch}/rustup-init"; \ | ||
wget "$url"; \ | ||
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \ | ||
chmod +x rustup-init; \ | ||
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION; \ | ||
rm rustup-init; \ | ||
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \ | ||
rustup --version; \ | ||
cargo --version; \ | ||
rustc --version; | ||
|
||
ADD https://github.com/sovrin-foundation/libsovtoken/archive/v1.0.1.tar.gz libsovtoken.tar.gz | ||
ENV LIBINDY_DIR=/home/indy/.local/lib | ||
ENV LD_LIBRARY_PATH=/home/indy/.local/lib | ||
RUN tar xzvf libsovtoken.tar.gz; \ | ||
cd libsovtoken-1.0.1/libsovtoken; \ | ||
cargo build | ||
ENV LIBSOVTOKEN=/home/indy/libsovtoken-1.0.1/libsovtoken/target/debug/libsovtoken.so |
Submodule aries-acapy-plugin-toolbox
added at
fa0e9c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
aca-py start \ | ||
-it http 0.0.0.0 80 \ | ||
-ot http \ | ||
-e $ACAPY_ENDPOINT \ | ||
--label $AGENT_NAME \ | ||
--auto-accept-requests --auto-ping-connection \ | ||
--auto-respond-credential-proposal --auto-respond-credential-offer --auto-respond-credential-request --auto-store-credential \ | ||
--auto-respond-presentation-proposal --auto-respond-presentation-request --auto-verify-presentation \ | ||
--invite --invite-role admin --invite-label "$AGENT_NAME (admin)" \ | ||
--genesis-url $GENESIS_URL \ | ||
--wallet-type indy \ | ||
--wallet-name $AGENT_NAME \ | ||
--plugin acapy_plugin_toolbox |