Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ test-integration: install
# Regenerate openapi client and models
generate:
rm -rf pkg/api/openapi
mkdir -p data/generated/openapi
$(container_tool) build -t ams-openapi -f Dockerfile.openapi .
$(eval OPENAPI_IMAGE_ID=`$(container_tool) create -t ams-openapi -f Dockerfile.openapi .`)
$(container_tool) cp $(OPENAPI_IMAGE_ID):/local/pkg/api/openapi ./pkg/api/openapi
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ Before running TRex for the first time, ensure the prerequisites are installed.

```sh

# 1. build the project
# 1. create the openapi types and build the project

$ go install gotest.tools/gotestsum@latest
$ make generate
$ make binary

# 2. run a postgres database locally in docker
Expand Down Expand Up @@ -237,4 +238,4 @@ Following manual changes are required to run the application successfully:
- `pkg/db/migrations/migration_structs.go` : Add migration name
- `test/factories.go` : Add helper functions

Here's a reference MR for the same : https://github.com/openshift-online/rh-trex/pull/25
Here's a reference MR for the same : https://github.com/openshift-online/rh-trex/pull/25
267 changes: 0 additions & 267 deletions data/generated/openapi/openapi.go

This file was deleted.

24 changes: 0 additions & 24 deletions pkg/api/openapi/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions pkg/api/openapi/.openapi-generator-ignore

This file was deleted.

37 changes: 0 additions & 37 deletions pkg/api/openapi/.openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion pkg/api/openapi/.openapi-generator/VERSION

This file was deleted.

8 changes: 0 additions & 8 deletions pkg/api/openapi/.travis.yml

This file was deleted.

136 changes: 0 additions & 136 deletions pkg/api/openapi/README.md

This file was deleted.

Loading