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
# setup | |
OS_USERNAME=<user> | |
OS_PASSWORD=<password> | |
OS_GEAR_SIZE="medium" | |
# verify you can get application list | |
curl -k -X GET https://openshift.redhat.com/broker/rest/domain/lightblue/applications --user $OS_USERNAME:$OS_PASSWORD | |
# delete existing app, get ID from app list above | |
curl -k -X DELETE https://openshift.redhat.com/broker/rest/application/<ID> --user $OS_USERNAME:$OS_PASSWORD |
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
# server | |
docker run --name mongo-single -d mongo --nojournal --oplogSize 10 | |
# client | |
docker run -it --link mongo-single:mongo --rm mongo /bin/bash | |
mongo mongo:27017 |
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
# setup: | |
# - one config server | |
# - one mongos server | |
# - 3 shard nodes (single mongod) | |
# reference: https://gist.github.com/achille/82847acc0b4b94ca9f0f | |
# start config server (note, override default db path to one already managed by mongo image) | |
docker run --name mongo-shard-config -d mongo --nojournal --oplogSize 10 --configsvr --dbpath /data/db |
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
# get it | |
docker pull mongo | |
# startup a 3 node replica set | |
docker run --name mongo-rs-1 -d mongo --nojournal --oplogSize 10 --replSet rs | |
docker run --name mongo-rs-2 -d mongo --nojournal --oplogSize 10 --replSet rs | |
docker run --name mongo-rs-3 -d mongo --nojournal --oplogSize 10 --replSet rs | |
# connect to first node | |
docker run -it --link mongo-rs-1:mongo1 --link mongo-rs-2:mongo2 --link mongo-rs-3:mongo3 --rm mongo /bin/bash |
NewerOlder