Commit Graph

18 Commits

Author SHA1 Message Date
Joe Ferguson ee33a2144a Add initial jq-based templating engine 2020-11-20 13:19:57 -08:00
inductor 202bf4b2d1 update shell 2020-02-27 12:37:32 +09:00
inductor 335fb9fc8e update debian base version to buster 2020-01-18 12:01:15 +09:00
Joe Ferguson 91785a50c3 Add --dont-use-mysql-root-password flag for docker_process_sql
- also remove bash generating bash
2019-09-17 17:11:35 -07:00
Joe Ferguson 169471f893 Apply update.sh to update each entrypoint; drop 5.5 from update.sh 2019-09-17 17:11:35 -07:00
Joe Ferguson 06acf82405 A few entrypoint updates to increase usability
`docker-entrypoint.sh`:

 - update `docker_process_init_files` to take in a list of file
 - update `docker_process_sql` to take sql input on stdin to maintain compatibility with `mysql` (and prevent us from loading an entire `.sql` file into memory)
 - move any code that was outside a function to `_main` or other functions
 - use `local` variables in functions to limit scope
 - move current `docker_create_db_directories` logic to `docker_init_database_dir`
   - new docker_create_db_directories that just creates and chowns directories
 - move `PASSFILE` to be in memory only so that we don't accidentally not clean it up
 - move `FLUSH PRIVILEGES` to fix https://github.com/docker-library/mysql/pull/549

update.sh:

 - add back `DELETE` statement for 5.5 and 5.6
 - swap some template strings to single quotes to make it easier to read
 - swap `sed` to use ! for delimter
 - use one loop rather than two
2019-09-17 17:11:35 -07:00
Lars Tangvald f9c185f01e entrypoint: Move more logic into functions
Almost all logic in the entrypoint script is now separated into
various functions
2019-09-17 17:11:35 -07:00
Lars Tangvald eb2821b4ea Fix typo templaing->templating 2019-09-17 17:11:35 -07:00
Lars Tangvald 03bdbade04 Add 5.5 and 5.6 to entrypoint templating
This requires adding some variables that are replaced when
generating the entrypoint scripts
2019-09-17 17:11:35 -07:00
Lars Tangvald 34f3ef2bb6 Template: Rename template directory to be hidden
Renamed from template.Debian to .template.Debian so the update
script won't see it as a build directory.
2019-09-17 17:11:35 -07:00
Lars Tangvald 5a727ad690 Make template for 5.7+ entrypoint script
5.7 and 8.0 can use the exact same entrypoint script, so
simply have the update script copy it from a template location.
2019-09-17 17:11:35 -07:00
J0WI 0f338484d3 Use https in update.sh 2019-08-06 02:02:47 +02:00
J0WI 98f958b67c Remove EOL 5.5 2019-05-21 22:03:04 +02:00
Tianon Gravi f279c9cc0d Update 5.7, 5.6, and 5.5 to "debian:stretch-slim" 2018-02-22 14:23:02 -08:00
Tianon Gravi 7c72a4561c Update 8.0 to Debian Stretch 2018-02-15 09:34:42 -08:00
Tianon Gravi 7e712faa54 Embed the full Debian package version number and fix the 5.7 build 2015-10-21 14:49:06 -07:00
Tianon Gravi 19f21a04f0 Fix update.sh to work on 5.5 and lower too 2014-11-03 13:01:29 -07:00
Tianon Gravi 4aa2080c73 Add simple update.sh script 2014-08-14 17:36:31 -06:00