Auto-merge for PR #724 via VersionBot

fix: Apply device name before generating container config
This commit is contained in:
resin-io-versionbot[bot] 2018-08-13 09:49:50 +00:00 committed by GitHub
commit 233f4af1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 10 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## v7.16.5 - 2018-08-13
* Fix: Apply device name before generating container config #724 [Cameron Diver]
## v7.16.4 - 2018-08-07
* Fix: Restart a service when it's memory limit changes #721 [Cameron Diver]

View File

@ -1,7 +1,7 @@
{
"name": "resin-supervisor",
"description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.",
"version": "7.16.4",
"version": "7.16.5",
"license": "Apache-2.0",
"repository": {
"type": "git",

View File

@ -101,13 +101,14 @@ module.exports = class ServiceManager extends EventEmitter
return @docker.getContainer(existingService.containerId)
.catch NotFoundError, =>
conf = service.toContainerConfig()
nets = service.extraNetworksToJoin()
@config.get('name')
.then (deviceName) =>
service.environment['RESIN_DEVICE_NAME_AT_INIT'] = deviceName
conf = service.toContainerConfig()
nets = service.extraNetworksToJoin()
@logger.logSystemEvent(logTypes.installService, { service })
@reportNewStatus(mockContainerId, service, 'Installing')