We provide a CDN for all tools. This is an experimental feature and might be changed at any time. It can be combined with url replacements. The replacements are applied after the CDN is resolved.
Set the CONTAINERBASE_CDN environment variable to the CDN URL before calling any containerbase tools.
All urls will be resolved to the CDN URL.
The package managers gem, npm, pip need to be configured to use the CDN explicitly via the following environment variables:
CONTAINERBASE_CDN_GEM=trueCONTAINERBASE_CDN_NPM=trueCONTAINERBASE_CDN_PIP=true
With the following sample the java tool will be installed from the CDN.
export CONTAINERBASE_CDN=https://cdn.example.test
install-tool javaThe following urls will be called:
https://cdn.example.test/api.adoptium.net/v3/info/release_versions?...(fetch latest Java LTS, or the newest release of a partial version like11)https://cdn.example.test/api.adoptium.net/v3/assets/version/{version}?...(resolve download url)https://cdn.example.test/github.com/adoptium/temurin{major}-binaries/releases/...(download the binary)