-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
acapy.dockerfile
34 lines (27 loc) · 1.31 KB
/
acapy.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y gnupg2 \
software-properties-common python3-pip cargo libzmq3-dev \
libsodium-dev pkg-config libssl-dev curl
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 && \
add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic master" && \
apt-get update && \
apt-get install -y libindy
# Build libindystrgpostgres.so for connecting to postgres
# requires cargo libzmq3-dev libsodium-dev pkg-config libssl-dev
ADD ./indy-sdk /indy-sdk
RUN cd /indy-sdk/experimental/plugins/postgres_storage && cargo build
WORKDIR /aries-cloudagent-python
ADD aries-cloudagent-python/requirement*.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt -r requirements.dev.txt -r requirements.indy.txt
# Install ACA-py
ADD aries-cloudagent-python/aries_cloudagent ./aries_cloudagent
ADD aries-cloudagent-python/bin ./bin
RUN touch ./README.md
ADD aries-cloudagent-python/setup.py ./
RUN pip3 install --no-cache-dir -e .
# Add docker-compose-wait tool
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/wait /wait
RUN chmod +x /wait
# Announce location of libindystrgpostgres.so
ENV LD_LIBRARY_PATH /indy-sdk/experimental/plugins/postgres_storage/target/debug
ENTRYPOINT ["/bin/bash", "-c", "/wait && aca-py \"$@\"", "--"]