QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
793 stars 214 forks source link

Docker container not reading haproxy template path #244

Open dharm187 opened 6 years ago

dharm187 commented 6 years ago

Hello,

I have started Bamboo as a Docker Container. After starting everything goes fine. But when i tries to pass my custom haproxy template path, It is not reading it. I used below command to start it:

docker run -t -i --rm -p 8000:8000 -p 80:80 \ -e MARATHON_ENDPOINT=http://1.1.5.3:8080,http://1.1.5.5:8080 \ -e MARATHON_USER=xxxxxxxxxx \ -e MARATHON_PASSWORD=xxxxxxxxx \ -e BAMBOO_ENDPOINT=xxxxxxxxxxx \ -e BAMBOO_ZK_HOST=xxxxxxxxxxxxxx \ -e BAMBOO_ZK_PATH=/bamboo \ -e BIND=":8000" \ -e HAPROXY_TEMPLATE_PATH="/opt/bamboo/haproxy_template.cfg" \ -e CONFIG_PATH="config/production.example.json" \ -e BAMBOO_DOCKER_AUTO_HOST=true \ bamboo

It is giving error as below: Failed to update HAProxy configuration: open /opt/bamboo/haproxy_template.cfg: no such file or directory

Where I am going wrong?

Thanks

j1n6 commented 6 years ago

Just from the command line, it looks like you haven’t pass custom volume mount to the container?

Sent from my iPhone

On 23 Oct 2017, at 15:59, dharm187 notifications@github.com wrote:

Hello,

I have started Bamboo as a Docker Container. After starting everything goes fine. But when i tries to pass my custom haproxy template path, It is not reading it. I used below command to start it:

docker run -t -i --rm -p 8000:8000 -p 80:80 -e MARATHON_ENDPOINT=http://1.1.5.3:8080,http://1.1.5.5:8080 -e MARATHON_USER=xxxxxxxxxx -e MARATHON_PASSWORD=xxxxxxxxx -e BAMBOO_ENDPOINT=xxxxxxxxxxx -e BAMBOO_ZK_HOST=xxxxxxxxxxxxxx -e BAMBOO_ZK_PATH=/bamboo -e BIND=":8000" -e HAPROXY_TEMPLATE_PATH="/opt/bamboo/haproxy_template.cfg" -e CONFIG_PATH="config/production.example.json" -e BAMBOO_DOCKER_AUTO_HOST=true bamboo

It is giving error as below: Failed to update HAProxy configuration: open /opt/bamboo/haproxy_template.cfg: no such file or directory

Where I am going wrong?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.