You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
825 B
Bash
16 lines
825 B
Bash
#!/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
|
|
} |