-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kbs: update docs, dockerfiles and Makefile for aliyun backend
Signed-off-by: Xynnn007 <[email protected]>
- Loading branch information
Showing
7 changed files
with
52 additions
and
15 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
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,17 +1,19 @@ | ||
FROM rust:latest as builder | ||
ARG ARCH=x86_64 | ||
ARG HTTPS_CRYPTO=rustls | ||
ARG ALIYUN=false | ||
|
||
WORKDIR /usr/src/kbs | ||
COPY . . | ||
|
||
RUN apt-get update && apt install -y protobuf-compiler git | ||
|
||
# Build and Install KBS | ||
RUN cargo install --path kbs --bin kbs --no-default-features --features coco-as-grpc,resource,opa,${HTTPS_CRYPTO} | ||
RUN cd kbs && make AS_FEATURE=coco-as-grpc HTTPS_CRYPTO=${HTTPS_CRYPTO} POLICY_ENGINE=opa ALIYUN=${ALIYUN} && \ | ||
make install-kbs | ||
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/confidential-containers/trustee/kbs" | ||
|
||
COPY --from=builder /usr/local/cargo/bin/kbs /usr/local/bin/kbs | ||
COPY --from=builder /usr/local/bin/kbs /usr/local/bin/kbs |
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,18 +1,20 @@ | ||
FROM rust:latest as builder | ||
ARG HTTPS_CRYPTO=rustls | ||
ARG ALIYUN=false | ||
|
||
WORKDIR /usr/src/kbs | ||
COPY . . | ||
|
||
RUN apt-get update && apt install -y git | ||
|
||
# Build and Install KBS | ||
RUN cargo install --path kbs --bin kbs --no-default-features --features intel-trust-authority-as,${HTTPS_CRYPTO},resource,opa | ||
RUN cd kbs && make AS_FEATURE=intel-trust-authority-as HTTPS_CRYPTO=${HTTPS_CRYPTO} POLICY_ENGINE=opa ALIYUN=${ALIYUN} && \ | ||
make install-kbs | ||
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/confidential-containers/trustee/kbs" | ||
|
||
RUN apt update && apt install -y ca-certificates | ||
|
||
COPY --from=builder /usr/local/cargo/bin/kbs /usr/local/bin/kbs | ||
COPY --from=builder /usr/local/bin/kbs /usr/local/bin/kbs |
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