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
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
Michael Hobbs
5cb62b168f
lintball. also run nginx:build-config if domains:add fails
2015-09-03 22:35:38 -04:00
Michael Hobbs
983e0910b1
implement certs:remove. spit out csr on certs:generate
2015-09-03 22:35:00 -04:00
Michael Hobbs
aec138ef32
heroku-like certs:info output
2015-09-03 22:35:00 -04:00
Michael Hobbs
f9da2d5c25
initial pass at cert plugin functionality
2015-09-03 22:35:00 -04:00
Michael Hobbs
a983456030
remove magic additions to VHOST based on SSL cert. fixes #1368
2015-09-03 22:35:00 -04:00
Michael Hobbs
9eb30d9e33
make local consistent in functions
2015-09-03 18:55:52 -07:00
Michael Hobbs
5f7c4426b7
rename tag to tags. make verbs more consistent
2015-09-03 18:26:02 -07:00
Michael Hobbs
9c37069a6a
create get_app_image_repo() to define our app image pattern and use it
2015-09-03 17:21:22 -07:00
Michael Hobbs
433db65635
use PLUGIN_PATH
2015-09-03 16:52:35 -07:00
Michael Hobbs
14acb8af1a
move tag_image() to shared functions. explicitly set IMAGE
2015-09-03 16:52:23 -07:00
Michael Hobbs
495b1d2ba0
refactor to explicitly set IMAGE via get_app_image_name()
2015-09-03 16:12:36 -07:00
Michael Hobbs
8be5c874ec
errant use of local. derp
2015-09-02 11:59:50 -07:00
Michael Hobbs
d696013fe2
use get_running_image_tag in new enter plugin
2015-09-02 11:19:46 -07:00
Michael Hobbs
5be7641f87
call tag-add and tag-remove pluginhooks
2015-09-02 11:19:20 -07:00
Michael Hobbs
04a4da7fc5
allow tagging and deployment of tagged app images
2015-09-02 11:18:01 -07:00
Jose Diaz-Gonzalez
06b2347486
Merge pull request #1402 from progrium/jg-consolidate-config
...
Consolidate config
2015-09-01 16:39:33 -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
e08f02aca7
Use a custom temporary directory for dokku-related files
...
Also fix the trap call
2015-08-31 15:17:04 -04:00
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
4e0fed18a6
Merge pull request #1421 from basicer/tar-plugin
...
First pass at tar plugin.
2015-08-31 12:52:35 -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