Sfoglia il codice sorgente

feat: add oci annotations to container images

Signed-off-by: Birger J. Nordølum <contact@mindtooth.no>
Birger J. Nordølum 2 anni fa
parent
commit
52ab7b6982
4 ha cambiato i file con 29 aggiunte e 0 eliminazioni
  1. 8 0
      Dockerfile
  2. 7 0
      Dockerfile.cross
  3. 7 0
      ui/Dockerfile
  4. 7 0
      ui/Dockerfile.cross

+ 8 - 0
Dockerfile

@@ -31,6 +31,14 @@ RUN set -e ;\
     -o /go/bin/app
 
 FROM alpine:latest
+
+LABEL org.opencontainers.image.description="Cross-cloud cost allocation models for Kubernetes workloads"
+LABEL org.opencontainers.image.documentation=https://opencost.io/docs/
+LABEL org.opencontainers.image.licenses=Apache-2.0
+LABEL org.opencontainers.image.source=https://github.com/opencost/opencost
+LABEL org.opencontainers.image.title=kubecost-cost-model
+LABEL org.opencontainers.image.url=https://github.com/opencost/opencost
+
 RUN apk add --update --no-cache ca-certificates
 COPY --from=build-env /go/bin/app /go/bin/app
 ADD --chmod=644 ./configs/default.json /models/default.json

+ 7 - 0
Dockerfile.cross

@@ -1,5 +1,12 @@
 FROM alpine:latest
 
+LABEL org.opencontainers.image.description="Cross-cloud cost allocation models for Kubernetes workloads"
+LABEL org.opencontainers.image.documentation=https://opencost.io/docs/
+LABEL org.opencontainers.image.licenses=Apache-2.0
+LABEL org.opencontainers.image.source=https://github.com/opencost/opencost
+LABEL org.opencontainers.image.title=kubecost-cost-model
+LABEL org.opencontainers.image.url=https://github.com/opencost/opencost
+
 # The prebuilt binary path. This Dockerfile assumes the binary will be built
 # outside of Docker.
 ARG binarypath

+ 7 - 0
ui/Dockerfile

@@ -7,6 +7,13 @@ RUN npx parcel build src/index.html
 
 FROM nginx:alpine
 
+LABEL org.opencontainers.image.description="Cross-cloud cost allocation models for Kubernetes workloads"
+LABEL org.opencontainers.image.documentation=https://opencost.io/docs/
+LABEL org.opencontainers.image.licenses=Apache-2.0
+LABEL org.opencontainers.image.source=https://github.com/opencost/opencost
+LABEL org.opencontainers.image.title=opencost-ui
+LABEL org.opencontainers.image.url=https://github.com/opencost/opencost
+
 ARG version=dev
 ARG	commit=HEAD
 ENV VERSION=${version}

+ 7 - 0
ui/Dockerfile.cross

@@ -1,5 +1,12 @@
 FROM nginx:alpine
 
+LABEL org.opencontainers.image.description="Cross-cloud cost allocation models for Kubernetes workloads"
+LABEL org.opencontainers.image.documentation=https://opencost.io/docs/
+LABEL org.opencontainers.image.licenses=Apache-2.0
+LABEL org.opencontainers.image.source=https://github.com/opencost/opencost
+LABEL org.opencontainers.image.title=opencost-ui
+LABEL org.opencontainers.image.url=https://github.com/opencost/opencost
+
 ARG version=dev
 ARG	commit=HEAD
 ENV VERSION=${version}