HomePhabricator

[chronik-docs] Patch dockerfile so that chronik links are not broken

Description

[chronik-docs] Patch dockerfile so that chronik links are not broken

Summary:
Testing CI deployments, docusaurus throws build errors in npm run build step as chronik links to chronik-client generated files are broken. This is because chronik-client did not build first. Missed bc was built locally.

Also get rid of the .abclatestversion.sample convention, and just keep a templated 0.0.0 .abclatestversion in the monorepo. This will be overwritten in CI for deployment. But, if we want to preview the site without adding any custom scripts, should have some kind of default file in place.

Test Plan:
To test preview,

./contrib/teamcity/build-configurations.py preview-chronik.e.cash

To test prod,

create .abclatestversion in docs/chronik.e.cash with contents 0.29.2

Edit line 25 of modules/Dockerfile to read ARG NGINX_CONF=nginx-preview.conf, then

docker build -t chronik-docs_local .
docker run --rm -p 8080:80 --name chronik-docs chronik-docs_local

site is available at localhost:8080, links are not broken (the build will fail if there are broken links), and download & install links use 0.29.2

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16042

Details

Provenance
bytesofmanAuthored on Apr 22 2024, 20:10
bytesofmanPushed on Apr 23 2024, 18:48
Reviewer
Restricted Project
Differential Revision
D16042: [chronik-docs] Patch dockerfile so that chronik links are not broken
Parents
rABCb4067fdeefd2: [chronik.e.cash] Docs site for chronik
Branches
Unknown
Tags
Unknown