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

Create server in postgres quickstart #109

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
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
14 changes: 14 additions & 0 deletions postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ createdb --help
psql --help
```

- Start postgres server (note: this is an insecure postgres, only use for testing).
```bash
docker run --name postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d -p 5432:5432 postgres
```

- Configure postgres settings
```bash
export PGHOST=localhost
export PGPORT=5432
export PGUSER=postgres
```

- Spice is installed (see the [Getting Started](https://docs.spiceai.org/getting-started) documentation).

- [Login](https://docs.spiceai.org/cli/reference/login) to Spice, since this quickstart is using [Spice.ai Data Connector](https://docs.spiceai.org/data-connectors/spiceai).
Expand Down Expand Up @@ -72,9 +84,11 @@ datasets:
engine: postgres
params:
pg_host: localhost
pg_user: postgres
pg_port: 5432
pg_db: spice_demo
pg_sslmode: disable

```

Save the changes to `spicepod.yaml`. The Spice runtime terminal will show that the dataset has been loaded:
Expand Down
Loading