Skip to content

Conversation

@tpoitras
Copy link

Edited PostgreSQL image content from the following PRs:

#240
#247

As per Trello Card https://trello.com/c/GZ0BoR0X

@tpoitras
Copy link
Author

Ping @mnagy for Tech Review. Also: Please provide default values for "PostgreSQL Settings" environment variables (see the table I've created). Trying to make this consistent with docs I'm doing for other images.

Copy link

Choose a reason for hiding this comment

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

Maybe we could use the example without passing the password on a command line and instead enter it in the prompt? Since using the command line is generally considered insecure, we probably shouldn't give a bad example.

Copy link
Author

Choose a reason for hiding this comment

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

That's a great point. We definitely don't want to recommend our users to do something that isn't secure.

@mnagy
Copy link

mnagy commented Mar 30, 2015

@tpoitras Technically, all looks ok, thought I've made some comments. You can find the defaults in the postgresql repository's README.md. It's 100 connections and "32M" for shared buffers.

@mnagy
Copy link

mnagy commented Mar 30, 2015

Oh, and one more thing, that should maybe apply to all images. In order to build docker images, one needs to have docker working. Should we mention that? Possibly with the minimal required version I imagine, though I don't know off the top of my head which one that would be.

@tpoitras
Copy link
Author

Updated as per tech review from Martin.

ping @mnagy -- please verify this looks good, specifically can you please make sure I got the syntax correct for the testing command, now that password is removed? I assumed that the colon should be removed as well.

Also, I think the overview at the start of the topic already covers the need for Docker.

@mnagy
Copy link

mnagy commented Mar 31, 2015

@tpoitras I apologize, but I just realized that this might not work, because the psql command will prompt for the password and I'm not sure if redirecting the "SELECT 1;' statement won't get caught by the password prompt. Still, this is easily fixed, we just need to use -c or --command.

psql -c "SELECT 1;" postgresql://_<user>[email protected]:5432/_<database>_

or

psql --command "SELECT 1;" postgresql://_<user>[email protected]:5432/_<database>_

As per http://www.postgresql.org/docs/9.2/static/app-psql.html

@tpoitras tpoitras force-pushed the postgresqlCARD574 branch from df99fa0 to 1a6593c Compare April 1, 2015 04:15
@tpoitras
Copy link
Author

tpoitras commented Apr 1, 2015

@mnagy -- thanks for that. Replaced with the 1st of your 2 suggested commands. Look good?

@mnagy
Copy link

mnagy commented Apr 2, 2015

LGTM

@tpoitras
Copy link
Author

tpoitras commented Apr 6, 2015

this is ready to be merged now @CowboysFan @adellape

@adellape
Copy link
Contributor

adellape commented Apr 7, 2015

Thanks, @tpoitras. LGTM as well, merging.

adellape added a commit that referenced this pull request Apr 7, 2015
Editing PostgreSQL image content for style and consistency
@adellape adellape merged commit ce48f41 into openshift:master Apr 7, 2015
@tpoitras tpoitras deleted the postgresqlCARD574 branch April 14, 2015 05:54
sbeskin-redhat pushed a commit to sbeskin-redhat/openshift-docs that referenced this pull request Oct 24, 2022
ensure the VS code extension  section is worded correctly
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