Skip to content

Commit

Permalink
cleanup, fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Dec 31, 2024
1 parent 0b4615f commit e69815f
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 1,681 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ ENV PATH="/go/bin:${PATH}"
ADD ./ /go/src/github.com/bmeg/grip-graphql
WORKDIR /go/src/github.com/bmeg/grip-graphql


RUN go install github.com/bmeg/[email protected]
RUN go build --buildmode=plugin ./graphql_gen3
RUN go build --buildmode=plugin ./gen3_writer
RUN go build --buildmode=plugin ./grip-graphql-endpoint

RUN go install github.com/bmeg/[email protected]
RUN make all

FROM alpine
WORKDIR /data
VOLUME /data
ENV PATH="/app:${PATH}"
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/graphql_gen3.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/gql-gen.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/gen3_writer.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/grip-graphql-endpoint.so /data/
COPY --from=build-env /go/src/github.com/bmeg/grip-graphql/config/gen3.js /data/config/
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ grip-graphql-endpoint.so : $(shell find grip-graphql-endpoint -name "*.go")
grip-graphql-proxy : $(shell find cmd/grip-graphql-proxy -name "*.go")
go build ./cmd/grip-graphql-proxy

graphql_gen3 : $(shell find graphql_gen3 -name "*.go")
go build --buildmode=plugin ./graphql_gen3

gql-gen : $(shell find gql-gen -name "*.go")
go build --buildmode=plugin ./gql-gen

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gen3_writer directory contains a [Gin](https://github.com/gin-gonic/gin) go serv

gripgraphql directory contains a graphql based read query plugin that uses a [goja](https://github.com/dop251/goja) engine to read from a static schema defined as a config file to create custom graphql queries that can be used to abstract Grip's complex query language into a more digestible query format for the frontend to use.

graphql_gen3 is a legacy implementation of a reader reader plugin using a more traditional graphql schema builder.
gql-gen directory contains a graphql schema based read plugin that leverages [gql-gen](https://github.com/99designs/gqlgen) to autogenerate go structs and for schema introspection

See ./gen3_writer for tests and additional documentation

Expand Down
47 changes: 0 additions & 47 deletions graphql_gen3/README.md

This file was deleted.

Loading

0 comments on commit e69815f

Please sign in to comment.