Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile to build and use as a Docker container #269

Closed
wants to merge 1 commit into from
Closed

Dockerfile to build and use as a Docker container #269

wants to merge 1 commit into from

Conversation

andyshinn
Copy link

This allows the project to be built and run as a Docker container. To build the container:

$ docker build -t generatedata .

Then run with a linked MySQL container:

$ docker run -d --name mysql -e MYSQL_DATABASE=gd -e MYSQL_USER=gd -e MYSQL_PASSWORD=d0ck3ry0 -e MYSQL_ROOT_PASSWORD=d0ck3ry0 mysql
73d96ae40df3e210d7f2b4b31b7dae8d577235127c79f227e9fff220f536d6bd
$ docker run -d --name generatedata -p 8888:8888 --link mysql:mysql generatedata
4b4b0e1a4d3b214daaf2d6462e5d927220d696ed20ac7a8210d02cfd576af466

You can then get to the web interface at 0.0.0.0:8888 and set database hostname to mysql and the appropriate credentials set by the MySQL container environment variables. This can be a great alternative to a virtual machine when if a user already has Docker available as a host.

@benkeen
Copy link
Owner

benkeen commented May 26, 2015

Thanks, @andyshinn! I really must spend some time to learn about Docker.

I'll leave this open in the meantime, but there's also this repo for a Docker-packaged generatedata:
https://github.com/mvisonneau/docker-generatedata

@benkeen
Copy link
Owner

benkeen commented May 26, 2015

I've linked to this PR on the main README.

@benkeen benkeen closed this May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants