Skip to content

Commit

Permalink
static: vendor external libraries (#1015)
Browse files Browse the repository at this point in the history
Downstream builds fetch dependencies through cachito. For npm, dependencies need to be listed in the lock file in order to be installed. Because not everything downloaded by external_libraries.py is installable via npm we need to have the files downloaded beforehand and stored in the repository for downstream builds to work.

See https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/containers_from_source_multistage_builds_in_osbs#jive_content_id_Cachito_Integration_for_npm for details

relates to PROJQUAY-2852
  • Loading branch information
flavianmissi committed Dec 2, 2021
1 parent fd29349 commit d93d85f
Show file tree
Hide file tree
Showing 35 changed files with 16,275 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -6,8 +6,6 @@ conf/stack
dist
dest
node_modules
static/ldn
static/fonts
static/build
stack_local
test/data/registry/
Expand Down
8 changes: 0 additions & 8 deletions Dockerfile
Expand Up @@ -80,14 +80,6 @@ RUN set -ex\

# Build-static downloads the static javascript.
FROM build-python AS build-static
# The external library versions rarely change, do them first.
COPY external_libraries.py _init.py ./
RUN set -ex\
; mkdir -p static/{webfonts,fonts,ldn}\
; python3 -m external_libraries\
;
# Now copy in the js and the control files.
# As far as I can tell, this needs to be done in two steps.
COPY --chown=0:0 static/ ./static/
COPY --chown=0:0 *.json *.js ./
RUN set -ex\
Expand Down
Binary file added static/fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions static/fonts/fontawesome-webfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added static/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added static/fonts/fontawesome-webfont.woff2
Binary file not shown.
Binary file added static/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
288 changes: 288 additions & 0 deletions static/fonts/glyphicons-halflings-regular.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added static/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file added static/fonts/glyphicons-halflings-regular.woff2
Binary file not shown.
5 changes: 5 additions & 0 deletions static/ldn/all.css-334bc939e54d.css

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions static/ldn/angular-animate.min.js-636f7a51b2e1.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions static/ldn/angular-cookies.min.js-2455ea25d522.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions static/ldn/angular-recaptcha.min.js-23859fca3602.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions static/ldn/angular-route.min.js-590b72b0eb88.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions static/ldn/angular-sanitize.min.js-ff589de0ec1b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d93d85f

Please sign in to comment.