Skip to content

Commit

Permalink
Ensure correct Dockerfile is used for deck image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna committed Dec 5, 2024
1 parent 66a4546 commit 94ec76c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/kubernetes/test-infra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ prow-controller-manager/images/%: BASE_IMAGE_NAME=k8s-prow/prow-controller-manag

prow-statusreconciler/images/%: BASE_IMAGE_NAME=k8s-prow/status-reconciler

prow-deck/images/%: DOCKERFILE_FOLDER?=./docker/linux/deck
prow-deck/images/%: DOCKERFILE_FOLDER=./docker/linux/deck

.PHONY: buildkit-check
buildkit-check:
Expand Down
8 changes: 4 additions & 4 deletions projects/kubernetes/test-infra/docker/linux/deck/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ ARG BASE_IMAGE
FROM $BASE_IMAGE

# Copy local files instead of downloading using external CDN
COPY static/material/1.3.0/material.min.js /static/material/1.3.0/
COPY static/material/1.3.0/material.indigo-pink.min.css /static/material/1.3.0/
COPY docker/linux/deck/static/material/1.3.0/material.min.js /static/material/1.3.0/
COPY docker/linux/deck/static/material/1.3.0/material.indigo-pink.min.css /static/material/1.3.0/


# Update HTML references
RUN find /template -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;
RUN find /lenses/podinfo -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;
RUN find /var/run/ko/template -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;
RUN find /var/run/ko/lenses/podinfo -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;

0 comments on commit 94ec76c

Please sign in to comment.