Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install ccf Python package before running banking-app demo scripts #254

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions banking-app/scripts/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ if [ "200" != "$(curl $server/node/network -k -s -o /dev/null -w %{http_code})"
exit 1
fi

# Set up Python package
echo -e "\n\e[34m <-- Installing Python dependencies --> \e[0m\n"


if [ ! -f "env/bin/activate" ]
then
python3.8 -m venv env
fi
source env/bin/activate
pip install -q ccf==$(cat /opt/ccf_virtual/share/VERSION)

# Change working directory to the one that contains
# proposals, generated certs and keys, and constitution files
cd ${certificate_dir}
Expand Down