Skip to content

Commit

Permalink
Fix: Replace external CDN references with local files for Material De…
Browse files Browse the repository at this point in the history
…sign Lite
  • Loading branch information
Ganiredi committed Dec 2, 2024
1 parent c601046 commit dabb217
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
11 changes: 6 additions & 5 deletions projects/kubernetes/test-infra/docker/linux/deck/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
ARG BASE_IMAGE #gcr.io/k8s-prow/deck:v20200924-369a496323

ARG BASE_IMAGE
FROM $BASE_IMAGE

# Copy local files instead of downloading
COPY static/material.min.js /static/
COPY static/material.indigo-pink.min.css /static/

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

RUN wget https://code.getmdl.io/1.3.0/material.min.js -P /static
RUN wget https://code.getmdl.io/1.3.0/material.indigo-pink.min.css -P /static

Large diffs are not rendered by default.

Loading

0 comments on commit dabb217

Please sign in to comment.