Commit Graph

50 Commits

Author SHA1 Message Date
Johannes Zellner 3b0326a69f Run npm install as user with HOME set for that user 2014-08-09 13:12:11 -07:00
Girish Ramakrishnan 16a650f65e Pull all base docker images 2014-08-08 13:19:54 -07:00
Girish Ramakrishnan e6fa61f76a Template the admin and app config files with srcdir 2014-08-07 18:02:02 -07:00
Girish Ramakrishnan 6b6be410fd Change nginx prefix directory 2014-08-07 17:00:18 -07:00
Girish Ramakrishnan c83545a2b7 Install rcconf 2014-08-07 15:40:06 -07:00
Girish Ramakrishnan 5f7d67655b Store log to persistent storage 2014-08-07 15:00:54 -07:00
Girish Ramakrishnan d01398e460 Fix some bloopers
set -e has already done
Just skip checkout altogether
2014-08-07 12:10:07 -07:00
Girish Ramakrishnan bfb1e584bf Copy mime.types to nginx configuration 2014-08-07 11:55:53 -07:00
Girish Ramakrishnan fa10e77def Do not start supervisor automatically
The bootstrap.sh script enables it after it's done configuring
supervisor
2014-08-07 11:53:02 -07:00
Girish Ramakrishnan 3424e51ba4 Give name to checkout branch 2014-08-07 11:46:00 -07:00
Girish Ramakrishnan de2cc8a905 Run npm install as yellowtent user 2014-08-07 11:31:17 -07:00
Girish Ramakrishnan fab5e40aae Make scripts error out automatically 2014-08-07 11:27:48 -07:00
Girish Ramakrishnan f3f4731a04 Update the code as yellowtent user 2014-08-07 11:23:54 -07:00
Girish Ramakrishnan a280ff77f1 sudoers file is already setup in bootstrap.sh 2014-08-07 11:18:50 -07:00
Girish Ramakrishnan 04f33d365e Rename BASEDIR to SRCDIR 2014-08-07 10:59:25 -07:00
Girish Ramakrishnan f7b49d1449 Fix typo 2014-08-07 10:59:24 -07:00
Girish Ramakrishnan 1c8cdc1f31 Move nginx files away from repo
Fixes #52
2014-08-07 06:22:12 -07:00
Girish Ramakrishnan f406f873d0 Alias ~/.yellowtent as BACKUP_DIR 2014-08-07 06:17:52 -07:00
Girish Ramakrishnan 09a7e6244b Rename BASEDIR to SRCDIR 2014-08-07 06:13:44 -07:00
Johannes Zellner 68372e9b3e Only log box* with debug() when deployed 2014-08-06 21:52:13 -07:00
Girish Ramakrishnan b6be2997f3 Fix logs
fixes #54
2014-08-06 19:35:34 -07:00
Girish Ramakrishnan 27a6eb69f3 Merge box stdout and stderr logs 2014-08-05 15:11:49 -07:00
Johannes Zellner dd619a258d Swap supervisor config file names 2014-08-04 23:28:35 -07:00
Johannes Zellner 19afa8f5f1 Remove any system provided supervisor configs 2014-08-04 22:23:24 -07:00
Johannes Zellner 15bd1c7eb3 Create nginx and box supervisor manifests during bootstrap
Previously we were linking the supervisor config
directory into /etc/supervisor and using template manifests,
which got changed during bootstrapping. In order to avoid
changing files in the git repository and more harder to
follow 'sed's the bootstrap.sh now simply creates those files
directly with appropriate values.
This also eliminates the yellowtent.json, as those values
are now passed via the process.env, set in the supervisor
manifest for the box
2014-08-04 21:50:38 -07:00
Johannes Zellner 80eb87069c Capture bootstrap script output in log file 2014-08-01 08:35:56 -07:00
Johannes Zellner 2b4d927b42 Make bootstrap script exectuable 2014-08-01 08:19:03 -07:00
Johannes Zellner e466a49e62 Cleanup node_modules on cloudron 2014-07-31 18:02:16 -07:00
Johannes Zellner a9b2020270 Ensure npm install succeeds 2014-07-31 17:48:30 -07:00
Johannes Zellner caccc3eaf5 explicitly use bash to execute the certificate script 2014-07-31 12:35:24 -07:00
Johannes Zellner 33a9721cdf Fixup the certificate generation 2014-07-31 12:33:14 -07:00
Johannes Zellner be384a6f03 Generate self signed certs based on hostname during bootstrap 2014-07-31 11:15:01 -07:00
Johannes Zellner e06227c52d Temporarily disable certificate retrieval from appstore 2014-07-31 10:09:15 -07:00
Johannes Zellner 696f95e0d7 move most settings from yellowtent.conf to the settingsdb 2014-07-31 09:31:28 -07:00
Johannes Zellner 3919bce140 Ignore known hosts warnings for creating base images 2014-07-31 09:31:03 -07:00
Johannes Zellner f92ca8bb03 Move bootstrap script to box
Instead of executing the bootstrap script via ssh,
we now run it once the box boots the first time.
It will update the repo and run the box code, which
needs to contact the appstore in order to get provisioned.
2014-07-31 08:16:35 -07:00
Johannes Zellner dce7a49eb7 Only add user to docker group after installing docker 2014-07-30 17:26:52 -07:00
Johannes Zellner 3dcd938951 Disable nginx init scripts
nginx is handled via supervisor
2014-07-10 22:51:36 -07:00
Johannes Zellner b84f81feb4 Also escape the eval backticks 2014-07-09 13:26:16 -07:00
Johannes Zellner 9aefeaa9fc Escape the shell variables for the init script 2014-07-09 13:13:16 -07:00
Johannes Zellner 45dec6e9df Add convenience script to produce a base image 2014-07-09 11:12:20 -07:00
Johannes Zellner 3437474837 Make the announce init script retry until it succeeds 2014-07-09 10:59:05 -07:00
Johannes Zellner 933d3381b6 Actually send the hostname of the newly created droplet 2014-07-07 10:26:26 -07:00
Johannes Zellner acb6bf12ca Fix typo in base image creation script 2014-07-07 08:10:56 -07:00
Johannes Zellner 171c8c2453 Echo all commands during base image creation 2014-07-07 08:09:22 -07:00
Johannes Zellner 9090a91c14 Enable the init script for bootstrapping 2014-07-03 17:45:49 -07:00
Johannes Zellner 5a6c09b899 Create a base image creation script
As this script is part of the box repo, it is actually
not intended to be run from here, but we need to store it
somewhere for now. The idea is to copy it to a pristine
ubuntu droplet, run it and then create a new base image for
cloudrons off of that droplet.
2014-07-03 16:10:41 -07:00
Johannes Zellner dceddc36fa Add cleanup script for developer convenience 2014-03-25 07:51:25 -07:00
Johannes Zellner da17d14a2c Add infrastructure for REST api documentation 2013-11-18 18:54:34 -08:00
Girish Ramakrishnan e779d822bb Create scripts dir 2013-10-18 23:26:29 -07:00