Sign inSign up

aptible/mongodb

By aptible

•Updated 26 days ago

Image
0

100K+

aptible/mongodb repository overview

⁠ aptible/mongodb

Docker Repository on Quay.io

MongoDB on Docker

⁠Installation and Usage

docker pull quay.io/aptible/mongodb

This is an image conforming to the Aptible database specification⁠. To run a server for development purposes, execute

docker create --name data quay.io/aptible/mongodb
docker run --volumes-from data -e USERNAME=aptible -e PASSPHRASE=pass -e DB=db quay.io/aptible/mongodb --initialize
docker run --volumes-from data -P quay.io/aptible/mongodb

The first command sets up a data container named data which will hold the configuration and data for the database. The second command creates a MongoDB instance with a username, passphrase and database name of your choice. The third command starts the database server.

⁠Available Tags

  • latest: Currently MongoDB 3.2.1
  • 2.6: MongoDB 2.6.11
  • 3.2: MongoDB 3.2.1

⁠Tests

Tests are run as part of the Dockerfile build. To execute them separately within a container, run:

bats test

⁠Deployment

To push the Docker image to Quay, run the following command:

make release

⁠Continuous Integration

Images are built and pushed to Docker Hub on every deploy. Because Quay currently only supports build triggers where the Docker tag name exactly matches a GitHub branch/tag name, we must run the following script to synchronize all our remote branches after a merge to master:

make sync-branches

MIT License, see LICENSE⁠ for details.

Copyright (c) 2015 Aptible⁠ and contributors.

@fancyremarker

Tag summary

Content type

Image

Digest

sha256:c2ee09aff…

Size

146.3 MB

Last updated

9 months ago

docker pull aptible/mongodb