Skip to content

Commit

Permalink
update to support ursa.
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Smith <devinleighsmith@gmail.com>
  • Loading branch information
devinleighsmith committed Apr 29, 2021
1 parent 425354c commit 4f419d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
3 changes: 1 addition & 2 deletions system/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ services:
context: ./node
args:
- NODE_REPO_COMPONENT
- LIBINDY_CRYPTO_VERSION
- PYTHON3_LIBINDY_CRYPTO_VERSION
- URSA_VERSION
- PYTHON3_PYZMQ_VERSION
- INDY_PLENUM_VERSION
- INDY_NODE_VERSION
Expand Down
24 changes: 15 additions & 9 deletions system/docker/node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \
&& apt-get update -y

# indy depedencies
ARG LIBINDY_CRYPTO_VERSION
RUN : ${LIBINDY_CRYPTO_VERSION:?"LIBINDY_CRYPTO_VERSION must be provided"}
ENV LIBINDY_CRYPTO_VERSION=${LIBINDY_CRYPTO_VERSION}

ARG PYTHON3_LIBINDY_CRYPTO_VERSION
RUN : ${PYTHON3_LIBINDY_CRYPTO_VERSION:?"PYTHON3_LIBINDY_CRYPTO_VERSION must be provided"}
ENV PYTHON3_LIBINDY_CRYPTO_VERSION=${PYTHON3_LIBINDY_CRYPTO_VERSION}
ARG URSA_VERSION
RUN : ${URSA_VERSION:?"URSA_VERSION must be provided"}
ENV URSA_VERSION=${URSA_VERSION}

ARG PYTHON3_PYZMQ_VERSION
RUN : ${PYTHON3_PYZMQ_VERSION:?"PYTHON3_PYZMQ_VERSION must be provided"}
Expand All @@ -56,8 +52,7 @@ RUN : ${INDY_NODE_VERSION:?"INDY_NODE_VERSION must be provided"}
ENV INDY_NODE_VERSION=${INDY_NODE_VERSION}

RUN apt-get install -y \
libindy-crypto=${LIBINDY_CRYPTO_VERSION} \
python3-indy-crypto=${PYTHON3_LIBINDY_CRYPTO_VERSION} \
ursa=${URSA_VERSION} \
python3-pyzmq=${PYTHON3_PYZMQ_VERSION} \
indy-plenum=${INDY_PLENUM_VERSION} \
indy-node=${INDY_NODE_VERSION}
Expand All @@ -71,6 +66,17 @@ RUN if [ "$SOVRIN_INSTALL" = "yes" ]; then \
dpkg -i "sovrin_${SOVRIN_VERSION}_amd64.deb"; \
fi

ARG SOVTOKEN_VERSION
ARG SOVTOKENFEES_VERSION
ENV SOVTOKEN_VERSION=${SOVTOKEN_VERSION:-1.0.8~dev153}
ENV SOVTOKENFEES_VERSION=${SOVTOKENFEES_VERSION:-${SOVTOKEN_VERSION}}
RUN \
set -ex; \
apt-get update && apt-get install -y \
sovtoken=${SOVTOKEN_VERSION} \
sovtokenfees=${SOVTOKENFEES_VERSION}; \
rm -rf /var/lib/apt/lists/*;

# repo cleanup
RUN sed '/deb https:\/\/repo.sovrin.org\/sdk\/deb xenial ${NODE_REPO_COMPONENT}/d' /etc/apt/sources.list \
&& rm -rf /var/lib/apt/lists/*
Expand Down
6 changes: 2 additions & 4 deletions system/docker/prepare_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ node_env_variables=" \
SOVTOKEN_VERSION \
SOVTOKENFEES_VERSION \
TOKEN_PLUGINS_INSTALL \
LIBINDY_CRYPTO_VERSION \
PYTHON3_LIBINDY_CRYPTO_VERSION \
URSA_VERSION \
"

echo "Docker version..."
Expand Down Expand Up @@ -82,8 +81,7 @@ docker run -t --rm \
-e SOVRIN_INSTALL \
-e SOVTOKEN_VERSION \
-e SOVTOKENFEES_VERSION \
-e LIBINDY_CRYPTO_VERSION \
-e PYTHON3_LIBINDY_CRYPTO_VERSION \
-e URSA_VERSION \
"$docker_compose_image_name" docker-compose -f system/docker/docker-compose.yml build node

docker images "$image_repository"
Expand Down

0 comments on commit 4f419d3

Please sign in to comment.