Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Dec 27, 2023
1 parent 3a28c5f commit 85bc1ad
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 1,699 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ RUN apk add make git bash build-base
ENV GOPATH=/go
ENV PATH="/go/bin:${PATH}"
ADD ./ /go/src/github.com/bmeg/grip
RUN cd /go/src/github.com/bmeg/grip && make install && go build -trimpath --buildmode=plugin ./endpoints/graphql_gen3
RUN cp /go/src/github.com/bmeg/grip/graphql_gen3.so /
#RUN cd /go/src/github.com/bmeg/grip && make install

RUN cd /go/src/github.com/bmeg/grip && make

# final stage
FROM alpine
WORKDIR /data
VOLUME /data
ENV PATH="/app:${PATH}"
COPY --from=build-env /graphql_gen3.so /data/
COPY --from=build-env /go/bin/grip /app/
5 changes: 0 additions & 5 deletions endpoints/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@

all: graphql.so cypher.so graphqlv2.so

# requires 'brew install zig' since CGO requires extra tools to crosscompile on Darwin
# -trimpath flag must be used for building extension and the grip object
graphql_gen3_amd64 : $(shell find graphql_gen3 -name "*.go")
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC="zig cc -target x86_64-linux" CXX="zig c++ -target x86_64-linux" go build --tags extended -trimpath --buildmode=plugin ./graphql_gen3

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

Expand Down
280 changes: 0 additions & 280 deletions endpoints/gen3_writer/handler.go

This file was deleted.

37 changes: 0 additions & 37 deletions endpoints/graphql_gen3/README.md

This file was deleted.

Loading

0 comments on commit 85bc1ad

Please sign in to comment.