<commit_before>tutum-docker-rabbitmq
=====================

Base docker image to run a RabbitMQ server, forked from tutum/rabbitmq (https://github.com/tutumcloud/tutum-docker-rabbitmq) and extended with configurable username.


Usage
-----

To create the image `mminder/rabbitmq`, execute the following command on the tutum-rabbitmq folder:

	sudo docker build -t mminder/rabbitmq .


Running the RabbitMQ server
---------------------------

Run the following command to start rabbitmq:

	docker run -d -p 5672:5672 -p 15672:15672 mminder/rabbitmq

The first time that you run your container, a new random password will be set.
To get the password, check the logs of the container by running:

	docker logs <CONTAINER_ID>

You will see an output like the following:

	========================================================================
	You can now connect to this RabbitMQ server using, for example:

	    rabbitmqadmin -u admin -p 5elsT6KtjrqV -H <host> -P <port> list vhosts

	Please remember to change the above password as soon as possible!
	========================================================================

In this case, `<PASSWORD>` is the password set and 'admin' is the default user.
You can then connect to RabbitMQ:

	rabbitmqadmin -u admin -p 5elsT6KtjrqV -P 15672 list vhosts

Done!


Setting a specific password for the admin account
-------------------------------------------------

If you want to use a preset user and/or password instead of 'admin' and a randomly generated password, you can
set the environment variables `RABBITMQ_USER` and `RABBITMQ_PASS` to your specific username and/or password when running the container:

	docker run -d -p 5672:5672 -p 15672:15672 -e RABBITMQ_USER="myuser" -e RABBITMQ_PASS="<PASSWORD>" mminder/rabbitmq

You can now test your new credentials:

	rabbitmqadmin -u myuser -p mypass -P 15672 list vhosts<commit_msg>reverted readme.md for tutum pull request<commit_after>tutum-docker-rabbitmq
=====================

Base docker image to run a RabbitMQ server


Usage
-----

To create the image `tutum/rabbitmq`, execute the following command on the tutum-rabbitmq folder:

	sudo docker build -t tutum/rabbitmq .


Running the RabbitMQ server
---------------------------

Run the following command to start rabbitmq:

	docker run -d -p 5672:5672 -p 15672:15672 tutum/rabbitmq

The first time that you run your container, a new random password will be set.
To get the password, check the logs of the container by running:

	docker logs <CONTAINER_ID>

You will see an output like the following:

	========================================================================
	You can now connect to this RabbitMQ server using, for example:

	    rabbitmqadmin -u admin -p 5elsT6KtjrqV -H <host> -P <port> list vhosts

	Please remember to change the above password as soon as possible!
	========================================================================

In this case, `<PASSWORD>` is the password set. 
You can then connect to RabbitMQ:

	rabbitmqadmin -u admin -p 5elsT6KtjrqV -P 15672 list vhosts

Done!


Setting a specific password for the admin account
-------------------------------------------------

If you want to use a preset password instead of a randomly generated one, you can
set the environment variable `RABBITMQ_PASS` to your specific password when running the container:

	docker run -d -p 5672:5672 -p 15672:15672 -e RABBITMQ_PASS="<PASSWORD>" tutum/rabbitmq

You can now test your new admin password:

	rabbitmqadmin -u admin -p mypass -P 15672 list vhosts
{'fraction_non_alphanumeric': 0.18566591422121898, 'fraction_numerical': 0.028216704288939052, 'mean_word_length': 3.6400523560209423, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2905559', 'n_tokens_mistral': 1112, 'n_tokens_neox': 931, 'n_words': 440}