Sign inSign up

southbanksoftware/node-mongodb

By southbanksoftware

Updated about 7 years ago

Docker image with node 8 and mongodb 3.6 to run as kubernetes pod

Image
0

10K+

southbanksoftware/node-mongodb repository overview

provendb-tests

Jest-based tests for provendb proxy

Build Steps

Build steps for Docker Images

node-mongodb
  1. Use the following command to build the docker image docker build -t southbanksoftware/node-mongodb:latest docker/node-mongodb --build-arg auth=<username>:<password or github token>
  2. Push the image to docker hub using docker login and docker push southbanksoftware/node-mongodb:latest

Testing:

  1. Install yarn (brew install yarn) and node (brew install node)
  2. yarn install
  3. yarn test if your proxy and mongodb are running on localhost with default ports

Environment Variables

PROVENDB_URI URI for the proxy PROVENDB_NODEOPTIONS Any additional options for node driver connection PROVENDB_AUTH true if proxy authentication is enabled PROVENDB_DB Database used by the proxy MONGOADMIN_URI URI that connects with admin privilegs (to atlas for instance ) PROVENDB_SSLCERT SSL certificate file used by the proxy

To use SSL with a cetificate and ATLAS

export ATLAS_GCP="mongodb+srv://guytest:[email protected]/guytest" export MONGODB_URI=$ATLAS_GCP export PROVENDB_URI=mongodb://guytest:guytest@localhost:27018/guytest?ssl=true export PROVENDB_NODEOPTIONS='{"sslValidate":false,"useNewUrlParser": true}' export PROVENDB_AUTH=true export PROVENDB_DB=guytest export MONGOADMIN_URI="mongodb+srv://admin:[email protected]/test" export PROVENDB_SSLCERT=~/git/provendb-tests/certificate.p12

Tag summary

Content type

Image

Digest

Size

930 MB

Last updated

about 7 years ago

docker pull southbanksoftware/node-mongodb