Commit Graph
100 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez 4bcc9ac05d Remove deprecated calls 2015-09-15 02:17:28 -07:00
Jose Diaz-Gonzalez 525e6f503d Remove deprecated calls 2015-09-15 02:17:27 -07:00
Jose Diaz-Gonzalez c9bca838f0 Add missing $ 2015-09-15 02:17:27 -07:00
Jose Diaz-Gonzalez b3ddcbed53 Remove deprecated calls 2015-09-15 02:17:27 -07:00
Jose Diaz-Gonzalez aaae9adac3 update last doc references to pluginhook
[ci skip]
2015-09-15 02:16:40 -07:00
Jose Diaz-Gonzalez ce23cf6ce6 rename dokku_log_pluginhook_call 2015-09-15 02:16:40 -07:00
Jose Diaz-Gonzalez ad72a137e1 Fix sourcing of functions 2015-09-15 02:16:40 -07:00
Jose Diaz-Gonzalez ba82b544f0 Proper spacing in dokku_log_warn 2015-09-06 19:40:44 -04:00
Jose Diaz-Gonzalez d0c0ffc19c Do not remove any containers that have the label dokku. Closes #1220
This can be used to mark data containers as non-removable by the cleanup function
2015-09-06 19:23:15 -04:00
Jose Diaz-Gonzalez 342e9aa95b Move dokku cleanup into docker_cleanup function
This should slightly reduce DOKKU_TRACE output.
2015-09-06 19:21:12 -04:00
Jose Diaz-Gonzalez d50db13065 Re-add old ssl docs while 0.4.0 is still not released
[ci skip]
2015-09-04 13:26:12 -04:00
Jose Diaz-Gonzalez 3c894fd130 Move version into place before running copyfiles
Otherwise `make addman` will fail during test runs
2015-09-04 12:52:15 -04:00
Jose Diaz-Gonzalez adfc3a8101 Use dokku_log_fail in favor of dokku_log_warn
If a command will exit because of invalid input, that isn't a warning, it's a failure.
2015-09-04 00:18:41 -04:00
Jose Diaz-Gonzalez 95161a2a9f Use dokku_log_fail in all cases where there is an exit 1 2015-09-04 00:17:45 -04:00
Jose Diaz-Gonzalez 76cf4d2969 Add support for certificate setting via files on disk (when on server)
This can be used as an alternative to importing via stdin, which may be preferred when working directly on a server, or via scripted installation/deployments.
2015-09-04 00:13:48 -04:00
Jose Diaz-Gonzalez 71ebf1e476 Add certs:update alias for certs:add 2015-09-04 00:00:07 -04:00
Jose Diaz-Gonzalez 1371056b20 Update documentation regarding multiple ssl certificate usage
[ci skip]
2015-09-03 23:55:06 -04:00
Jose Diaz-Gonzalez 148d563b82 Update note on replacing certificate 2015-09-03 23:37:23 -04:00
Jose Diaz-Gonzalez db4e847e8d Update documentation on ssl management
Also move into subdirectory

[ci skip]
2015-09-03 23:35:18 -04:00
Jose Diaz-Gonzalez d37e64d3d6 Move nginx:import-ssl to certs:add 2015-09-03 23:04:05 -04:00
Jose Diaz-Gonzalez f2e153744c [ci skip] minor formatting changes 2015-09-03 22:38:24 -04:00
Jose Diaz-Gonzalez 7db481fe36 move last actions into functions 2015-09-01 14:30:32 -04:00
Jose Diaz-Gonzalez 646fd467ab use config_set function in domains and 00_dokku-standard 2015-09-01 00:55:05 -04:00
Jose Diaz-Gonzalez 7b5ea80ea4 Move get and set actions into functions 2015-09-01 00:52:40 -04:00
Jose Diaz-Gonzalez a62f914646 Remove the need for temp files 2015-09-01 00:13:29 -04:00
Jose Diaz-Gonzalez b01d371c46 Move all functions into config/functions 2015-08-31 23:08:28 -04:00
Jose Diaz-Gonzalez 59a80f7857 Move config_create into config/functions 2015-08-31 23:06:45 -04:00
Jose Diaz-Gonzalez c32bf8f035 pass in ENV_FILE to config_create 2015-08-31 23:05:47 -04:00
Jose Diaz-Gonzalez 99f1f1b6d3 Move config arg parsing into config/functions 2015-08-31 23:03:52 -04:00
Jose Diaz-Gonzalez e7c035e207 Use config_export function instead of calling dokku as a subcommand 2015-08-30 01:55:14 -04:00
Jose Diaz-Gonzalez cddc4afcea Remove last outer calls to ENV files in release command 2015-08-30 01:26:01 -04:00
Jose Diaz-Gonzalez 5d5c575251 Add deprecation notice for BUILD_ENV files 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez d4c122c277 Use dokku config when building build-env 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez 66ad7d0985 Use dokku config to check if an env has output 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez cc66905c6e Use dokku config to export config for dockerfile builds 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez 12f97ee18e Use config:get --globalto instead of grep to check for global curl config 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez 14f228b1b5 fix global config:set calls 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez 60c0f56724 Fix lint errors 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez afe65a86fb eval the output of "dokku config --export" to get env config
This should theoretically be safe, as "--export" forces the `dokku config` command to return 0 in all cases, and it should only output lines that are "valid" environment variables
2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez 6566be04e5 Do not exit 1 when there is no env file and the --export flag is in use 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez 2de2151f58 Use config:set to set curl options 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez c2626bf934 Add --export flag for producing export-compatible config output 2015-08-30 01:23:56 -04:00
Jose Diaz-Gonzalez b6ef5af3d1 Set DYNO_TYPE_NUMBER environment variable for each container
This will allow users to inspect the underlying environment and conditionally run different commands based upon the `DYNO_TYPE_NUMBER`. The values will be set in the following format:

    web.1
    web.2
    worker.1
    worker.2
    clock.1

Users of process managing plugins and dockerfiles can check the `DYNO_TYPE_NUMBER` and set a specific command to run.

Closes #1350
2015-08-26 00:35:22 -04:00
Jose Diaz-Gonzalez a1e747f4ad Guard against missing VHOST files
This can occur if the app isn't using vhosts but the user runs the command.
2015-08-26 00:15:09 -04:00
Jose Diaz-Gonzalez 771eaa33ee Fix SC2125 violation 2015-08-25 23:31:53 -04:00
Jose Diaz-Gonzalez eccdc04268 Add dokku enter for connecting to an app container
This command can be used to enter a running container. The following variations of the command exist:

    dokku enter api web
    dokku enter api web.1
    dokku enter api --container-id ID

By default, it runs a `/bin/bash`, but can also be used to run a custom command:

    # just echo hi
    dokku enter api web echo hi

    # run a long-running command, as one might for a cron task
    dokku enter api web python script/background-worker.py

Closes #1332
2015-08-25 23:23:26 -04:00
Jose Diaz-Gonzalez 606352b6ed Add the ability to retrieve container ids by container type
You can now use the following to narrow down the search for a container id:

    get_app_container_ids app web
    get_app_container_ids app worker

You can also specify a specific type "id" like so:

    get_app_container_ids app web.1
    get_app_container_ids app worker.3

Specifying an invalid type or id will result in an empty response
2015-08-25 23:00:49 -04:00
Jose Diaz-Gonzalez 4f25392d9b Use cgroupfs-mount as alternative package to cgroup-lite
This should allow installation of the dokku packages on debian jessie. Upstream docker created this package in response to an issue where `cgroup-bin` could not be installed at the same time as lxc.

Closes #1236
Refs #1076

[ci skip]
2015-08-25 12:33:47 -04:00
Jose Diaz-Gonzalez 4021b19dfc Expose host and port for build vm
[ci skip]
2015-08-25 12:24:25 -04:00
Jose Diaz-Gonzalez 5676dbc4c6 Release 0.3.26 2015-08-24 16:01:28 -04:00
Jose Diaz-Gonzalez 9409fc2ef0 Install apt-transport-https before adding https-backed apt sources
Refs #1219

[ci skip]
2015-08-20 20:21:06 -04:00
Jose Diaz-Gonzalez 5492b0e4e0 Fix history formatting [ci skip] 2015-08-20 20:16:00 -04:00
Jose Diaz-Gonzalez acd28f4647 Release 0.3.25 2015-08-19 22:01:26 -04:00
Jose Diaz-Gonzalez 55d4fb788e Revert "Remove dokku plugins-install from postinst hook"
This reverts commit 1bf30bdcb1.

Commit was reverted as this breaks installs of core plugins. It is also a hack around broken plugins that don't use the `dependencies` pluginhook.
2015-08-19 21:45:10 -04:00
Jose Diaz-Gonzalez f39b38b25d Release 0.3.24 2015-08-19 21:11:38 -04:00
Jose Diaz-Gonzalez 2b59932ba5 Use https version of docker repository. Refs #1396 2015-08-19 20:23:06 -04:00
Jose Diaz-Gonzalez d3361d21d8 Remove provides statement from control file 2015-08-19 20:22:19 -04:00
Jose Diaz-Gonzalez d58e1cd0ab Release 0.3.23 2015-08-15 17:07:10 -04:00
Jose Diaz-Gonzalez c14f29b01b fix link to documentation [ci skip] 2015-07-22 14:07:52 -04:00
Jose Diaz-Gonzalez ccc3b810c7 Add missing Release Process link [ci skip] 2015-07-22 14:06:39 -04:00
Jose Diaz-Gonzalez 53a3438cf7 Link docs page 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez cafbb8a4f9 minor column tweak 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 230cdaf996 change column sizes 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 1ef42b527d add padding 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez cefe772330 remove todo 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 6dc2b218c7 style tables after the fact 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 025699cd01 Fix margin on pages 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez a8b1f4fae5 Attempt to add a sidebar and use fluid container positioning for non-home pages 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 9b64298314 Use a fluid container 2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 222162fd9d Add static site assets
[ci skip]
2015-07-22 14:05:22 -04:00
Jose Diaz-Gonzalez 2e1580241c Fix name for michaelshobbs 2015-07-21 14:54:32 -04:00
Jose Diaz-Gonzalez f9ea2053b9 Fix pluginhook building and update package version 2015-07-21 14:53:57 -04:00
Jose Diaz-Gonzalez 6b67b2d647 Release 0.3.22 2015-07-21 12:18:30 -04:00
Jose Diaz-Gonzalez 6895dd9936 Use get_container_ids method to retrieve container for nginx conf 2015-07-11 16:29:25 -04:00
Jose Diaz-Gonzalez 972cad7717 Add release documentation. Closes #1287
[ci skip]
2015-07-11 15:00:37 -04:00
Jose Diaz-Gonzalez 815bc326a4 Clarify web/cli installation docs. Closes #1177. Closes #1170
[ci skip]
2015-07-11 14:43:50 -04:00
Jose Diaz-Gonzalez 1223602679 Add docs for receive-branch hook. Refs #1149
[ci skip]
2015-07-03 17:11:53 -04:00
Jose Diaz-Gonzalez 2d6054605e Remove non-standard redirects 2015-07-03 16:41:17 -04:00
Jose Diaz-Gonzalez 9f73b90a13 Reorder plugins
[ci skip]
2015-07-03 16:29:30 -04:00
Jose Diaz-Gonzalez 9c124e236f Deprecate a few plugins
[ci skip]
2015-07-03 16:28:49 -04:00
Jose Diaz-Gonzalez 7ceac5787b Minor fixes to the logging docs
[ci skip]
2015-07-03 13:06:47 -04:00
Jose Diaz-Gonzalez 4d30fdfb0e Release 0.3.21 2015-07-02 18:54:45 -04:00
Jose Diaz-Gonzalez d211223f58 Release 0.3.20 2015-07-01 14:43:20 -04:00
Jose Diaz-Gonzalez 0e63b4e069 Fix ssh port for vagrant installation. Closes #1139. [ci skip] 2015-06-25 11:22:17 -04:00
Jose Diaz-Gonzalez 626cd958a5 Fallback to using /etc/init.d/nginx reload directly to restart nginx. Closes #1165. Refs #1247 2015-06-25 10:38:47 -04:00
Jose Diaz-Gonzalez cc8b1fccc1 Release 0.3.19 2015-06-23 21:40:45 -04:00
Jose Diaz-Gonzalez b39b0d4c78 Ensure we call apt-get before installing packages 2015-06-23 20:59:34 -04:00
Jose Diaz-Gonzalez 5606a308b6 Release 0.3.18 2015-05-16 14:10:59 -04:00
Jose Diaz-Gonzalez 75180f7f9b [ci skip] ensure we follow redirects and use ssl when grabbing the docker gpg key
Also install curl when running `vagrant up dokku-deb`
2015-05-12 15:47:12 -04:00
Jose Diaz-Gonzalez a8f08bd5a8 [ci skip] Add documentation for custom nginx.conf files
Closes #998
Closes #1000
2015-04-21 02:39:05 -04:00
Jose Diaz-Gonzalez b299f66c28 Validate nginx configuration before reloading nginx. Closes #999 2015-04-21 02:07:27 -04:00
Jose Diaz-Gonzalez b5495ed0c3 use helper functions instead of echo command 2015-04-21 01:14:10 -04:00
Jose Diaz-Gonzalez d9d3a16e5c Prompt users to run the web installer via MOTD. Closes #943 2015-04-18 03:56:19 -04:00
Jose Diaz-Gonzalez 23a6656566 [ci skip] ensure we run apt-get update at least once before installing git 2015-04-18 03:23:30 -04:00
Jose Diaz-Gonzalez a2ed0ef2b6 [ci skip] fix listing issues in bootstrap.sh 2015-04-18 03:23:12 -04:00
Jose Diaz-Gonzalez e2d3107e8a [ci skip] add raw debian package installation notes 2015-04-18 02:58:34 -04:00
Jose Diaz-Gonzalez 0e5bc10ae7 [ci skip] update advanced installation docs for development 2015-04-18 02:54:32 -04:00
Jose Diaz-Gonzalez b3053fe392 [ci skip] update upgrade documentation for 0.3.18 2015-04-18 02:48:52 -04:00
Jose Diaz-Gonzalez 12ee6953bb [ci skip] modify bootstrap script to handle installing from a deb package
For branch-based installs, or anything specifying tags below 0.3.13, we install from source.
2015-04-18 02:48:52 -04:00
Jose Diaz-Gonzalez 9dfa7ccee6 [ci skip] Ensure the /root/.ssh directory exists before copying the user's public key into the vm 2015-04-18 02:48:52 -04:00