Skip to content

cf-containers-broker job from docker/30.1.2

Github source: edd6e4d or master branch

Properties

allocate_docker_host_ports

Allocate Docker host ports when creating a container

Default
true

cf

api_url

URL of the CloudFoundry Cloud Controller for user auth to dashboards

cookie_secret

A unique secret key, used to sign sessions

docker_url

Docker URL (IP/Socket)

Default
unix:///var/vcap/sys/run/docker/docker.sock

enable_host_port_envvar

If provisioning services with “allocate_docker_host_ports: true” you can optionally enable the addition of a DOCKER_HOST_PORT_nnnn env var for each exposed port. This will create the container and then recreate the container with an additional DOCKER_HOST_PORT_nnnn environment variable for each exposed port. If you wish to disable this two-step provisioning process, set to true

Default
false

env

http_proxy

HTTP proxy

https_proxy

HTTPS proxy

no_proxy

List of comma-separated hosts to skip connecting to the proxy

external_host

Explicit host for dashboard URLs and service broker registration

external_ip

External IP address used to register the broker

fetch_images

Fetch new/updated container images on restart

Default
true

max_containers

Max number of containers

Default
"0"

name

Register broker with this name

Default
docker

password

Broker’s basic auth password

port

Unicorn listen port

Default
"80"

services

Services and plans offered by the broker

session_expiry

Session expiry time of the session

Default
"86400"

skip_ssl_validation

Determines whether dashboard verifies SSL certificates when communicating with Cloud Controller and UAA

Default
true

ssl_enabled

Determines use of https in dashboard url and in callback uri for calls to UAA

Default
false

unicorn

worker_processes

Unicorn worker processes. If the number of worker processes > 1 then you must disable the allocate_docker_host_ports property

Default
"1"

update_containers

Restart all containers with latest configuration/image on restart

Default
true

username

Broker’s basic auth username

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/cf-containers-broker/ directory (learn more).

  • bin/ctl (from bin/ctl)
  • bin/job_properties.sh (from bin/job_properties.sh.erb)
  • config/settings.yml (from config/settings.yml.erb)
  • config/unicorn.conf.rb (from config/unicorn.conf.rb.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.