-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Replace external CDN references with local files for Material De…
…sign Lite
- Loading branch information
Showing
3 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
11 changes: 6 additions & 5 deletions
11
projects/kubernetes/test-infra/docker/linux/deck/Dockerfile
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,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 |
8 changes: 8 additions & 0 deletions
8
projects/kubernetes/test-infra/docker/linux/deck/static/material.indigo-pink.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.