Skip to content

Commit

Permalink
[build] Add containerd components
Browse files Browse the repository at this point in the history
Build and add containerd components (containerd.exe and
containerd-shim-runhcs-v1.exe) to the payload.
  • Loading branch information
aravindhp committed Sep 21, 2021
1 parent f8b4e23 commit 23adc6b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ WORKDIR /build/windows-machine-config-operator/windows-machine-config-bootstrapp
COPY windows-machine-config-bootstrapper/ .
RUN make build

# Build containerd
WORKDIR /build/windows-machine-config-operator/containerd/
COPY containerd/ .
RUN GOOS=windows make

# Build containerd shim
WORKDIR /build/windows-machine-config-operator/hcsshim/
COPY hcsshim/ .
RUN GOOS=windows go build ./cmd/containerd-shim-runhcs-v1

# Build hybrid-overlay
WORKDIR /build/windows-machine-config-operator/ovn-kubernetes/
COPY ovn-kubernetes/ .
Expand Down Expand Up @@ -69,6 +79,9 @@ RUN make build
#│ ├── win-bridge.exe
#│ ├── win-overlay.exe
#│ └── cni-conf-template.json
#├── containerd
#│ ├── containerd.exe
#│ └── containerd-shim-runhcs-v1
#├── hybrid-overlay-node.exe
#├── kube-node
#│ ├── kubelet.exe
Expand All @@ -86,6 +99,11 @@ LABEL stage=operator
WORKDIR /payload/
COPY --from=build /build/windows-machine-config-operator/windows-machine-config-bootstrapper/wmcb.exe .

# Copy containerd.exe and containerd-shim-runhcs-v1.exe
WORKDIR /payload/containerd/
COPY --from=build /build/windows-machine-config-operator/containerd/bin/containerd.exe .
COPY --from=build /build/windows-machine-config-operator/hcsshim/containerd-shim-runhcs-v1.exe .

# Copy hybrid-overlay-node.exe
COPY --from=build /build/windows-machine-config-operator/ovn-kubernetes/go-controller/_output/go/bin/windows/hybrid-overlay-node.exe .

Expand Down
15 changes: 15 additions & 0 deletions build/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ WORKDIR /build/windows-machine-config-operator/windows-machine-config-bootstrapp
COPY windows-machine-config-bootstrapper/ .
RUN make build

# Build containerd
WORKDIR /build/windows-machine-config-operator/containerd/
COPY containerd/ .
RUN GOOS=windows make

# Build containerd shim
WORKDIR /build/windows-machine-config-operator/hcsshim/
COPY hcsshim/ .
RUN GOOS=windows go build ./cmd/containerd-shim-runhcs-v1

# Build hybrid-overlay
WORKDIR /build/windows-machine-config-operator/ovn-kubernetes/
COPY ovn-kubernetes/ .
Expand Down Expand Up @@ -51,6 +61,11 @@ LABEL stage=base
WORKDIR /payload/
COPY --from=build /build/windows-machine-config-operator/windows-machine-config-bootstrapper/wmcb.exe .

# Copy containerd.exe and containerd-shim-runhcs-v1.exe
WORKDIR /payload/containerd/
COPY --from=build /build/windows-machine-config-operator/containerd/bin/containerd.exe .
COPY --from=build /build/windows-machine-config-operator/hcsshim/containerd-shim-runhcs-v1.exe .

# Copy hybrid-overlay-node.exe
COPY --from=build /build/windows-machine-config-operator/ovn-kubernetes/go-controller/_output/go/bin/windows/hybrid-overlay-node.exe .

Expand Down
18 changes: 18 additions & 0 deletions build/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ WORKDIR /build/windows-machine-config-operator/windows-machine-config-bootstrapp
COPY windows-machine-config-bootstrapper/ .
RUN make build

# Build containerd
WORKDIR /build/windows-machine-config-operator/containerd/
COPY containerd/ .
RUN GOOS=windows make

# Build containerd shim
WORKDIR /build/windows-machine-config-operator/hcsshim/
COPY hcsshim/ .
RUN GOOS=windows go build ./cmd/containerd-shim-runhcs-v1

# Build hybrid-overlay
WORKDIR /build/windows-machine-config-operator/ovn-kubernetes/
COPY ovn-kubernetes/ .
Expand Down Expand Up @@ -86,6 +96,9 @@ RUN make build
#│ ├── win-bridge.exe
#│ ├── win-overlay.exe
#│ └── cni-conf-template.json
#├── containerd
#│ ├── containerd.exe
#│ └── containerd-shim-runhcs-v1
#├── hybrid-overlay-node.exe
#├── kube-node
#│ ├── kubelet.exe
Expand All @@ -103,6 +116,11 @@ LABEL stage=operator
WORKDIR /payload/
COPY --from=build /build/windows-machine-config-operator/windows-machine-config-bootstrapper/wmcb.exe .

# Copy containerd.exe and containerd-shim-runhcs-v1.exe
WORKDIR /payload/containerd/
COPY --from=build /build/windows-machine-config-operator/containerd/bin/containerd.exe .
COPY --from=build /build/windows-machine-config-operator/hcsshim/containerd-shim-runhcs-v1.exe .

# Copy hybrid-overlay-node.exe
COPY --from=build /build/windows-machine-config-operator/ovn-kubernetes/go-controller/_output/go/bin/windows/hybrid-overlay-node.exe .

Expand Down

0 comments on commit 23adc6b

Please sign in to comment.