Skip to content

Commit

Permalink
Add license to ubi based images for certification request
Browse files Browse the repository at this point in the history
  • Loading branch information
yansun1996 authored and y2kenny-amd committed Dec 4, 2024
1 parent 9332217 commit 478b7d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ubi-dp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ LABEL \
org.opencontainers.image.authors="Yan Sun <[email protected]>" \
org.opencontainers.image.vendor="Advanced Micro Devices, Inc." \
org.opencontainers.image.licenses="Apache-2.0"
RUN dnf install -y ca-certificates libdrm && \
RUN mkdir -p /licenses && \
dnf install -y ca-certificates libdrm && \
rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official && \
dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --add-repo=https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/ && \
dnf config-manager --add-repo=https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/ && \
dnf install -y hwloc && \
dnf clean all
ADD ./LICENSE /licenses/LICENSE
WORKDIR /root/
COPY --from=builder /go/bin/k8s-device-plugin .
CMD ["./k8s-device-plugin", "-logtostderr=true", "-stderrthreshold=INFO", "-v=5"]
5 changes: 3 additions & 2 deletions ubi-labeller.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ LABEL \
org.opencontainers.image.vendor="Advanced Micro Devices, Inc." \
org.opencontainers.image.licenses="Apache-2.0"

RUN microdnf install -y ca-certificates libdrm && \
RUN mkdir -p /licenses && \
microdnf install -y ca-certificates libdrm && \
microdnf clean all

ADD ./LICENSE /licenses/LICENSE
WORKDIR /root/
COPY --from=builder /go/bin/k8s-node-labeller .
CMD ["./k8s-node-labeller"]

0 comments on commit 478b7d5

Please sign in to comment.