dev/start.sh in conjur-cli-6.0.1 vs dev/start.sh in conjur-cli-6.1.0

- old
+ new

@@ -1,15 +1,35 @@ -#!/bin/bash -ex +#!/bin/bash +set -ex export COMPOSE_PROJECT_NAME=clirubydev docker-compose build if [ ! -f data_key ]; then echo "Generating data key" docker-compose run --no-deps --rm conjur data-key generate > data_key + docker-compose run --no-deps --rm conjurctl role retrieve-key cucumber:user:admin fi -export POSSUM_DATA_KEY="$(cat data_key)" +export CONJUR_DATA_KEY="$(cat data_key)" docker-compose up -d +docker-compose exec conjur conjurctl wait + +apikey=$(docker-compose exec conjur \ + conjurctl role retrieve-key cucumber:user:admin) + +set +x +echo '' +echo '' +echo '=============== LOGIN WITH THESE CREDENTIALS ===============' +echo '' +echo 'username: admin' +echo "api key : ${apikey}" +echo '' +echo '============================================================' +echo '' +echo '' +set -x + docker-compose exec cli bash