Skip to content

Commit

Permalink
Make some config fixes in docker; add libindy to client container (hy…
Browse files Browse the repository at this point in the history
…perledger#530)

Signed-off-by: dsurnin <[email protected]>
  • Loading branch information
dsurnin authored and ashcherbakov committed Jan 19, 2018
1 parent fe533e6 commit 1b5a6b1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions environment/docker/pool/client.ubuntu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ ARG clicnt=10

EXPOSE 5000-9799
USER indy

# Set NETWORK_NAME in indy_config.py to 'sandbox'
RUN awk '{if (index($1, "NETWORK_NAME") != 0) {print("NETWORK_NAME = \"sandbox\"")} else print($0)}' /etc/indy/indy_config.py> /tmp/indy_config.py
RUN mv /tmp/indy_config.py /etc/indy/indy_config.py


# Init pool data
RUN if [ ! -z "$ips" ] && [ ! -z "$nodecnt" ]; then generate_indy_pool_transactions --nodes $nodecnt --clients $clicnt --ips "$ips"; fi

CMD /bin/bash
8 changes: 4 additions & 4 deletions environment/docker/pool/core.ubuntu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ RUN pip3 install -U \
setuptools
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BD33704C
RUN echo "deb https://repo.evernym.com/deb xenial stable" >> /etc/apt/sources.list
RUN echo "deb https://repo.sovrin.org/deb xenial stable" >> /etc/apt/sources.list
RUN echo "deb https://repo.sovrin.org/deb xenial master" >> /etc/apt/sources.list
RUN echo "deb https://repo.sovrin.org/sdk/deb xenial master" >> /etc/apt/sources.list
RUN useradd -ms /bin/bash -l -u $uid indy
RUN apt-get update -y && apt-get install -y \
indy-node
RUN apt-get update -y && apt-get install -y indy-node libindy
RUN pip3 install python3-indy
USER indy
WORKDIR /home/indy
4 changes: 4 additions & 0 deletions environment/docker/pool/node.init.ubuntu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ ARG clicnt=10
RUN awk '{if (index($1, "NETWORK_NAME") != 0) {print("NETWORK_NAME = \"sandbox\"")} else print($0)}' /etc/indy/indy_config.py> /tmp/indy_config.py
RUN mv /tmp/indy_config.py /etc/indy/indy_config.py

RUN echo " " >> /etc/indy/indy_config.py
RUN echo "logLevel=0" >> /etc/indy/indy_config.py
RUN echo " " >> /etc/indy/indy_config.py

# Init indy-node
RUN init_indy_node $nodename $nport $cport
EXPOSE $nport $cport
Expand Down

0 comments on commit 1b5a6b1

Please sign in to comment.