Jose Diaz-Gonzalez
fa5fe2efd6
Use a trap to remove the TMPFILE
2015-08-31 14:36:00 -04:00
Jose Diaz-Gonzalez
7979751d71
Use $DOKKU_ROOT/$APP/.dokku_config for tempfile path
2015-08-31 12:55:32 -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
770139d2ca
Merge pull request #1420 from progrium/1332-enter-plugin
...
Add `dokku enter` for connecting to an app container
2015-08-29 20:57:42 -04:00
Jose Diaz-Gonzalez
9055f90dcc
Add helper function for inspecting the state of a container
...
This function - `is_container_status` - can be used to inspect whether a container is any of the following:
- Dead
- OOMKilled
- Paused
- Restarting
- Running
It can be useful for deeper inspection as to plugin state
2015-08-29 02:31:03 -04:00
Jim Myhrberg
d5df6a4190
Use $PLUGIN_PATH instead of $(dirname $0)/..
...
As briefly discussed in #1425 , source the `common/functions` file via an
absolute path, rather than determining the relative path by using
`dirname`. 3rd-party plugins should follow suit and use the new
`$PLUGIN_PATH` convention too.
2015-08-28 14:14:28 +01:00
Michael Hobbs
84fff1c2e2
Merge pull request #1419 from u2mejc/dokku-help-tty
...
Fix dokku ps <app> over ssh
2015-08-27 10:36:37 -07:00
Jose Diaz-Gonzalez
ebfcece620
Merge pull request #1422 from progrium/guard-domains-plugin
...
Guard against missing VHOST files
2015-08-26 00:48:46 -04:00
Jose Diaz-Gonzalez
bd0803cf29
Merge pull request #1344 from AdamVig/master
...
Add better error checking on nginx:import-ssl
2015-08-26 00:26:07 -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
Justin Clark
e349d38581
Fix dokku ps <app> over ssh
...
Resolved the TTY error when connecting over ssh.
Updated ps to use has_tty function.
2015-08-25 17:35:28 -07:00
Randall Leeds
183edc9839
Remove uses of (un)set-norestart
2015-08-24 15:57:34 -07:00
Michael Hobbs
6d71c164f0
Merge pull request #1128 from progrium/1091_mh-switch-to-herokuish
...
switching to herokuish. closes #1091
2015-08-24 12:11:05 -07:00
Jose Diaz-Gonzalez
3f43a64430
Merge pull request #1399 from basicer/fix-multi-receive-app
...
Make dokku play nice when we have multiple receive-app hooks
2015-08-24 14:54:13 -04:00
Rob Blanckaert
98990b6885
Make dokku play nice when we have multiple receive-app hooks in various plugins.
2015-08-24 14:20:36 -04:00
Michael Hobbs
42905c345b
support comments in DOKKU_SCALE and print contents on deploy
2015-08-24 09:22:07 -07:00
Michael Hobbs
8edea8512d
use /bin/sh instead of /bin/bash in order to support dockerfile images that don't include bash. fixes #1364
2015-08-03 11:42:30 -07:00
Michael Hobbs
11e10fceef
only run domains and nginx config if we have a port and ip. fixes #1355
2015-07-30 14:29:36 -07:00
Alessio Treglia
78c0cdc12d
Log receive-branch pluginhook
...
Such new pluginhook was introduced in dokku v0.3.22.
2015-07-30 15:37:47 +01:00
Adam Vigneaux
c1a0e0ce68
Improve file searching and variable usage
...
- Count files using find and grep instead of ls and wc
- Use the same variable to find files and move files, allowing files to
be in a subdirectory
2015-07-28 18:48:31 -04:00
Michael Hobbs
d21caa4811
Merge branch 'master' into 1091_mh-switch-to-herokuish
2015-07-28 10:55:44 -07:00
Michael Hobbs
36d607a4f4
[ci skip] update docs
2015-07-28 09:36:42 -07:00
Michael Hobbs
b30db17def
use column to format help output
2015-07-28 09:31:56 -07:00
Adam Vigneaux
dc5f34534b
Improve formatting
2015-07-26 22:37:56 -04:00
Adam Vigneaux
14e72ea337
Add better error checking on nginx:import-ssl
2015-07-26 22:21:32 -04:00
alexkruegger
9910fb03da
fix bug in nginx.conf.template getting from /app directory
2015-07-20 14:02:44 +03:00
Michael Hobbs
d2f2bc9ac1
update docs to reflect default checks. rename DOKKU_DEFAULT_WAIT to DOKKU_DEFAULT_CHECKS_WAIT. refs #1323
2015-07-17 07:25:35 -07:00
Matt Walker
d457ffe7ee
Spelling fix: 'comma seperated'=>'comma-separated'
2015-07-14 15:46:32 -07:00
Michael Hobbs
c7cb014580
convenience functions for app container state
2015-07-13 09:27:42 -07:00
Michael Hobbs
633c595311
use docker inspect instead of docker ps grep pattern. closes #1281
2015-07-13 09:09:38 -07:00
Kilian Ciuffolo
0424d5a744
fixes #1270 faulty default container check
2015-07-13 09:09:38 -07:00
Jose Diaz-Gonzalez
0a4c22dfea
Merge pull request #1278 from progrium/nginx-template-from-app
...
Nginx template from app
2015-07-13 10:35:42 -04:00
Jose Diaz-Gonzalez
68b12ab46f
Merge pull request #1298 from SonicHedgehog/fix-check-root
...
Fix check-deploy skipping the root path
2015-07-13 10:31:21 -04:00
Jose Diaz-Gonzalez
ca1b17ea8d
Use nginx.conf.template as the template name
2015-07-12 20:06:21 -04:00
Jose Diaz-Gonzalez
007946f52a
Use simplified method for retrieving a container id
2015-07-12 20:02:29 -04:00