Girish Ramakrishnan
517e6737fb
Remove addons dep from cloudron.js
2015-03-26 18:51:34 -07:00
Girish Ramakrishnan
3e765f79dc
Fix typo
2015-03-26 12:25:02 -07:00
Girish Ramakrishnan
cd09d6762b
Restore app from last known backup
2015-03-26 10:48:43 -07:00
Girish Ramakrishnan
4686279697
Move backupApp into cloudron.js
2015-03-26 00:15:47 -07:00
Girish Ramakrishnan
d8d590c24c
Fix typo
2015-03-25 23:49:52 -07:00
Girish Ramakrishnan
40f474e5ed
Backup app before update
2015-03-25 22:52:06 -07:00
Girish Ramakrishnan
9b38e9a6f2
Create redis volume inside the app dir
2015-03-25 20:01:19 -07:00
Girish Ramakrishnan
8bcab8d084
Delegate data volume creation to script
...
This will be used to create a btrfs subvolume for each app later
2015-03-25 19:36:44 -07:00
Girish Ramakrishnan
a50d820146
Fix failing createVolume test
2015-03-25 09:33:28 -07:00
Girish Ramakrishnan
7e1c0655ce
Restructure app data
...
This prepares the code to use separate volumes for each app
appicons are moved into box/appicons/{appid}.png. Note that
these icons are not app specific data and are actually data
of the webadmin.
data
{app.id}
data/
2015-03-25 02:02:45 -07:00
Johannes Zellner
8cb10ad4a6
Skip subdomain registering in LOCAL mode
...
For test we have a hock instance
2015-03-24 10:46:09 +01:00
Johannes Zellner
ab14a2fe5d
Skip dns propagation check based on config.CLOUDRON
2015-03-24 10:06:53 +01:00
Girish Ramakrishnan
327f3ccc36
Use subdomain status API to check if dns propagated
...
Fixes #285
2015-03-23 21:09:36 -07:00
Girish Ramakrishnan
69307fe3e8
Set value for A records
2015-03-23 18:46:31 -07:00
Girish Ramakrishnan
83c7317f86
Be more explicit on the states that are resumed
2015-03-23 14:53:24 -07:00
Girish Ramakrishnan
5afab7663b
Add manifestformat
2015-03-22 13:19:46 -07:00
Girish Ramakrishnan
989e1729b1
Appstore icon url has changed
2015-03-22 12:26:41 -07:00
Girish Ramakrishnan
07986466fc
Use manifestformat.js to parse the manifest
2015-03-20 23:04:43 -07:00
Girish Ramakrishnan
fa8c02cfac
Delete container in restore code path
...
createContainer should not check for 409. If it does, it then needs to
get the containerId somehow.
2015-03-17 17:51:02 -07:00
Johannes Zellner
b1a2a2009e
Make token types and prefix tokendb 'consts'
2015-03-17 16:49:54 +01:00
Johannes Zellner
72200796f2
Rename ACCESS_TOKEN to CLOUDRON_TOKEN for apps environment
2015-03-15 13:15:40 +01:00
Girish Ramakrishnan
fc903ed48f
Fix forwarding with boot2docker
...
Looks like they changed how ports are exposed. There are two
interfaces now:
1. nat network which we use currently to explicitly open ports.
this was how it was before.
2. the new host based network which exposes all ports to mac.
we just use boot2docker ip. this is quite nice but we don't use this.
https://github.com/boot2docker/boot2docker#container-port-redirection
2015-03-14 11:53:14 -07:00
Girish Ramakrishnan
9807901880
hostPort is saved as int
...
Part of #266
2015-03-14 11:53:14 -07:00
Girish Ramakrishnan
f574edf20d
cloudron has moved to 0.12
2015-03-14 11:53:13 -07:00
Johannes Zellner
8b79379f16
Inject Number.MAX_SAFE_INTEGER for older node versions
2015-03-13 17:26:28 +01:00
Johannes Zellner
aa8d4c243f
Fixup some linter issues
2015-03-13 16:06:11 +01:00
Johannes Zellner
0273c63f55
Inject ACCESS_TOKEN into container environment
...
Fixes #264
2015-03-13 16:00:20 +01:00
Johannes Zellner
2858b5c8cc
Actually allocate access tokens for apps in apptask
2015-03-13 15:51:48 +01:00
Johannes Zellner
2d60aa6767
Implement access token allocation helpers in apptask
2015-03-13 15:25:18 +01:00
Girish Ramakrishnan
b8ba1f8b57
Delete old container before creating new one in install task
...
Without this app installation won't work after restart if installation
did not succeed or was mid-way previously
Fixes #259
2015-03-10 20:33:36 -07:00
Girish Ramakrishnan
f89c07e8e4
Add debug message to indicate update
2015-03-10 10:37:43 -07:00
Johannes Zellner
419e2e8b61
Skip dns check in apptask if zoneName is localhost
2015-03-10 12:16:10 +01:00
Girish Ramakrishnan
5aac5bd56f
Expose the ports when creating container
2015-03-09 19:17:44 -07:00
Girish Ramakrishnan
bbe982f14f
Specify HostIp explicitly
2015-03-09 15:23:44 -07:00
Girish Ramakrishnan
49b88fc9be
Just call it portBindings, ui changes are too many otherwise
2015-03-09 00:43:09 -07:00
Girish Ramakrishnan
6a6216df6d
Drop containerPort from appPortBindings
2015-03-08 19:53:25 -07:00
Girish Ramakrishnan
a62800791d
Change format of portBindings
2015-03-08 19:19:45 -07:00
Girish Ramakrishnan
b2e6c07007
superagent provides binary data in res.body
2015-02-27 19:42:17 -08:00
Girish Ramakrishnan
d0612a0107
Cache manifest.iconUrl if it is present
2015-02-27 18:40:23 -08:00
Girish Ramakrishnan
fc07c5a564
install and update app using manifest instead of verison
...
Part of #224
2015-02-27 15:09:18 -08:00
Girish Ramakrishnan
472f6540ef
Move validateManifest into apps
2015-02-27 13:34:17 -08:00
Johannes Zellner
7d4446cd94
Use hat() instead of uuid() where we want tokens
...
Fixes #218
2015-02-27 16:25:12 +01:00
Girish Ramakrishnan
f256f98a35
wait for container after stopping it
...
It's not clear if stop container actually waits but I assume not
2015-02-27 01:11:17 -08:00
Johannes Zellner
bff5b735bf
Fix icons of installed apps
...
Fixes #216
2015-02-26 16:23:12 +01:00
Girish Ramakrishnan
d367500dc3
Pass isAdmin instead of appid to render the appconfig.ejs
...
Becuase the ejs file does not know about constants
Part of #199
2015-02-25 13:31:27 -08:00
Girish Ramakrishnan
890a06c4c5
Move admin related constants to separate file
...
Part of #199
2015-02-25 13:31:22 -08:00
Girish Ramakrishnan
09b607b08a
Give different prefixes for id
2015-02-24 01:57:03 -08:00
Girish Ramakrishnan
037b11d585
Revert "Setup logrotate automatically for all apps"
...
This reverts commit ed67f9d494 .
This was committed unintentionally
2015-02-24 01:50:28 -08:00
Girish Ramakrishnan
0e2dcaf21a
debug the installationProgress
2015-02-24 00:38:55 -08:00
Girish Ramakrishnan
fabdb355da
Check for manifestVersion mandatory field
2015-02-23 16:13:38 -08:00