mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 16:35:23 +00:00
Rename pullImage to pullAndProtectImage to make it a bit clearer that it isn't a simple pull
This commit is contained in:
parent
707ed7e1f6
commit
6cb4b090c5
@ -45,7 +45,7 @@ exports.up = (path, onStatus) ->
|
||||
throw new Error("Service #{serviceName} has no image specified.") if !service.image
|
||||
docker.getImage(service.image).inspectAsync()
|
||||
.catch ->
|
||||
dockerUtils.pullImage(service.image, reportStatus)
|
||||
dockerUtils.pullAndProtectImage(service.image, reportStatus)
|
||||
.then ->
|
||||
runComposeCommand(['up', '-d'], path, onStatus)
|
||||
|
||||
|
@ -200,7 +200,7 @@ do ->
|
||||
.catch (err) ->
|
||||
res.status(500).send(err?.message or err or 'Unknown error')
|
||||
|
||||
exports.pullImage = (image, onProgress) ->
|
||||
exports.pullAndProtectImage = (image, onProgress) ->
|
||||
repoTag = buildRepoTag(image)
|
||||
Promise.using writeLockImages(), ->
|
||||
knex('image').insert({ repoTag })
|
||||
|
Loading…
x
Reference in New Issue
Block a user