-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
580 additions
and
152 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,3 +1,11 @@ | ||
# Build CSI drivers | ||
FROM tinygo/tinygo@sha256:65dc1c3e54f88aabe1efe073c3aadb1393593a56355a6ac03df5f18e6c3855dd as drivers | ||
|
||
COPY drivers/ /go/src | ||
|
||
RUN cd /go/src/csi.storageos.com ; go mod tidy && tinygo build -o main.wasm -target wasi --no-debug main.go | ||
RUN cd /go/src/ebs.csi.aws.com ; go mod tidy && tinygo build -o main.wasm -target wasi --no-debug main.go | ||
|
||
# Build the manager binary | ||
FROM golang@sha256:5b75b529da0f2196ee8561a90e5b99aceee56e125c6ef09a3da4e32cf3cc6c20 as builder | ||
|
||
|
@@ -20,27 +28,19 @@ COPY schedulers/ schedulers/ | |
# Build | ||
RUN GOOS=linux GOARCH=amd64 go build -a -o manager main.go | ||
|
||
# Build CSI drivers | ||
FROM tinygo/tinygo@sha256:65dc1c3e54f88aabe1efe073c3aadb1393593a56355a6ac03df5f18e6c3855dd as drivers | ||
|
||
COPY drivers/ /go/src | ||
|
||
RUN cd /go/src/csi.storageos.com ; go mod tidy && tinygo build -o main.wasm -target wasi --no-debug main.go | ||
RUN cd /go/src/ebs.csi.aws.com ; go mod tidy && tinygo build -o main.wasm -target wasi --no-debug main.go | ||
|
||
# Use UBI as minimal base image to package the manager binary | ||
FROM redhat/ubi8-micro@sha256:4f6f8db9a6dc949d9779a57c43954b251957bd4d019a37edbbde8ed5228fe90a | ||
|
||
LABEL org.opencontainers.image.title "Discoblocks" | ||
LABEL org.opencontainers.image.vendor "Discoblocks.io" | ||
LABEL org.opencontainers.image.licenses "Apache-2.0 License" | ||
LABEL org.opencontainers.image.source "https://github.com/ondat/discoblocks" | ||
LABEL org.opencontainers.image.description "Discoblocks is an open-source declarative disk configuration system for Kubernetes helping to automate CRUD (Create, Read, Update, Delete) operations for cloud disk device resources attached to Kubernetes cluster nodes." | ||
LABEL org.opencontainers.image.documentation "https://github.com/ondat/discoblocks/wiki" | ||
LABEL org.opencontainers.image.title "Discoblocks" | ||
LABEL org.opencontainers.image.vendor "Discoblocks.io" | ||
LABEL org.opencontainers.image.licenses "Apache-2.0 License" | ||
LABEL org.opencontainers.image.source "https://github.com/ondat/discoblocks" | ||
LABEL org.opencontainers.image.description "Discoblocks is an open-source declarative disk configuration system for Kubernetes helping to automate CRUD (Create, Read, Update, Delete) operations for cloud disk device resources attached to Kubernetes cluster nodes." | ||
LABEL org.opencontainers.image.documentation "https://github.com/ondat/discoblocks/wiki" | ||
|
||
WORKDIR / | ||
COPY --from=builder /workspace/manager . | ||
COPY --from=drivers /go/src /drivers | ||
COPY --from=builder /workspace/manager . | ||
COPY --from=builder /go/pkg/mod/github.com/wasmerio/[email protected]/wasmer/packaged/lib/linux-amd64/libwasmer.so /lib64 | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
resources: | ||
- config.yaml | ||
- manager.yaml | ||
- service.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
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,14 @@ | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: proxy-service | ||
namespace: system | ||
spec: | ||
ports: | ||
- port: 63535 | ||
protocol: TCP | ||
targetPort: 63535 | ||
selector: | ||
app: discoblocks | ||
app.kubernetes.io/component: discoblocks |
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
Oops, something went wrong.