Skip to content

Image to clean-up rabbitmq and mongodb dynamic resources after dev deployments are deleted

License

Notifications You must be signed in to change notification settings

frontlinersnl/dev-deployment-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

dev-deployment-cleanup docker image

This container image can be used to automatically drop mongoDB databases and clean up rabbitmq resources like an exchange, its bindings and destination queues.

Usage

environment variables

These environment variables are mandatory and must be set before running this container.

Variable Purpose
MONGO_URI URI which is used in order to connect to a Mongo database instance
MONGO_DB Databasename inside MongoDB which will be dropped
MESSAGE_QUEUE_URI URI which is used in order to connect to a RabbitMQ instance
EXCHANGE_NAME Name of RabbitMQ exchange that will be deleted together with its bindings and their destinations

update instructions

  1. update dockerfile

  2. build local version:

    docker build -t inforitnl/dev-deployment-cleanup .
  3. push new version to dockerhub:

    docker push inforitnl/dev-deployment-cleanup
  4. tag and push again (optional but recommended):

    docker tag inforitnl/dev-deployment-cleanup inforitnl/dev-deployment-cleanup:1.0.0
    docker push inforitnl/dev-deployment-cleanup:1.0.0

About

Image to clean-up rabbitmq and mongodb dynamic resources after dev deployments are deleted

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published