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

Docker #356

Closed
wants to merge 4 commits into from
Closed

Docker #356

wants to merge 4 commits into from

Conversation

msabramo
Copy link
Contributor

Changes to make it possible to package up a warehouse development environment with Docker. This makes it much easier to get started with Warehouse development, because it bundles PostgreSQL, Redis, Elasticsearch and it has pre-built cffi and such.

I have a pre-built image at https://registry.hub.docker.com/u/msabramo/warehouse/

So one could run warehouse by doing:

  • docker pull msabramo/warehouse
  • docker run -i -t -P msabramo/warehouse

@msabramo
Copy link
Contributor Author

It would be nice to have a data dump, as outlined in #343, so the Docker container could come with some data and be a better demo.

@msabramo
Copy link
Contributor Author

I realized that I used an old version of Elasticsearch (0.90.7); I'm going to try to update it to the newest version (1.4.2).

so no password is necessary
Otherwise you have to anticipate every possible host, which is
impossible.
@msabramo
Copy link
Contributor Author

Updated to use Elasticsearch 1.4.2

@msabramo
Copy link
Contributor Author

Test failures are bogus and I think that they are resolved by #352 and #354.

@alex
Copy link
Member

alex commented Feb 3, 2015

Running everythign in the same docker container doesn't seem like the right approach to me, it seems like you want to use something like fig for this.

@msabramo
Copy link
Contributor Author

msabramo commented Feb 3, 2015

Yeah, it's been a while since I've looked at fig. Maybe I'll look again.

I thought that everything in one Docker container would be the simplest thing to get a dev environment going. I definitely wasn't thinking that it would be used in production like this.

Though, IIRC, fig also targets dev environments so maybe I should look at it again.

@dstufft
Copy link
Member

dstufft commented Feb 28, 2015

I'm going to close this, I've started porting Warehouse over to Pyramid to ease the concerns of the custom framework-ish thing I've got going on here. That work is on the pyramid branch inside this repository. As part of that I've set it up so that a development environment can be spun up inside of Docker containers using fig.

@dstufft dstufft closed this Feb 28, 2015
@msabramo
Copy link
Contributor Author

Check out Docker Compose -- it's the next generation of fig.

@dstufft
Copy link
Member

dstufft commented Feb 28, 2015

Open an issue to look at switching to that please!

@msabramo
Copy link
Contributor Author

#361

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.

3 participants