-
Notifications
You must be signed in to change notification settings - Fork 63
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 (#1558)
- Loading branch information
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
14 changes: 8 additions & 6 deletions
14
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,11 @@ | ||
ARG BASE_IMAGE #gcr.io/k8s-prow/deck:v20200924-369a496323 | ||
|
||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
|
||
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' {} \; | ||
# 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/ | ||
|
||
|
||
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 | ||
# 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' {} \; |
8 changes: 8 additions & 0 deletions
8
...ubernetes/test-infra/docker/linux/deck/static/material/1.3.0/material.indigo-pink.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.