Michael Hobbs
0b9ac9a727
don't background cleanup
2015-07-05 21:08:47 -07:00
Jose Diaz-Gonzalez
e1044199c7
Merge pull request #1254 from kilianc/feature/custom-start-cmd
...
added DOKKU_DOCKERFILE_START_CMD support
2015-07-03 12:54:24 -04:00
Alessio Treglia
91c691a806
Create dokku's /var/log/dokku/ private namespace
...
Rename dokku.log to events.log.
Refresh tests accordingly.
2015-07-01 18:25:11 +01:00
Alessio Treglia
783bb02b2c
Implement events logging feature
...
Record events (i.e. pluginhook's calls) as syslog entries and
provide a shortcut command to display the last part of the log
file.
A brief summary of the changes follows:
dokku:
- New DOKKU_EVENTS_LOGFILE envvar to hold logfile location.
plugins/20_events/commands:
- events output log entries, a tail's follow-like mode is
provided too.
- events:[on|off] enables/disables logging.
- events:list lists events that are logged.
plugins/20_events/hook:
- Generic hook that writes log entries. All the events are
registered via symlink to this script.
plugins/common/functions:
- dokku_log_event() writes log entries via logger.
- dokku_log_pluginhook_call() formats log entries and writes
them via dokku_log_event().
2015-06-26 14:47:18 +01:00
Kilian Ciuffolo
4a4ae9cb71
not fail if DOKKU_DOCKERFILE_START_CMD is not set
2015-06-25 18:05:03 -07:00
Kilian Ciuffolo
74164c2266
added DOKKU_DOCKERFILE_START_CMD support
2015-06-25 15:17:28 -07:00
Michael Hobbs
4aedb6507a
Merge branch 'master' into mh-ps-scale
2015-04-30 10:32:29 -07:00
Piotr Niełacny
4aa970ace8
Do not kill docker container with SIGKILL
...
When we will use `kill` command on `docker` main process will receive
`SIGKILL` signal. This will result in immediate termination of
processes. We need to send a signal `SIGTERM` to main process and give
the opportunity to close application in correct way.
2015-04-29 16:00:16 +02:00
Michael Hobbs
3d2af158ff
allow docker-options over ssh. plus test. closes #1135
2015-04-24 12:10:02 -07:00
Michael Hobbs
673d43b532
output containers to be stopped and killed. attempt a kill on old containers after we attempt to stop them
2015-04-24 11:32:14 -07:00
Michael Hobbs
1fa19591bf
sort correctly
2015-04-21 23:14:22 -07:00
Michael Hobbs
7c1ef003b7
set DYNO env var based on proc type
2015-04-21 23:13:47 -07:00
Michael Hobbs
e1f8654a74
attempt to stop containers instead of just killing
2015-04-21 22:21:47 -07:00
Michael Hobbs
3361a20a30
only check containers running proc named web for now
2015-04-21 14:33:28 -07:00
Michael Hobbs
4ae7af091a
don't clobber oids when multiple proc types exist
2015-04-21 14:33:28 -07:00
Michael Hobbs
d88efd5cc4
no need to find beyond a depth of 1. also bombs when the app cache dir is owned by the container user
2015-04-21 14:32:31 -07:00
Michael Hobbs
930987ad02
container/ip/port file cleanup when scaling down. more tests
2015-04-21 14:32:31 -07:00
Michael Hobbs
e27d0e6fa5
wrap container id checks and reading into common function that attempts new and old style container id files
...
aggregate log streams
2015-04-21 14:32:30 -07:00
Michael Hobbs
33f872183e
initial pass at container-level scaling
2015-04-21 14:27:23 -07:00
Michael Hobbs
62774b156d
use config:set-norestart in domains plugin. config:get for dockerfile port. closes #1041
2015-04-07 20:49:34 -07:00
Michael Hobbs
ba33c161f5
make docker-options adhere to DOKKU_NOT_IMPLEMENTED_EXIT pattern
2015-04-03 10:51:23 -07:00
Michael Hobbs
2834ce1f1a
extract first port from Dockerfile and set config variable for use in deploy phase. closes #993
2015-03-19 07:54:45 -07:00
Assaf Arkin
052e3e88c8
ADDED several enhancements for CHECKS file:
...
- Specify how long to wait before running first check
- Specify timeout for each check
- Check specific hosts, e.g. http://signin.example.com
- Check both HTTP and HTTPS resources
2015-03-14 10:13:36 -07:00
Michael Hobbs
2fb48c414b
confine arg shifting to between dokku and command. closes #1017
2015-03-06 11:58:35 -08:00
Michael Hobbs
f366a37cd1
remove quoting around cleanup and disable lint for those lines. also make cleanup test more robust
2015-02-24 10:41:02 -08:00
Alessio Treglia
f90d298027
Fix quoting.
...
- Should prevent tests failure.
2015-02-20 11:26:33 +00:00
Alessio Treglia
7d5813f0a7
Merge branch 'master' into develop
2015-02-13 11:39:50 +00:00
Alessio Treglia
7e25e74779
Fix typo.
2015-02-10 14:16:39 +00:00
Alessio Treglia
0992719e3d
Remove unnecessary call to sudo.
2015-02-10 12:52:29 +00:00
Alessio Treglia
97ef925243
Simplify images cleanup too. Reviewed containers cleanup.
...
- Images cleanup is a common practice taken from
https://docs.docker.com/reference/commandline/cli/#filtering_1
2015-02-10 12:29:09 +00:00
Alessio Treglia
1842c19a03
Slightly improve "cleanup".
...
- Use docker ps to filter containers by status to avoid building
such a long pipe.
2015-02-10 12:21:42 +00:00
Michael Hobbs
e5fb746a7f
only look for long args in global space. allows for short args in plugins. closes #963
2015-02-09 16:59:07 -08:00
Michael Hobbs
7357df7c9d
first pass at dockerfile support
2015-02-07 17:56:01 -08:00
Michael Hobbs
959c51eb50
refactor function defs to be posix-like. remove usage of force positional argument in tests. support --force like arguments in client"
2015-02-07 11:35:04 -08:00
Michael Hobbs
fe3e079a93
[ci skip] rename -rm to --rm for DOKKU_RM_CONTAINER
2015-02-07 09:28:09 -08:00
Michael Hobbs
9164740117
rename log functions with dokku_log_ prefix
2015-02-06 08:28:14 -08:00
Michael Hobbs
6ad65dd9b4
first stab at a common functions library. include argument parsing and a few definitions wired up. closes #932 . closes #945
2015-02-05 11:32:46 -08:00
Jose Diaz-Gonzalez
72a58bbda3
Merge pull request #927 from progrium/906-mh-docker-args-phase-pluginhooks
...
support both docker-args PHASE and docker-args-PHASE for the time being. closes #906
2015-02-04 11:13:14 -05:00
Michael Hobbs
5fb30ab934
source global env prior to app env. closes #931
2015-02-03 13:47:20 -08:00
Michael Hobbs
1b22f69b9e
support both docker-args PHASE and docker-args-PHASE for the time being. closes #906
2015-01-29 18:33:20 -08:00
Jose Diaz-Gonzalez
6b80d1e0f2
Merge pull request #899 from joliv/master
...
Use help2man to automatically generate man pages
2015-01-16 15:23:14 -05:00
Jose Diaz-Gonzalez
22088f5d82
Merge pull request #897 from progrium/mh-ps-plugin
...
initial pass at a ps plugin
2015-01-16 14:59:12 -05:00
Michael Hobbs
40e628778b
revive deploy:all with deprecation warning
2015-01-15 15:43:03 -08:00
joliv
2d96bd2939
Add "Options:" header to help text
...
Makes it easier to be parsed by `help2man`
2015-01-15 12:13:55 -05:00
Michael Hobbs
e760e1cc92
implement ps:restartall. closes #82 #218
2015-01-14 16:37:49 -08:00
Michael Hobbs
78967eedd7
add docker-args pluginhook call to build phase
2015-01-14 11:31:48 -08:00
Vincent Fretin
8e5c8c0832
give CACHE_PATH environment variable for forward compatibility with herokuish
...
herokuish defaults to /tmp/cache, so the build cache don't work without giving the CACHE_PATH environment variable. You can test it with buildstep herokuish branch. cc @progrium
2015-01-07 19:04:40 +01:00
Michael Hobbs
896ce50c93
support pre deployment usage of domains plugin. fixes interface binding issue
2015-01-06 12:42:21 -08:00
Michael Hobbs
948d7902f2
bind docker container to internal port if using vhosts
2015-01-02 16:27:19 -08:00
Jose Diaz-Gonzalez
8535900f9d
Merge pull request #859 from progrium/829-docker-args-command
...
Pass command being executed when retrieving DOCKER_ARGS via pluginhook.
2015-01-01 21:16:44 -05:00