forked from nitrictech/nitric
-
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.
chore: Additional fixes and cleaning up. Tested with aws-debian build.
- Loading branch information
Showing
14 changed files
with
59 additions
and
36 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,5 +1,5 @@ | ||
.git/ | ||
docker.sh | ||
bin/ | ||
plugins/ | ||
*.dockerfile | ||
*.dockerfile | ||
lib/ |
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 |
---|---|---|
|
@@ -2,27 +2,23 @@ | |
# Once the plugin SDK is visible for building | ||
|
||
FROM golang:alpine as build | ||
ARG NITRIC_GITHUB_TOKEN | ||
|
||
RUN apk update | ||
RUN apk upgrade | ||
|
||
# RUN apk add --update go=1.8.3-r0 gcc=6.3.0-r4 g++=6.3.0-r4 | ||
RUN apk add --no-cache git gcc g++ make | ||
RUN apk add --no-cache git curl gcc g++ make | ||
# build-base autoconf automake libtool | ||
|
||
WORKDIR / | ||
|
||
# XXX: Setup private github repo access | ||
RUN go env -w GOPRIVATE="github.com/nitric-dev" | ||
RUN git config --global url.https://$NITRIC_GITHUB_TOKEN:[email protected]/.insteadOf https://github.com/ | ||
|
||
# Cache dependencies in seperate layer | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN make build | ||
RUN make membrane | ||
|
||
FROM alpine | ||
|
||
|
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 |
---|---|---|
|
@@ -2,21 +2,16 @@ | |
# Once the plugin SDK is visible for building | ||
|
||
FROM golang:buster as build | ||
ARG NITRIC_GITHUB_TOKEN | ||
|
||
WORKDIR / | ||
|
||
# XXX: Setup private github repo access | ||
RUN go env -w GOPRIVATE="github.com/nitric-dev" | ||
RUN git config --global url.https://$NITRIC_GITHUB_TOKEN:[email protected]/.insteadOf https://github.com/ | ||
|
||
# Cache dependencies in seperate layer | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN make build | ||
RUN make membrane | ||
|
||
FROM debian:buster-slim | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# FIXME: Build with docker context in future | ||
# Once the plugin SDK is visible for building | ||
FROM golang:buster as build | ||
|
||
WORKDIR / | ||
|
||
# Cache dependencies in seperate layer | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN make aws-plugins | ||
|
||
# Default dockerfile for the Nitric AWS base image | ||
FROM nitric:membrane-debian | ||
|
||
# FIXME: Build these in a build stage during the docker build | ||
# for now will just be copied post local build | ||
# and execute these stages through a local shell script | ||
COPY --from=build ./lib/documents/dynamodb.so /plugins/documents.so | ||
COPY --from=build ./lib/eventing/sns.so /plugins/eventing.so | ||
COPY --from=build ./lib/storage/s3.so /plugins/storage.so | ||
COPY --from=build ./lib/gateway/lambda.so /plugins/gateway.so | ||
|
||
RUN chmod +rx /plugins/* | ||
|
||
# FIXME: Do we need this here? | ||
ENTRYPOINT [ "/membrane" ] |
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
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