Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
lsowen committed Sep 15, 2024
1 parent 71cf162 commit 40a6b93
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@ Open source re-implementation of the Authorization API server for LakeFS.

# Local Development

## Generate API server bindings
```bash
curl --remote-name --silent https://raw.githubusercontent.com/treeverse/lakeFS/v1.33.0/api/authorization.yml
go generate pkg/api/server.go
```

## Run

1. Start database `docker run --rm -ti --name hoover --env POSTGRES_PASSWORD=password --publish 54322:5432 docker.io/postgres:16.4`
2. `export HOOVERDAM_DATABASE_POSTGRES_CONNECTION_STRING='postgresql://localhost:54322/postgres?user=postgres&password=postgres'`
3. `export HOOVERDAM_AUTH_ENCRYPT_SECRET_KEY=<SOME_SECRET_KEY>`
4. Apply migrations:
```bash
go install github.com/jackc/tern/v2@latest
cd migrations/
tern migrate --conn-string $HOOVERDAM_DATABASE_POSTGRES_CONNECTION_STRING
```
5. `go run cmd/hooverdam/main.go run`

0 comments on commit 40a6b93

Please # to comment.