can not use rabbitmq config in docker build OS X

Initially I was setting the rabbitmq config file like this (Dockerfile):

  RUN echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config

But now I need to configure the shovel plugin and would like to use an actual config file from source. To start out simple, the config file only contains the loopback_users setting. Here’s the Dockerfile statements:

  • Deploy a docker image from a registry with basic auth
  • can't connect to docker container from outside
  • Mount (link) a single file from a docker container volume
  • AWS Cloudwatch logs with Docker Container - NoCredentialProviders: no valid providers in chain
  • How to retrieve the newest tag for an image?
  • How to control fluentd log tag from Docker
  •   ENV RABBITMQ_CONFIG_FILE /etc/rabbitmq/rabbitmq
      ADD rabbitmq.config /etc/rabbitmq/rabbitmq.config
      #failed user setup script
      #ADD rabbitmq_userconfig.sh /etc/rabbitmq/rabbitmq_userconfig.sh
      #RUN chmod 755 /usr/sbin/rabbitmq_userconfig.sh
    

    This doesn’t fail per se because rabbit starts and I can get to the web interface but the guest account isn’t allowed to log in because I have to use a diff IP than localhost and need the looopback setting to be applied. So this tells me that the loopback_users setting wasn’t applied.

    rabbitmq is started via supervisor, the process starts successfully:

      [program:rabbitmq-server]
      command=/usr/sbin/rabbitmq-server
      environment=RABBITMQ_CONFIG_FILE=/etc/rabbitmq/rabbitmq
      priority=200
    

    To get around the guest/localhost issue I tried adding a new user running a script after the image started but the process errors. I can’t get to the root cause because I can’t hook into the running container to run nsenter or any other diagnostic tool. I’m not very Linux savvy so my knowledge is basic.

    There seems to be some disconnect while running docker via boot2docker on OS X. I had similar issues trying to configure elasticsearch and ended up configuring es via a nodejs app – not pleased. I don’t want to resort to another hack like that.

    Thanks!

  • Can not add a volume to Mongodb Docker instance
  • Is it safe to export tarball of running docker container?
  • Multiple assemblies with equivalent identity have been imported: '<in-memory assembly>' and '<in-memory assembly>' [Solved]
  • Can Jprofile connect to JVM running in docker
  • Limit the number of exited containers on a host (1.8.3)
  • Docker + GNU Screen lags
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.