# App name
name: amour
# Port for the server to listen on
port: 3010
# The host time bind to.
host: '0.0.0.0'
hostname: localhost
# Can be any { socketPath: '/path' } or { host: 'somehost', port: 9999 }
# See dockerode constructor for details: https://github.com/apocas/dockerode
docker:
  socketPath: '/var/run/docker.sock'
# name of the instance used in status updates
instanceName: 'ProboCI-dev'
# prefix to use for container names
containerNamePrefix: "probo"
# container capacity of this container manager instance
containerCapacity: -1  # -1 is unlimited or not set
#proxyStartupPause: 2s   # Amount of time to pause after a proxy request starts a container

# If a container proxy lookup needs to start a non-running (but existing)
# container, it'll automatically stop the container after this timeout
# However, every time the proxy's lookup cache expires and it sends another
# proxy lookup request to the Container Manager, that container's idle timeout
# is reset again to this timeout value
containerIdleTimeout: 30m # can use time units here. no units = ms

# Prefixes all routes so that the app can be namespaced.
prefix: ''
# If a cotnainer is not specified in the repository's configuration, use this one.
defaultImage: 'proboci/ubuntu-14.04-lamp:php-5.6'
# The default image used if none is specified.
image: 'proboci/ubuntu-14.04-lamp:php-5.6'
# The images used by the host manager
images:
  'proboci/ubuntu-14.04-lamp:php-5.5':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
  'proboci/ubuntu-14.04-lamp:php-5.6':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
  'proboci/ubuntu-14.04-lamp:php-7.0':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
  'proboci/ubuntu-14.04-lamp:php-7.1':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
  'proboci/ubuntu-16.04-lamp:php-7.0':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
  'proboci/ubuntu-16.04-lamp:php-7.1':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
  'proboci/ubuntu-16.04-lamp:php-7.2':
    services:
      cleanapache:
        command: 'rm /var/run/apache2/apache2.pid'
      apache:
        command: '/usr/sbin/apache2ctl -D FOREGROUND'
        port: 80
      memcached:
        command: memcached -u memcache
      mysql:
        command: 'mysqld_safe'
      redis:
        command: 'redis-server'
      solr:
        command: '/opt/solr/bin/solr start -f -force'
      varnish:
        command: 'service varnish start'
      php_log:
        command: 'tail -F /var/log/php/error.log'
dataDir: './container-manager-data'
# Volumes to mount into created containers.
binds: []
# Settings for the github handler
# port
githubWebhookPath: '/github-webhook'
githubWebhookSecret: 'CHANGE-ME'
# This is temporary, we will need a proper oauth system to get the tokens that should be used.
githubAPIToken: 'personal token here'

# Settings for the API or Container Manager server
# port
api:
  url: "http://localhost:3000"
  token: "API token here"

# loom (log aggregator server)
loom:
  url: "http://localhost:3060"
  token: "API token here"

# asset server (must NOT be localhost because it's called from within container)
assets:
  url: "http://localhost:3070"
  token: "API token here"

# auth credentials service (i.e., for stash)
auth:
  url: "http://localhost:3000/auth_lookup"


buildsEventStream:
  # currently supported plugins are: Kafka and Memory
  plugin: 'Memory'

# buildsEventStream:
#   # currently supported plugins are: Kafka and Memory
#   plugin: 'Kafka'

#   # config for kafaka; memory plugin doesn't need a config
#   config:
#     version: 1
#     topic: build_events

#     # see https://github.com/SOHU-Co/kafka-node#clientconnectionstring-clientid-zkoptions-noackbatchoptions
#     # for available options
#     kafkaClientOptions:
#       connectionString: 'localhost:2181'


