Girish Ramakrishnan
1e54581c40
clear timer
2016-06-20 22:39:11 -05:00
Girish Ramakrishnan
b59739ec54
fix typo
...
this is sad. why didn't jshint catch this?
2016-06-20 21:38:39 -05:00
Girish Ramakrishnan
bb9bfd542d
fix bug in querying mail server IP
2016-06-20 18:26:22 -05:00
Girish Ramakrishnan
b723f9e768
errored apps can be reconfigured
...
this is especially true when coming from a restore because the app
always has a good backup anyway.
2016-06-20 15:07:57 -05:00
Girish Ramakrishnan
6bc14ea7e4
resumeTasks only when configured and platform ready
2016-06-20 14:46:52 -05:00
Girish Ramakrishnan
cabed28f1e
use redisName instead
2016-06-20 13:15:10 -05:00
Girish Ramakrishnan
ea74e389d3
make generateToken less stronger to fix UI layout issues
2016-06-20 13:13:13 -05:00
Girish Ramakrishnan
c37d914518
platform: rename from legacy to corrupt
2016-06-20 11:59:43 -05:00
Girish Ramakrishnan
86b8fe324e
add missing comma
2016-06-20 11:15:25 -05:00
Girish Ramakrishnan
8412db0796
add missing brackets
2016-06-20 09:50:03 -05:00
Girish Ramakrishnan
3c305a51ce
make sure hostname is unset
2016-06-18 17:58:01 -05:00
Girish Ramakrishnan
3ec29dc9e1
Do not set hostname of app containers
...
do no set hostname of containers to location as it might conflict with addons names. for example, an app installed in mail
location may not reach mail container anymore by DNS. We cannot set hostname to fqdn either as that sets up the dns
name to look up the internal docker ip. this makes curl from within container fail
Note that Hostname has no effect on DNS. We have to use the --net-alias for dns.
Hostname cannot be set with container NetworkMode
2016-06-18 17:53:54 -05:00
Girish Ramakrishnan
a3d185e653
fix typo
2016-06-18 14:51:49 -05:00
Girish Ramakrishnan
c2da3da035
set force to false explicitly
2016-06-18 13:24:27 -05:00
Girish Ramakrishnan
7e93c23110
set the lastBackupId to backup from
2016-06-17 18:41:29 -05:00
Girish Ramakrishnan
7009b9f3ac
implement clone
2016-06-17 17:45:14 -05:00
Girish Ramakrishnan
0609a90d2a
add CLONE installation state
2016-06-17 16:56:15 -05:00
Girish Ramakrishnan
fe62aba4d7
make appdb.add take a data object
2016-06-17 16:43:35 -05:00
Girish Ramakrishnan
584df9a6da
fix redis query
2016-06-17 12:39:29 -05:00
Girish Ramakrishnan
f31c43bbc3
fix EPIPE issue by using http instead of superagent
2016-06-17 11:12:20 -05:00
Girish Ramakrishnan
10ebff2edf
fix response to say cloudron network
2016-06-17 10:10:18 -05:00
Girish Ramakrishnan
cc1755105c
do not allow access if app is not found
2016-06-17 10:08:41 -05:00
Girish Ramakrishnan
6c5a3997cb
fix clientSecret.length test
2016-06-17 10:07:55 -05:00
Girish Ramakrishnan
2017d668a9
use 128 byte passwords
2016-06-17 09:49:25 -05:00
Girish Ramakrishnan
7e57f31d14
create cloudron network in test
2016-06-17 09:18:15 -05:00
Girish Ramakrishnan
de0d42e52f
search cloudron network for the apps
2016-06-17 09:18:15 -05:00
Girish Ramakrishnan
dbadbd2c4e
bump all the container versions
2016-06-17 09:18:15 -05:00
Girish Ramakrishnan
d51d2e5131
start addons and apps in the cloudron network
...
also remove getLinkSync, since we don't use linking anymore
2016-06-17 09:18:10 -05:00
Girish Ramakrishnan
be2c7a97b3
Use docker command instead of api to create redis container
2016-06-16 18:02:51 -05:00
Girish Ramakrishnan
2ab13d587a
remove dead function
2016-06-16 17:24:38 -05:00
Girish Ramakrishnan
f13f24c88d
Just use docker commands
2016-06-16 15:41:50 -05:00
Girish Ramakrishnan
91bc45bd4e
not sure why this is required but it makes the test more stable
2016-06-16 15:09:46 -05:00
Girish Ramakrishnan
a75b9c1428
remove debugs
2016-06-16 14:59:20 -05:00
Girish Ramakrishnan
d837e9f679
make test more reliable
2016-06-16 14:50:49 -05:00
Girish Ramakrishnan
d5ffa53e70
create an isolated docker network named cloudron
...
we will move from linked containers to an isolated network. This
has the main advantage that linked containers can be upgraded.
For example, I can update the mysql container independently without
breaking the apps that require it. Apps will only see some minor
downtime and will need to reconnect.
2016-06-16 06:59:47 -07:00
Girish Ramakrishnan
fee6f3de0f
configure/restoreInstalledApps must always succeed
2016-06-16 06:50:34 -07:00
Girish Ramakrishnan
f15f3c9052
node-ify setup_infra.sh
2016-06-15 05:26:40 -07:00
Girish Ramakrishnan
741fe75def
fix progress message
2016-06-14 14:42:29 -07:00
Girish Ramakrishnan
a5a1526023
Allow configure command when in configuration state
...
Currently, we only allow restore (from backup) and uninstall. If configure
is taking very long (like external domain) and someone wants to reconfigure
we should let them.
We are sort of trying to think of 'reconfigure' as 'retry' in case of
external errors.
2016-06-14 14:13:47 -07:00
Girish Ramakrishnan
26f318477b
Do not send crash logs for apptask cancellations
2016-06-14 14:13:47 -07:00
Girish Ramakrishnan
060d9e88ef
Pass manifest to backupApp
2016-06-14 11:32:29 -07:00
Girish Ramakrishnan
b174765992
delete unused addonsa fter backup
2016-06-13 23:07:41 -07:00
Girish Ramakrishnan
9c2d217176
fix typo
2016-06-13 23:04:43 -07:00
Girish Ramakrishnan
3197349058
Fix app backup before updates
...
we were passing the current manifest to the backup code which meant that
the app version and manifest was incorrect.
2016-06-13 21:19:29 -07:00
Girish Ramakrishnan
5f3378878e
remove lastBackupConfig
2016-06-13 19:19:28 -07:00
Girish Ramakrishnan
53cd45496b
parse the response
2016-06-13 18:28:51 -07:00
Girish Ramakrishnan
942339435a
return config correctly
2016-06-13 18:04:22 -07:00
Girish Ramakrishnan
2bd6519795
add assert
2016-06-13 18:02:57 -07:00
Girish Ramakrishnan
1763c36a0b
restore from the backup's config.json
...
To summarize what we are doing is that restore is simply getting old data and
old code. Config is not changed. If config is required, then it has to come
in the restore REST parameter. Otherwise, there is too much magic.
https://blog.smartserver.io/2016/06/13/app-restore/
2016-06-13 16:54:59 -07:00
Girish Ramakrishnan
2c0eb33625
use apps.getAppConfig when generating config.json
2016-06-13 15:11:49 -07:00