adding profile script with convenience functions
parent
2bfe78fc8f
commit
bfd7d71ba7
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export MONGO_CA_CERT="${HOME}/certs/mongo_dev/mongod.crt"
|
||||||
|
export MONGO_PEM_CERT="${HOME}/certs/mongo_dev/mongod.pem"
|
||||||
|
|
||||||
|
restore_bookstore() {
|
||||||
|
mongorestore -u toor -p ${1} --authenticationDatabase 'admin' --ssl --host docker1 --sslCAFile ${MONGO_CA_CERT} --sslPEMKeyFile ${MONGO_PEM_CERT} --sslAllowInvalidCertificates --drop --db bookstore ./ data/bookstore
|
||||||
|
}
|
||||||
|
|
||||||
|
restore_dealership (){
|
||||||
|
mongorestore -u toor -p ${1} --authenticationDatabase 'admin' --ssl --host docker1 --sslCAFile ${MONGO_CA_CERT} --sslPEMKeyFile ${MONGO_PEM_CERT} --sslAllowInvalidCertificates --drop --db dealership ./data/de alership
|
||||||
|
}
|
||||||
|
|
||||||
|
mongo_dev_connect (){
|
||||||
|
mongo -u toor -p ${1} --authenticationDatabase 'admin' --ssl --host docker1 --sslCAFile ${MONGO_CA_CERT} --sslPEMKeyFile ${MONGO_PEM_CERT} --sslAllowInvalidCertificates
|
||||||
|
}
|
Loading…
Reference in New Issue