Commit Graph

215 Commits

Author SHA1 Message Date
Girish Ramakrishnan 7b7df404b7 Move mongodb to 0.3.0 2015-05-15 14:53:32 +05:30
Girish Ramakrishnan 015d016cb6 Remove dead code to generate naked_domain.conf 2015-05-01 13:16:18 -07:00
Girish Ramakrishnan 4d2f2b9d44 Rework naked domain code
This greatly simplifies naked domain setup. We simply treat
'' location as a special case. If conflicts happen, we should
report it just like any other location.

naked domain is also not part of settings anymore

Fixes #351
2015-05-01 12:53:08 -07:00
Girish Ramakrishnan c0879494c5 Store tz in db instead of settings sytem tz
This makes restore trivial since we handle tz now in the node
framework and libraries instead of relying on system timezone.

Otherwise, start.sh has to now read the db and set the system
timezone which is not nice since it increases db and start.sh
dependancy.

Fixes #359
2015-04-30 13:29:23 -07:00
Girish Ramakrishnan bf280bcd65 Set cloudron timezone based on ip
Part of #355
2015-04-27 22:57:40 -07:00
Girish Ramakrishnan 712bd59146 change ownership of addons since it is used by redis addon 2015-04-24 19:40:23 -07:00
Girish Ramakrishnan 11aecac6fd Fix typo 2015-04-24 16:54:47 -07:00
Girish Ramakrishnan 125e60f125 Do not generate new password for addons on each update
They need to be generated only on infra upgrade. But start.sh was
generating it all the time and hence the existing addon containers
and the root passwords is going out of sync

Fixes #352
2015-04-24 16:14:34 -07:00
Girish Ramakrishnan 7abf941b82 Add retire option 2015-04-24 13:48:35 -07:00
Girish Ramakrishnan 69f9bee677 Bump the infra version because why not 2015-04-24 10:33:52 -07:00
Johannes Zellner 0a6bb9c531 Fix escaping
Fixes #349
2015-04-24 09:54:33 +02:00
Girish Ramakrishnan 7bb9358646 Change ownership carefully
With the previous approach, addon data got their ownership changed
(and the addons are still running!)
2015-04-23 12:04:02 -07:00
Girish Ramakrishnan 26ba9f999b Simply make INFRA_VERSION a sourceable file
This makes it possible to put comments
2015-04-23 12:04:02 -07:00
Girish Ramakrishnan 820f53b9e3 Revert "010254399a2e21e186b234624ac8f9590c8f0d9f"
Need to recreate admin.conf since splash has overwritten it
2015-04-23 02:25:23 -07:00
Girish Ramakrishnan a84253e3e8 Make splash code override nginx configs based on retire and infra change
Fixes #346
2015-04-23 01:53:54 -07:00
Girish Ramakrishnan 010254399a Create nginx config only for restore and new code paths
In the update code path, the configs are already uptodate
2015-04-23 01:03:27 -07:00
Girish Ramakrishnan ec56b785e8 Save INFRA_VERSION in a file
The splash code needs to access this as well
2015-04-22 23:50:04 -07:00
Girish Ramakrishnan a68a146fe9 Specify an enum for ejs template 2015-04-22 22:40:32 -07:00
Girish Ramakrishnan 83a438e004 create var for mysql root password 2015-04-22 18:09:14 -07:00
Girish Ramakrishnan 719c5f5414 mysql needs to be setup for new cloudrons 2015-04-22 18:05:57 -07:00
Girish Ramakrishnan 60eb2d6fbd -p makes the mkdir safe to use if dir exists 2015-04-22 18:01:51 -07:00
Girish Ramakrishnan 371733bd19 mysql does not need to run as yellowtent user 2015-04-22 16:11:14 -07:00
Girish Ramakrishnan 2c6bec2654 Rename variables 2015-04-22 16:11:14 -07:00
Girish Ramakrishnan cc49cf00a0 Restart collectd 2015-04-22 16:11:11 -07:00
Girish Ramakrishnan 70376fa475 remove unused variable 2015-04-22 15:45:55 -07:00
Girish Ramakrishnan 8909ad08ea Ensure addons dir has correct permissions 2015-04-22 15:45:42 -07:00
Girish Ramakrishnan 97f99623cc Get rid of box_src_tmp_dir
This code is based on old installer logic
2015-04-22 15:38:05 -07:00
Girish Ramakrishnan 7c8b4bdea7 No need to change ownership of BOX_SRC_DIR 2015-04-22 15:36:09 -07:00
Girish Ramakrishnan b3f611ade2 Do not restart apps and containers on update
(do not delete data dir)

Fixes #342
2015-04-22 14:56:02 -07:00
Girish Ramakrishnan 73de1a7c4e Make nginx and collectd dynamic config
With nginx and collect being dynamic, we do no need to regenerate
this for updates where the cloud version does not change

Part of #342
2015-04-22 12:43:05 -07:00
Girish Ramakrishnan 95d22c8986 Move app/addon configuration to separate file
Part of #342
2015-04-21 23:56:10 -07:00
Girish Ramakrishnan dfe40c4594 Add DESIGN doc
Part of #342
2015-04-21 23:44:32 -07:00
Girish Ramakrishnan 418ac43f16 Fix various bugs in 0579226b98 2015-04-21 23:42:51 -07:00
Girish Ramakrishnan f17aba3a61 merge reload supervisor into main code
Part of #342
2015-04-21 23:39:59 -07:00
Girish Ramakrishnan c314eca0d2 Remove config dir
Part of #342
2015-04-21 23:39:59 -07:00
Girish Ramakrishnan 50c53fb7e5 Setup nginx in container.sh
Part of #342
2015-04-21 23:39:55 -07:00
Girish Ramakrishnan c654c0fbdf CONFIG_DIR is inside container
Part of #342
2015-04-21 23:03:16 -07:00
Girish Ramakrishnan b51d7193ff Move collectd into container configuration
Part of #342
2015-04-21 23:03:01 -07:00
Girish Ramakrishnan 0579226b98 Move logrotate, supervisor, sudo into static setup
Part of #342
2015-04-21 23:02:55 -07:00
Johannes Zellner 6e8616c898 Disable the body size check 2015-04-21 15:51:02 +02:00
Johannes Zellner ea98622170 Allow up to 512mb body size for file uploads
We might want to make that configurable by the app?
2015-04-19 14:37:21 +02:00
Girish Ramakrishnan 7f114abd2a Do not build images on cloudron
This approach does not work nicely because the cloudrons
do not have the horse power for compilation (even on 1GB
droplets). Things like gem install and npm install just
hang for very long time. docker keeps crashing because of
OOM.

Initially, we suspected some btrfs issue but creating an
image without btrfs for docker has the same issues.

Plan is to create a build server for this purpose

imageName is now derived from convention

This reverts 4a31b6c2ff

Revert "Update route read tarball as well"

This reverts commit 965ddb86c3.

Revert "Make app sources a constant"

This reverts commit fdb74cc5e3.

Revert "Copy tarball into sources dir"

This reverts commit b534019398.

Revert "Make update route multipart"

This reverts commit 079b3a50e3.

Revert "Make install route multipart request"

This reverts commit e61392269c.

Revert "Add ?build query param for logs"

This reverts commit 4544a86846.

Remove tail-stream

This reverts commit 8c6510b4f4
2015-04-15 12:03:36 -07:00
Girish Ramakrishnan fdb74cc5e3 Make app sources a constant 2015-04-14 02:02:02 -07:00
Girish Ramakrishnan b534019398 Copy tarball into sources dir 2015-04-14 01:34:44 -07:00
Johannes Zellner f52d2bcb15 Revert "Redirect to appstatus.html in the webadmin on apperror"
This reverts commit c6a355cf1a.
2015-04-13 18:24:46 +02:00
Johannes Zellner b51f97c372 Revert "Set the adminOrigin for nginx configs also in start.sh"
This reverts commit 247892466e.
2015-04-13 18:24:39 +02:00
Johannes Zellner d4baee3650 Revert "Do not make a permanent redirect for appstatus"
This reverts commit 3537dd2f93.
2015-04-13 18:24:32 +02:00
Johannes Zellner 3537dd2f93 Do not make a permanent redirect for appstatus 2015-04-13 17:08:44 +02:00
Johannes Zellner 247892466e Set the adminOrigin for nginx configs also in start.sh 2015-04-13 16:53:08 +02:00
Johannes Zellner c6a355cf1a Redirect to appstatus.html in the webadmin on apperror
Fixes #332
2015-04-13 15:17:29 +02:00