Skip to content

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Sep 10, 2025

This moves our air-gaped image away from ./docs-build.pl and use the preview/cli.js directly.

This preview server is needed because it uses the embedded raw git database to read files directly from git's blob database.

This adds a new package.json that is used to restore preview and template in isolation limiting the dependency graph.

This allows us to run on the latest nodejs after replacing unsafe usages of url.parse with modern equivalents.

The image can be build locally using:

docker build -t docker.elastic.co/docs-private/bk_air_gapped_wolfi:latest -f air_gapped/Dockerfile .

docker run -a STDERR -a STDOUT -i --rm \
              --publish 3000:3000 \
              docker.elastic.co/docs-private/bk_air_gapped_wolfi:latest

Output from CVE scanning using:

docker scout cves local://docker.elastic.co/docs-private/bk_air_gapped_wolfi:latest
image

@Mpdreamz Mpdreamz requested a review from a team as a code owner September 10, 2025 14:13
@Mpdreamz Mpdreamz self-assigned this Sep 10, 2025
Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

reakaleek
reakaleek previously approved these changes Sep 10, 2025
reakaleek
reakaleek previously approved these changes Sep 10, 2025
@Mpdreamz Mpdreamz requested a review from reakaleek September 11, 2025 06:12
@Mpdreamz Mpdreamz merged commit abbed64 into master Sep 11, 2025
3 checks passed
@Mpdreamz Mpdreamz deleted the fix/air-gapped-cves branch September 11, 2025 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants