mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-20 03:36:41 +00:00
Pass the correct working_dir to the container config, and compare containers for working dir changes
We were getting the correct working dir from the compose or image config, but not really using it. Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
44e5778acc
commit
557b6a8d07
@ -523,6 +523,7 @@ module.exports = class Service
|
||||
ipc: container.HostConfig.IpcMode
|
||||
macAddress: container.Config.MacAddress
|
||||
user: container.Config.User
|
||||
workingDir: container.Config.WorkingDir
|
||||
}
|
||||
# I've seen docker use either 'no' or '' for no restart policy, so we normalise to 'no'.
|
||||
if service.restartPolicy.Name == ''
|
||||
@ -584,6 +585,7 @@ module.exports = class Service
|
||||
Labels: @labels
|
||||
Domainname: @domainname
|
||||
User: @user
|
||||
WorkingDir: @workingDir
|
||||
HostConfig:
|
||||
Memory: @memLimit
|
||||
MemoryReservation: @memReservation
|
||||
@ -687,6 +689,7 @@ module.exports = class Service
|
||||
'ipc'
|
||||
'macAddress'
|
||||
'user'
|
||||
'workingDir'
|
||||
]
|
||||
arraysToCompare = [
|
||||
'volumes'
|
||||
|
Loading…
Reference in New Issue
Block a user