Michael Hobbs
972830a5f3
fix: respect DOKKU_APP_USER in is_image_herokuish_based
2019-11-19 15:07:29 -07:00
Jose Diaz-Gonzalez
b4e95fe0d5
feat: add support for python3
...
- Use jq where possible
- Drop unused function (no usage across entire codebase nor in any github repository
Closes #3689
2019-09-19 23:33:43 -04:00
Jose Diaz-Gonzalez
44fcea0ffa
refactor: use new-style docker management commands
...
This PR uses the new syntax for commands introduced in Docker 1.13, making it a bit easier to understand just what a particular command is trying to do.
This also pushes the long-form syntax for docker command flags, which are also easier to understand at a glance.
2019-09-15 18:55:53 -04:00
Jose Diaz-Gonzalez
3ca6245b00
fix: use 6 X to support running under busybox
...
mktemp from busybox requires that all templates end with XXXXXX.
2019-08-12 18:16:16 -04:00
Jose Diaz-Gonzalez
925c6c4c28
feat: inject the dokku PID into temporary files/directories
...
This will allow background processes to cleanup these files if they were unable to be cleaned up during a run of the dokku binary, as is the case for files copied by the docker binary when running in docker.
2019-08-12 17:56:17 -04:00
Jose Diaz-Gonzalez
0588b6f161
refactor: directly use a tmp file for app.json
2019-08-12 17:53:15 -04:00
Jose Diaz-Gonzalez
d326c17dfb
chore: standardize on writing to file versus a destination
2019-08-05 11:40:53 -04:00
Jose Diaz-Gonzalez
6836e56b24
refactor: add global docker build and run args
...
This reduces duplication and allows users to rely on global arguments to generate most labels needed.
The 'commit' command cannot have global arguments because the whitespace within the label change breaks string-based interpolation, and shell arrays cannot be exported.
2019-07-20 05:52:20 -04:00
Jose Diaz-Gonzalez
d1af10fc51
feat: add labels to all build, commit, create, and run docker calls
...
This will allow us to further filter containers and images by application when cleaning up containers.
Refs #3515
2019-07-19 15:45:43 -04:00
Jose Diaz-Gonzalez
785d9b4937
feat: allow setting DOCKER_BIN path for docker execution
...
This change allows operators to specify a DOCKER_BIN environment variable. This will specify a binary to run when executing docker, which is useful in cases where the 'docker' command being run must be modified in a way that would otherwise be invasive to Dokku, but minimalistic if done within a wrapper.
2019-05-29 00:46:19 -04:00
Jose Diaz-Gonzalez
1b92f4a97e
chore: standardize how temporary files are named
2019-05-20 18:01:17 -07:00
Jose Diaz-Gonzalez
da4361583b
fix: reverse quotes for variable expansion
...
Without reversing quotes, the variables are sometimes improperly expanded, resulting in files not being removed.
2019-05-20 17:56:50 -07:00
Jose Diaz-Gonzalez
a92687d3e8
fix: correct calls to fetch process-specific build and deploy args
2019-05-17 12:00:05 -04:00
Jose Diaz-Gonzalez
243d5ecc43
feat: integrate resource plugin with scheduler-docker-local
2019-04-08 11:31:34 -04:00
Jose Diaz-Gonzalez
f9023402ad
fix: correct the argument for get_release_cmd
...
Closes #3438
2019-03-14 12:00:23 -04:00
Jose Diaz-Gonzalez
7f1fe3ccfd
chore: follow logging pattern from heroku for phase command declarations
2019-03-13 02:05:18 -04:00
Jose Diaz-Gonzalez
6797971016
chore: drop extra echo in app-json method calls
2019-03-13 02:05:18 -04:00
Jose Diaz-Gonzalez
67ae374e60
lint: remove whitespaces before redirect
2019-02-02 13:49:24 -05:00
Jose Diaz-Gonzalez
b9b4693e20
fix: add missing semicolons
2019-01-20 11:21:53 -05:00
Jose Diaz-Gonzalez
4ae280528e
fix: ensure we can deploy code when there is no pre or post-deploy script defined
...
Closes #3385
2019-01-09 07:46:04 -05:00
Jose Diaz-Gonzalez
a5a66dd916
feat: add support for the Procfile release command
...
Closes #3136
2019-01-07 07:45:02 -05:00
Jose Diaz-Gonzalez
dfefdab67c
refactor: simplify script execution
...
The previous method had a few too many nested if statements, making it difficult to track when and where the function stopped executing.
2019-01-07 07:04:02 -05:00
Jose Diaz-Gonzalez
952db832d9
refactor: move app.json script execution into it's own plugin
...
Rather than have this live in 00_dokku-standard, move it out so that it may start to support various other features around the app.json manifest.
2019-01-07 07:02:07 -05:00