Skip to content

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

Merged
merged 2 commits into from
Dec 2, 2015
Merged

Added security options #119

merged 2 commits into from
Dec 2, 2015

Conversation

ltangvald
Copy link
Collaborator

  • Added option for randomly generated root password

* 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+)

* 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
Copy link
Member

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?

Copy link
Collaborator Author

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 :)

@tianon
Copy link
Member

tianon commented Nov 30, 2015

Very nice additions IMO 👍 🤘

@ltangvald
Copy link
Collaborator Author

Should be fixed now :)

@yosifkit
Copy link
Member

yosifkit commented Dec 2, 2015

LGTM

1 similar comment
@tianon
Copy link
Member

tianon commented Dec 2, 2015

LGTM

tianon added a commit that referenced this pull request Dec 2, 2015
@tianon tianon merged commit 087cca9 into docker-library:master Dec 2, 2015
yosifkit added a commit to infosiftr/stackbrew that referenced this pull request Dec 3, 2015
- `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
yosifkit added a commit to infosiftr/stackbrew that referenced this pull request Dec 3, 2015
- `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
yosifkit added a commit to infosiftr/stackbrew that referenced this pull request Dec 3, 2015
- `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
pierreozoux pushed a commit to pierreozoux/official-images that referenced this pull request Jan 7, 2016
- `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
RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants