gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

Any known good Docker containers

Open anxiousmodernman opened this issue 8 years ago • 2 comments

I use a version of this lib in my tests, and it would be convenient to use a docker container.

Are there any known Docker containers that wrap up nginx + jvm + gatekeeper, but do not include zookeeper?

anxiousmodernman avatar May 02 '16 16:05 anxiousmodernman

I don't currently have a Docker build, but if you'd like to contribute one I'd gladly accept it.

Xorlev avatar May 02 '16 17:05 Xorlev

I may be able to give this a shot. But I'm basically nowhere with it at the moment. I am developing a service that is going to sit behind a gatekeeper+nginx at the edge. Right now I am hardcoding the nginx config, just to get things going. I have an nginx container, but no gatekeeper.

To dockerize this project, I'd recommend:

  • a container with nginx + gatekeeper bundled together
  • a way to mount appropriate configs from outside the container
  • zookeeper running in a separate container
  • docker-compose.yml for describing the dependency between gatekeeper and zookeeper

Something like

zk:
  image: some/public/zookeeper
gatekeeper:
  build: .  # reference the Dockerfile in this project's root
  links:
    - zk    # establish a networking link to zk, bring up zk first

I've had trouble dockerizing Java projects before, since it's hard to avoid "baking" the configs into the container itself. On one level, this is fine, since the container is self-contained. On another level, it sucks to have to rebuild when your configs change.

I will fork and see if I can whip something up.

anxiousmodernman avatar May 03 '16 17:05 anxiousmodernman