-
Notifications
You must be signed in to change notification settings - Fork 237
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 #65 from dweomer/initial-move-to-k3s-io
initial move to k3s-io
- Loading branch information
Showing
19 changed files
with
160 additions
and
135 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
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,9 +1,34 @@ | ||
FROM golang:1.13.7-alpine3.11 AS builder | ||
RUN apk --no-cache add gcc musl-dev | ||
WORKDIR /go/src/github.com/rancher/kine | ||
COPY . . | ||
RUN GO111MODULE=on go build -o /bin/kine | ||
|
||
FROM alpine:3.11 | ||
COPY --from=builder /bin/kine /bin/kine | ||
ENTRYPOINT ["/bin/kine"] | ||
FROM golang:1.15-alpine3.12 AS dapper | ||
|
||
ARG ARCH=amd64 | ||
|
||
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates | ||
RUN go get -d golang.org/x/lint/golint && \ | ||
git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \ | ||
go install golang.org/x/lint/golint && \ | ||
rm -rf /go/src /go/pkg | ||
RUN mkdir -p /go/src/golang.org/x && \ | ||
cd /go/src/golang.org/x && git clone https://github.com/golang/tools && \ | ||
git -C /go/src/golang.org/x/tools checkout -b current aa82965741a9fecd12b026fbb3d3c6ed3231b8f8 && \ | ||
go install golang.org/x/tools/cmd/goimports | ||
RUN rm -rf /go/src /go/pkg | ||
|
||
RUN if [ "${ARCH}" == "amd64" ]; then \ | ||
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.27.0; \ | ||
fi | ||
|
||
ENV DAPPER_RUN_ARGS --privileged | ||
ENV DAPPER_ENV ARCH REPO TAG DRONE_TAG IMAGE_NAME CROSS | ||
ENV DAPPER_SOURCE /go/src/github.com/k3s-io/kine/ | ||
ENV DAPPER_OUTPUT ./bin ./dist | ||
ENV DAPPER_DOCKER_SOCKET true | ||
ENV HOME ${DAPPER_SOURCE} | ||
WORKDIR ${DAPPER_SOURCE} | ||
|
||
ENTRYPOINT ["./scripts/entry"] | ||
CMD ["ci"] | ||
|
||
FROM alpine:3.12 AS release | ||
ARG ARCH=amd64 | ||
COPY dist/artifacts/kine-${ARCH} /bin/kine | ||
ENTRYPOINT ["/bin/kine"] |
This file was deleted.
Oops, something went wrong.
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.