Skip to content
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

docker Instruction added for accessing Postgres shell #422

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ You can use a <a href="https://www.postgresql.org/download/">package management
<br>

```bash
sudo apt install postgresql

sudo apt install postgresql
```
<h4>
&nbsp;Install From Source Code
Expand Down Expand Up @@ -180,9 +179,8 @@ make PG_CONFIG=/path/to/postgres/bin/pg_config install

```bash
docker pull apache/age

```
<h5> Create AGE docker container </h5>
<h5> Create age docker container for first time</h5>
Copy link
Contributor

Choose a reason for hiding this comment

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

You can capitalize the age word here as it holds significance

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the container name is case sensitive... Container won't run otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the title, affecting the case of the alphabet won't make any difference in the running of the code. The case-sensitive line is 193 specifying the image to pull.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


```bash
docker run \
Expand All @@ -195,7 +193,23 @@ docker run \
apache/age
```

<h5> Or Run docker container if you previously worked with age container </h5>
Copy link
Contributor

Choose a reason for hiding this comment

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

Also, capitalize the age keyword here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the container name is case sensitive... Container won't run otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

This is only a task description so you can capitalize the alphabet here. The main script is line 199 which should be case sensitive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


```bash
docker start age
```

<h5> Access CLI for running age container</h5>

```bash
docker exec -it age /bin/bash
```

<h5> Access Postgres shell </h5>

```bash
psql -U postgresUser postgresDB
```

<h2><img height="20" src="/img/contents.svg">&nbsp;&nbsp;Post Installation</h2>

Expand Down