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
Switch to cross-compiled docker containers & container build #1571
Changes from all commits
8f3830a
f88b586
f29b2ed
0568eb3
2a427e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,11 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
FROM golang:1.16.5 AS builder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The golang image also used here |
||
WORKDIR /go/src/volcano.sh/ | ||
ADD . volcano | ||
RUN cd volcano && make vc-scheduler | ||
FROM alpine:latest | ||
|
||
ADD vc-scheduler /vc-scheduler | ||
COPY --from=builder /go/src/volcano.sh/volcano/_output/bin/vc-scheduler /vc-scheduler | ||
ENTRYPOINT ["/vc-scheduler"] |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,13 @@ | |
|
||
# The base image is created via `Dockerfile.base`, the base image is cached | ||
# since the required packages change very rarely. | ||
FROM golang:1.16 AS builder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The golang image also used here |
||
WORKDIR /go/src/volcano.sh/ | ||
ADD . volcano | ||
RUN cd volcano && make vc-webhook-manager | ||
|
||
FROM volcanosh/vc-webhook-manager-base:1.3.1 | ||
|
||
ADD vc-webhook-manager /vc-webhook-manager | ||
ADD gen-admission-secret.sh /gen-admission-secret.sh | ||
COPY --from=builder /go/src/volcano.sh/volcano/_output/bin/vc-webhook-manager /vc-webhook-manager | ||
ADD ./installer/dockerfile/webhook-manager/gen-admission-secret.sh /gen-admission-secret.sh | ||
ENTRYPOINT ["/vc-webhook-manager"] |
This file was deleted.
This file was deleted.
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.
There are three places where golang mirrors are used. If I want to update the version of go that compiles volcano, I need to update three places. Is there any room for optimization here?