Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lsowen committed Sep 15, 2024
1 parent b035970 commit c043d3a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
authorization.yml
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN go mod download
COPY ./ ./

# Build
RUN go generate pkg/api/server.go
RUN curl --remote-name --silent https://raw.githubusercontent.com/treeverse/lakeFS/v1.33.0/api/authorization.yml && \
go generate pkg/api/server.go
RUN CGO_ENABLED=0 go build -o hoover-dam ./cmd/hooverdam


Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Hoover Dam

Open source re-implementation of the Authorization API server for LakeFS.


# Local Development

```bash
curl --remote-name --silent https://raw.githubusercontent.com/treeverse/lakeFS/v1.33.0/api/authorization.yml
go generate pkg/api/server.go
```
2 changes: 1 addition & 1 deletion pkg/api/server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package api

//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.5.6 -package service -generate "types,chi-server" -o service/server.gen.go ../../../lakeFS/api/authorization.yml
//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.5.6 -package service -generate "types,chi-server" -o service/server.gen.go ../../authorization.yml

import (
"fmt"
Expand Down

0 comments on commit c043d3a

Please # to comment.