2014-05-11 23:15:10 +00:00
|
|
|
module.exports = config =
|
2014-07-15 16:51:20 +00:00
|
|
|
apiEndpoint: process.env.API_ENDPOINT ? 'https://api.resin.io'
|
|
|
|
registryEndpoint: process.env.REGISTRY_ENDPOINT ? 'registry.resin.io'
|
2014-05-11 23:15:10 +00:00
|
|
|
pubnub:
|
2014-07-15 16:51:20 +00:00
|
|
|
subscribe_key: process.env.PUBNUB_SUBSCRIBE_KEY ? 'sub-c-bananas'
|
|
|
|
publish_key: process.env.PUBNUB_PUBLISH_KEY ? 'pub-c-bananas'
|
|
|
|
mixpanelToken: process.env.MIXPANEL_TOKEN ? 'bananasbananas'
|
|
|
|
dockerSocket: process.env.DOCKER_SOCKET ? '/run/docker.sock'
|
2014-08-05 14:18:19 +00:00
|
|
|
localImage: process.env.SUPERVISOR_IMAGE ? 'resin/rpi-supervisor'
|
|
|
|
configMountPoint: process.env.CONFIG_MOUNT_POINT ? '/mnt/mmcblk0p1/config.json'
|
2014-08-14 21:32:03 +00:00
|
|
|
ledFile: process.env.LED_FILE ? '/sys/class/leds/led0/brightness'
|
2014-10-01 16:00:21 +00:00
|
|
|
bootstrapRetryDelay: process.env.BOOTSTRAP_RETRY_DELAY_MS ? 30000
|
2014-10-03 17:42:32 +00:00
|
|
|
restartSuccessTimeout: process.env.RESTART_SUCCESS_TIMEOUT ? 60000
|
2014-09-03 23:01:27 +00:00
|
|
|
successMessage: 'SUPERVISOR OK'
|
2014-08-14 12:35:05 +00:00
|
|
|
|
2014-09-30 18:13:33 +00:00
|
|
|
config.heartbeatEndpoint = config.apiEndpoint + '/ping'
|
|
|
|
|
2014-08-14 12:35:05 +00:00
|
|
|
config.remoteImage = config.registryEndpoint + '/' + config.localImage
|
|
|
|
|
2014-08-05 14:18:19 +00:00
|
|
|
config.supervisorContainer =
|
2014-09-15 11:31:14 +00:00
|
|
|
Volumes:
|
2014-07-17 13:45:10 +00:00
|
|
|
'/boot/config.json': {}
|
|
|
|
'/data': {}
|
|
|
|
'/run/docker.sock': {}
|
|
|
|
'/mnt/fib_trie': {}
|
|
|
|
Binds: [
|
2014-08-05 14:18:19 +00:00
|
|
|
config.configMountPoint + ':/boot/config.json'
|
2014-07-17 13:45:10 +00:00
|
|
|
'/var/run/docker.sock:/run/docker.sock'
|
2014-07-23 13:17:54 +00:00
|
|
|
'/resin-data/resin-supervisor:/data'
|
2014-07-17 13:45:10 +00:00
|
|
|
'/proc/net/fib_trie:/mnt/fib_trie'
|
|
|
|
]
|