-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Added security options #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Added option for randomly generated root password * Added option to immediately expire root password Conflicts: 5.5/Dockerfile 5.5/docker-entrypoint.sh 5.6/Dockerfile 5.6/docker-entrypoint.sh 5.7/Dockerfile 5.7/docker-entrypoint.sh
echo >&2 'error: database is uninitialized and password option is not specified ' | ||
echo >&2 ' You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD' | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace here seems a little off -- is this tabs, or spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, looks like a mix. Will fix :)
Very nice additions IMO 👍 🤘 |
Should be fixed now :) |
LGTM |
1 similar comment
LGTM |
- `django` bump to 1.9 - `drupal` bump to 8.0.1 - `mongo` bump to 3.2.0-rc6 - `mysql` see docker-library/mysql#119 - `php` PHP 7.0 GA
- `django` bump to 1.9 - `drupal` bump to 8.0.1 - `mongo` bump to 3.2.0-rc6 - `mysql` see docker-library/mysql#119 - `php` PHP 7.0 GA
- `django` bump to 1.9 - `drupal` bump to 8.0.1 - `golang` bump 1.5.2 - `mongo` bump to 3.2.0-rc6 - `mysql` see docker-library/mysql#119 - `php` PHP 7.0 GA
- `django` bump to 1.9 - `drupal` bump to 8.0.1 - `golang` bump 1.5.2 - `mongo` bump to 3.2.0-rc6 - `mysql` see docker-library/mysql#119 - `php` PHP 7.0 GA
- `django` bump to 1.9 - `drupal` bump to 8.0.1 - `golang` bump 1.5.2 - `mongo` bump to 3.2.0-rc6 - `mysql` see docker-library/mysql#119 - `php` PHP 7.0 GA
* Added option to immediately expire root password
Installs pwgen package
MYSQL_RANDOM_ROOT_PASSWORD:
Uses pwgen to generate a password for the server's root user, and outputs it to the containers stdout
MYSQL_ONETIME_PASSWORD:
Sets root user as expired once init is complete, forcing a password change on first login (5.6+)