Skip to content

Commit

Permalink
docs: Update README and docker-compose to require use of TimescaleDB …
Browse files Browse the repository at this point in the history
…v1.7
  • Loading branch information
placer14 committed Jan 4, 2021
1 parent a655c12 commit a49a698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,14 @@ Build the `sentinel-visor` binary to the root of the project directory:
$ make build
```

Install PostgreSQL:
Install TimescaleDB v1.7.4:

```sh
brew install postgresql@12
```

Install TimescaleDB:

```sh
brew tap timescale/tap
brew install timescaledb
```

You may need to run the following _before_ installing timescale to get it to compile:
In a separate shell, use docker-compose to start the appropriate version of Postgres with TimescaleDB. (Note: Visor requires TimescaleDB v1.7.x and will not work with v2.0.)

```sh
ln -s /usr/local/Cellar/postgresql@12/12.5/include/postgresql/server /usr/local/Cellar/postgresql@12/12.5/include/server
docker-compose up --build timescaledb
```

Run `timescaledb-tune` and/or activate TimescaleDB by adding `shared_preload_libraries = 'timescaledb'` to `postgresql.conf`. Ensure you run `timescaledb_move.sh` as homebrew asks to finish the installation and then restart the postgres server if it's running.

### Running tests

Create a new DB in postgres for testing:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.5'
services:
timescaledb:
container_name: timescaledb
image: timescale/timescaledb:latest-pg12
image: timescale/timescaledb:1.7.4-pg12
ports:
- "5432:5432"
environment:
Expand Down

0 comments on commit a49a698

Please sign in to comment.