Skip to content

Conversation

@mnagy
Copy link
Contributor

@mnagy mnagy commented Mar 22, 2015

This PR adds few improvements that were novel in the PostgreSQL image.

  • Put DB volume into /var/lib/mysql/data, add SCL .bashrc
  • Move DB volume into /var/lib/mysql/data
  • Add SCL enablement into /var/lib/mysql/.bashr so we can now run the
    arbitrary commands in the image without needing to override the
    entrypoint
  • Test DB and user names for maximum allowed length
  • Better error messages for invalid env vars
  • Tests for the above

@mnagy mnagy force-pushed the additional_postgres_sync branch from 365ab8c to e1eebe8 Compare March 23, 2015 07:38
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe explain the reasoning in docs or in comment

@mnagy mnagy force-pushed the additional_postgres_sync branch from e1eebe8 to a03dbda Compare March 23, 2015 09:52
@mnagy
Copy link
Contributor Author

mnagy commented Mar 23, 2015

@mfojtik comments addressed. PTAL

@soltysh
Copy link
Contributor

soltysh commented Mar 23, 2015

LGTM.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so does this work if i just docker exec into a running container with /bin/sh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, but will work with interactive bash shell.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image_creation seems like the wrong name for this... do you mean db creation?

@mnagy mnagy force-pushed the additional_postgres_sync branch from a03dbda to f85aa67 Compare March 23, 2015 12:34
* Put DB volume into /var/lib/mysql/data, add SCL .bashrc
* Move DB volume into /var/lib/mysql/data
* Add SCL enablement into /var/lib/mysql/.bashr so we can now run the
  arbitrary commands in the image without needing to override the
  entrypoint
* Test DB and user names for maximum allowed length
* Better error messages for invalid env vars
* Tests for the above
@mnagy mnagy force-pushed the additional_postgres_sync branch from f85aa67 to 5b6ebf8 Compare March 23, 2015 12:37
@bparees
Copy link
Collaborator

bparees commented Mar 23, 2015

lgtm.

mnagy added a commit that referenced this pull request Mar 23, 2015
Various changes to sync-up with PostgreSQL image
@mnagy mnagy merged commit 8e45e84 into sclorg:master Mar 23, 2015
@mnagy mnagy deleted the additional_postgres_sync branch March 23, 2015 13:11
hhorak pushed a commit to hhorak/mysql-container that referenced this pull request May 23, 2018
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.

4 participants