Skip to content

Commit

Permalink
Re-use indy-node-container images as base for system tests
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Bormann <ChristianCarl.Bormann@de.bosch.com>
  • Loading branch information
c2bo committed Nov 10, 2022
1 parent f1345bb commit 3d7b94f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

- name: Run node pool
run: |
docker build -f ci/did-indy-pool.dockerfile -t test_pool --build-arg pool_ip=10.0.0.2 ci
docker build -f ci/indy-pool.dockerfile -t test_pool --build-arg pool_ip=10.0.0.2 ci
docker network create --subnet=10.0.0.0/8 indy-sdk-network
docker run -d --name indy_pool -p 9701-9708:9701-9708 --net=indy-sdk-network test_pool
Expand Down
153 changes: 0 additions & 153 deletions ci/did-indy-pool.dockerfile

This file was deleted.

44 changes: 2 additions & 42 deletions ci/indy-pool.dockerfile
Original file line number Diff line number Diff line change
@@ -1,50 +1,10 @@
FROM ubuntu:16.04
FROM ghcr.io/hyperledger/indy-node-container/indy_node:main-ubuntu20

ARG uid=1000

# Install environment
RUN apt-get update -y && apt-get install -y \
git \
wget \
python3.5 \
python3-nacl \
python3-pip \
python3-setuptools \
apt-transport-https \
ca-certificates \
software-properties-common

RUN pip3 install -U \
RUN pip3 install \
"pip~=9.0" \
"setuptools~=50.0" \
"supervisor~=4.2"

RUN add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu xenial main universe" && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CE7709D068DB5E88
ARG indy_stream=master
RUN add-apt-repository "deb https://repo.sovrin.org/deb xenial ${indy_stream}" && \
add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable"

RUN useradd -ms /bin/bash -u $uid indy

ARG indy_plenum_ver=1.13.0.dev1032
ARG indy_node_ver=1.13.0.dev1221

RUN apt-get update -y && apt-get install -y \
libsodium18 \
libbz2-dev \
zlib1g-dev \
liblz4-dev \
libsnappy-dev \
rocksdb=5.8.8 \
libindy \
ursa \
vim

RUN pip3 install \
indy-plenum==${indy_plenum_ver} \
indy-node==${indy_node_ver}

RUN echo "[supervisord]\n\
logfile = /tmp/supervisord.log\n\
logfile_maxbytes = 50MB\n\
Expand Down
8 changes: 8 additions & 0 deletions local_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#/bin/bash
docker build -f ci/indy-pool.dockerfile -t test_pool --build-arg pool_ip=10.0.0.2 ci
docker network create --subnet=10.0.0.0/8 indy-sdk-network
docker run -d --name indy_pool -p 9701-9708:9701-9708 --net=indy-sdk-network test_pool
cargo test --manifest-path libindy_vdr/Cargo.toml --features local_nodes_pool,local_nodes_pool_did_indy
docker stop indy_pool
docker rm indy_pool
docker network rm indy-sdk-network

0 comments on commit 3d7b94f

Please sign in to comment.