-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from bmeg/feature/testing
Feature/testing
- Loading branch information
Showing
8 changed files
with
185 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
FROM golang:1.22.6-alpine AS build-env | ||
RUN apk add --no-cache bash | ||
RUN apk add make git bash build-base libc-dev binutils-gold | ||
RUN apk add make git bash build-base libc-dev binutils-gold curl | ||
ENV GOPATH=/go | ||
ENV PATH="/go/bin:${PATH}" | ||
|
||
WORKDIR /go/src/github.com/bmeg/grip-graphql | ||
ADD ./ /go/src/github.com/bmeg/grip-graphql | ||
|
||
RUN go install github.com/bmeg/[email protected]20240808185832-ab51dee8a7aa | ||
RUN go install github.com/bmeg/[email protected]20240812223417-99c314b06713 | ||
RUN go build --buildmode=plugin ./graphql_gen3 | ||
RUN go build --buildmode=plugin ./gen3_writer | ||
RUN go build --buildmode=plugin ./grip-graphql-endpoint | ||
|
||
RUN cp /go/src/github.com/bmeg/grip-graphql/mongo.yml /mongo.yml | ||
RUN cp /go/src/github.com/bmeg/grip-graphql/mongo.yml / | ||
RUN cp /go/src/github.com/bmeg/grip-graphql/gen3_writer.so / | ||
RUN cp /go/src/github.com/bmeg/grip-graphql/graphql_gen3.so / | ||
RUN cp /go/src/github.com/bmeg/grip-graphql/grip-graphql-endpoint.so / | ||
|
||
|
||
#FROM alpine | ||
#WORKDIR /data | ||
#VOLUME /data | ||
#ENV PATH="/app:${PATH}" | ||
#COPY --from=build-env /graphql_gen3.so /data/ | ||
#COPY --from=build-env /gen3_writer.so /data/ | ||
#COPY --from=build-env /graphql_peregrine.so /data/ | ||
#COPY --from=build-env /schema.json /data/ | ||
#COPY --from=build-env /mongo.yml /data/ | ||
#COPY --from=build-env /go/bin/grip /app/ | ||
|
||
FROM alpine | ||
WORKDIR /data | ||
VOLUME /data | ||
ENV PATH="/app:${PATH}" | ||
COPY --from=build-env /graphql_gen3.so /data/ | ||
COPY --from=build-env /gen3_writer.so /data/ | ||
COPY --from=build-env /grip-graphql-endpoint.so /data/ | ||
COPY --from=build-env /mongo.yml /data/ | ||
COPY --from=build-env /go/bin/grip /app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.