-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Go Modules #274
Merged
Merged
Use Go Modules #274
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ec41103
go modules
danielmmetz 2e20580
omg it passes tests
danielmmetz 84481bc
add this back
danielmmetz 959bb44
drop install
danielmmetz d24f1bd
quote
danielmmetz 6f9078c
fix lint
danielmmetz b7d1509
try this
danielmmetz 5f28d83
just keep swimming
danielmmetz 8d6aadb
merge master
sethsaperstein-lyft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,28 +1,24 @@ | ||
FROM golang:1.13.4-alpine3.10 as builder | ||
FROM golang:1.20.2-alpine3.17 as builder | ||
RUN apk add git openssh-client make curl bash | ||
|
||
COPY boilerplate/lyft/golang_test_targets/dep_install.sh /go/src/github.com/lyft/flinkk8soperator/ | ||
|
||
# COPY only the dep files for efficient caching | ||
COPY Gopkg.* /go/src/github.com/lyft/flinkk8soperator/ | ||
COPY go.mod go.sum /go/src/github.com/lyft/flinkk8soperator/ | ||
WORKDIR /go/src/github.com/lyft/flinkk8soperator | ||
|
||
# Pull dependencies | ||
RUN : \ | ||
&& sh dep_install.sh \ | ||
&& dep ensure -vendor-only | ||
RUN go mod download | ||
|
||
# COPY the rest of the source code | ||
COPY . /go/src/github.com/lyft/flinkk8soperator/ | ||
|
||
# This 'linux_compile' target should compile binaries to the /artifacts directory | ||
# The main entrypoint should be compiled to /artifacts/flinkk8soperator | ||
RUN make linux_compile | ||
RUN go mod vendor && make linux_compile | ||
|
||
# update the PATH to include the /artifacts directory | ||
ENV PATH="/artifacts:${PATH}" | ||
|
||
# This will eventually move to centurylink/ca-certs:latest for minimum possible image size | ||
FROM alpine:3.10 | ||
FROM alpine:3.17 | ||
COPY --from=builder /artifacts /bin | ||
CMD ["flinkoperator"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the double quote necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes—without it, YAML interprets this as "1.2" and you get a very old version of Go.