-
Notifications
You must be signed in to change notification settings - Fork 30
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
Porch Database Repository Tutorial #177
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for nephio ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This tutorial is a guide to using Porch DB repos. It is an extension of the | ||
[Install and use Porch](install-and-using-porch.md) guide. | ||
|
||
See also [the Nephio Learning Resource](https://github.com/nephio-project/docs/blob/main/learning.md) page for |
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.
Shoudn't we move this to the rendered documentation?
|
||
## Install and configure Postgres | ||
|
||
Postgres is configured to store its data on an external mount at `/tmp/porch/postgres`. Clear old Postgresql data if it already exists: |
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.
Postgres is configured to store its data on an external mount at `/tmp/porch/postgres`. Clear old Postgresql data if it already exists: | |
Postgres is configured to store its data on an external mount at */tmp/porch/postgres*. Clear old Postgresql data if it already exists: |
|
||
Postgres is configured to store its data on an external mount at `/tmp/porch/postgres`. Clear old Postgresql data if it already exists: | ||
|
||
``` |
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.
``` | |
```bash |
|
||
From the root of Porch run the command: | ||
|
||
``` |
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.
``` | |
```bash |
|
||
Wait for Postgresql to come up in the cluster | ||
|
||
``` |
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.
``` | |
```bash |
|
||
Examine the DB contents: | ||
|
||
``` |
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.
``` | |
```bash |
``` | ||
|
||
Run through the rest of the package lifecycle: | ||
``` |
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.
``` | |
```bash |
``` | ||
|
||
Check the package is gone from the DB: | ||
``` |
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.
``` | |
```bash |
|
||
## Delete the repository | ||
|
||
``` |
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.
``` | |
```bash |
``` | ||
|
||
Check the repo is erased in the DB: | ||
``` |
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.
``` | |
```bash |
Tutorial for the Porch DB repo prototype.