Girish Ramakrishnan
0e825272ae
ensureCertificate now takes app object
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
500fb452e7
use altDomain when present to configure certs and nginx
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
6eea2fef9a
retry fetching icon
...
e2e randomly fails with EAI_AGAIN
2016-04-20 00:40:22 -07:00
Girish Ramakrishnan
73898505b0
remove jslint header
2016-04-19 16:59:12 -07:00
Girish Ramakrishnan
b9857cdb65
use async.retry
2016-04-18 22:06:49 -07:00
Girish Ramakrishnan
db6d8deec4
fix another typo
2016-04-15 18:25:46 -07:00
Girish Ramakrishnan
322e9faee7
rework backup code
...
move all the backup code into backups.js
2016-04-10 20:41:08 -07:00
Girish Ramakrishnan
3499a4cc6c
move requiresOAuthProxy to nginx
...
we have 3 levels
* routes, cron, apptask
* everything else where everyone calls everyone :-)
* the db layer
2016-03-17 11:38:29 -07:00
Johannes Zellner
c167bd8996
Set error in installationProgress also on uninstallation errors
2016-02-24 17:53:21 +01:00
Johannes Zellner
dd18f9741a
Dynamically detect oauth proxy needs in apptask
2016-02-19 16:18:47 +01:00
Johannes Zellner
f731c1ed0b
Dynamically detect if an oauth proxy should be used for an app
2016-02-19 15:44:15 +01:00
girish@cloudron.io
e6d23a9701
stop previous task explicitly
...
there is a race:
1. task is running
2. new task is created overwriting the installationState
3. new task kills the old task of step 1. this results in installationState getting overwritten by 'error' because of the sigkill
4. new task that is launched loses the installationState that was step in 2.
2016-02-09 12:09:20 -08:00
Girish Ramakrishnan
c5e2d9a9cc
download new app image as the first thing in update
...
this will reduce downtime.
2016-02-04 22:49:22 -08:00
girish@cloudron.io
fa1f5cc454
call the multi methods if multipleDatabases is set
2016-02-02 08:41:41 -08:00
Johannes Zellner
16a9cae80e
Allow to specify the restore id
2016-01-17 15:50:20 +01:00
Johannes Zellner
21ca8ac883
Use new getIP() api in apptask
2016-01-05 12:16:39 +01:00
Johannes Zellner
ec93becb17
Add missing asserts
2016-01-05 12:14:39 +01:00
Girish Ramakrishnan
a4ea693c3c
update superagent
...
the latest superchanged changed the meaning of 'error'. Previously,
error implied a network error. With the latest superagent, error means
a REST api error i.e 4xx, 5xx are flagged as errors.
error && !error.response means network error
2015-12-15 09:53:37 -08:00
Girish Ramakrishnan
39c626dc75
more moving of nginx code
2015-12-11 14:48:39 -08:00
Girish Ramakrishnan
a7480c3f29
implement installation of admin certificate via acme
2015-12-11 14:37:55 -08:00
Girish Ramakrishnan
fd985c2011
configure nginx as the last step
...
this allow us to wait for certificate (in the case of LE)
2015-12-10 15:26:36 -08:00
Girish Ramakrishnan
47981004c9
split port reserving to separate function
...
this allows us to move nginx configuration to the bottom of apptask
(required for tls cert download support)
2015-12-10 15:25:15 -08:00
Girish Ramakrishnan
d2c8457ab1
reset health when app is stopped
2015-11-30 15:41:56 -08:00
Girish Ramakrishnan
b6f1ad75b8
merge SubdomainError into subdomains.js like other error classes
2015-11-06 17:58:01 -08:00
Girish Ramakrishnan
d6bff57c7d
subdomains.del now takes array values
2015-10-30 13:30:19 -07:00
Girish Ramakrishnan
bf13b5b931
subdomains.add takes array values
2015-10-30 13:23:43 -07:00
Girish Ramakrishnan
cf8948ac69
console.error to debug
2015-10-28 16:08:12 -07:00
Johannes Zellner
5d4d0c0a86
Add missing fs.
2015-10-28 12:56:09 +01:00
Johannes Zellner
e81db9728a
Set the cert and key dynamically when rendering nginx appconfig
2015-10-28 12:42:04 +01:00
Girish Ramakrishnan
615789a9ad
fix unregisterSubdomain loop
2015-10-27 18:53:06 -07:00
Girish Ramakrishnan
84d96cebee
linter fixes
2015-10-23 16:06:55 -07:00
Girish Ramakrishnan
daba68265c
stop all containers of an app
2015-10-20 00:05:19 -07:00
Girish Ramakrishnan
8530e70af6
delete all containers of an app
2015-10-19 22:09:34 -07:00
Girish Ramakrishnan
15aa4ecc5d
Add docker.createSubcontainer
2015-10-19 21:33:53 -07:00
Girish Ramakrishnan
25d74ed649
createContainer takes optional command
2015-10-19 16:22:35 -07:00
Girish Ramakrishnan
13453552b5
createContainer only takes app object
2015-10-19 16:00:40 -07:00
Girish Ramakrishnan
e5e8eea7ac
make it work without app object
2015-10-19 15:45:43 -07:00
Girish Ramakrishnan
9be2efc4f2
downloadImage only requires manifest now
2015-10-19 15:37:57 -07:00
Girish Ramakrishnan
8d6dd62ef4
refactor container code into docker.js
2015-10-19 14:44:01 -07:00
Girish Ramakrishnan
69d09e8133
use docker.connection
2015-10-19 14:09:20 -07:00
Girish Ramakrishnan
6671b211e0
export a connection property from docker.js
2015-10-19 11:24:21 -07:00
Girish Ramakrishnan
e74c2f686b
remove unused require
2015-10-19 11:05:31 -07:00
Girish Ramakrishnan
c7d5115a56
Remove vbox.js
...
... and all related mac code. It's totally untested at this point and
most likely doesn't work
2015-10-19 10:54:36 -07:00
Girish Ramakrishnan
774ba11a92
Move HostConfig to createContainer
...
Newer docker has obsoleted HostConfig in start container
2015-10-19 10:38:46 -07:00
Girish Ramakrishnan
9c157246b7
add type field to clients table
2015-10-15 17:35:47 -07:00
Johannes Zellner
ae1bfaf0c8
roleUser is gone as well
2015-10-15 12:50:48 +02:00
Girish Ramakrishnan
5d389337cd
make /var/log readonly
...
Expect apps to redirect logs of stdout/stderr
Part of #503
2015-10-15 00:46:50 -07:00
Johannes Zellner
562ce3192f
Print error when apptask.pullImage() failed
2015-10-13 13:25:43 +02:00
Johannes Zellner
4eab101b78
use app.oauthProxy instead of app.accessRestriction
2015-10-13 10:41:57 +02:00
Girish Ramakrishnan
3012f68a56
pullImage: handle stream error
2015-10-12 21:56:34 -07:00