Created
August 9, 2018 18:06
-
-
Save kardolus/f4985942259cd7be4abff53f6a3a70c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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