Yubico / developers.yubico.com

Source code for generating our website
https://developers.yubico.com
53 stars 64 forks source link

Remove large binaries from the deployed container #577

Closed ajhall closed 3 months ago

ajhall commented 3 months ago

Depends on https://github.com/Yubico/yubico-binaries/pull/144

The developers.yubico.com site builds into a huge Docker image that contains about 15 GB of binaries. This causes some issues in our Kubernetes clusters and generally just isn't a good use of resources, so we'd like to shrink the container image. https://yubico.atlassian.net/browse/INFRA-5045

Fastly has been configured to route requests directly to a GCS bucket instead of from the developers pod. https://github.com/Yubico/infra-fastly/pull/166

That means that we don't need the binaries in this container anymore. The https://github.com/Yubico/yubico-binaries repo is still cloned during the build process, but the Git LFS objects aren't fetched. The LFS pointer files are used as placeholders so the release page generation scripts will still work the same as before.