Skip to content

Instantly share code, notes, and snippets.

@kardolus
Created August 9, 2018 18:06
Show Gist options
  • Save kardolus/f4985942259cd7be4abff53f6a3a70c1 to your computer and use it in GitHub Desktop.
Save kardolus/f4985942259cd7be4abff53f6a3a70c1 to your computer and use it in GitHub Desktop.
if [ -z "$1" ]
then
echo "Usage: create_credentials.sh <number_of_credentials>"
exit 1
fi
for i in `seq 1 $1`;
do
name=$(openssl rand -base64 32 | tr -d /=+ | cut -c -16)
credhub generate -t password -n $name
done
# Tips. You can select active profiles and also downgrade Heap space
# export JAVA_OPTS="-Xms32m -Xmx48m"
# add -Dspring.profiles.active=dev,dev-mysql arg to start_server.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment