Ensure we download docker images and have an app data volume on configure

Part of #227
This commit is contained in:
Johannes Zellner
2017-02-17 15:00:55 +01:00
parent eb4ab8defd
commit b3a5dafee0
+6
View File
@@ -526,6 +526,12 @@ function configure(app, callback) {
updateApp.bind(null, app, { installationProgress: '35, Registering subdomain' }),
registerSubdomain.bind(null, app, true /* overwrite */),
updateApp.bind(null, app, { installationProgress: '40, Downloading image' }),
docker.downloadImage.bind(null, app.manifest),
updateApp.bind(null, app, { installationProgress: '45, Ensuring volume' }),
createVolume.bind(null, app),
// re-setup addons since they rely on the app's fqdn (e.g oauth)
updateApp.bind(null, app, { installationProgress: '50, Setting up addons' }),
addons.setupAddons.bind(null, app, app.manifest.addons),