Skip to content

Commit

Permalink
feat: add open api code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Jul 16, 2024
1 parent 944f07a commit 89a5b7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION 0.7
VERSION 0.8

all:
BUILD \
Expand Down Expand Up @@ -31,6 +31,8 @@ golang-base:
# install buf from source
RUN GO111MODULE=on GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/buf@v1.34.0

# install oapi to generate swagger
RUN go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest

# install the various tools to generate connect-go
RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
Expand All @@ -41,4 +43,4 @@ golang-base:
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
RUN ls -la $(which golangci-lint)

SAVE IMAGE --push tochemey/docker-go:1.22.2-${VERSION}
SAVE IMAGE --push tochemey/docker-go:1.22.5-${VERSION}
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Linux Docker Image for Golang and Golang development Tools. The project adheres
- [golang](https://go.dev/dl/): Go binaries
- [buf](https://buf.build): Generate protocol buffers wire format
- [mockery](https://github.com/vektra/mockery): Generate mocks for unit tests
- [golangci-lint](https://github.com/golangci/golangci-lint): Linter
- [connect](https://connectrpc.com/): Connect Generator
- [golangci-lint](https://github.com/golangci/golangci-lint): Help run Go Linter
- [connect-go](https://connectrpc.com/): Help generate connect-go related Go code
- [open api generator](https://github.com/oapi-codegen/oapi-codegen): Helps generate Go code from open api yaml file

## Architectures

Expand Down

0 comments on commit 89a5b7c

Please sign in to comment.