Repository navigation
How to install packages in air-gaped env with download-url-method: pre-packaged-source? #822
Replies: 2 comments 4 replies
|
I traced the version in your log ( I couldn't find a CLI setting to change that API base in this revision, though I haven't tested your Nexus setup. Also, simply suppressing A mirror solution would need to account for both the release lookup and the asset URL; a maintainer may know whether there's a supported configuration for that. |
|
Thanks for this; unfortunately this isn't something that's possible at the moment. However, this seems reasonable and something we can look into. There's some upstream changes that may make this possible - potentially even out the box without much changing in PIE, but I'll need to come back to this a bit closer to the time. |
Uh oh!
There was an error while loading. Please reload this page.
Hello!
First of all, thanks for creating and maintaining PIE as PECL successor. PECL is headache :)
About title: all external packages in our organization is accessible only through Nexus Repository, including packages for Composer, PECL and from GitHub (Releases). Currently I'm installing PECL packages in our images something like this:
With PIE (version
1.6.0-rc.3@b89115d) I trying to install from Composer Nexus cache-proxy:RUN --mount=type=bind,from=pie-bin,source=/pie,target=/usr/local/bin/pie \ pie repository:remove packagist.org && \ pie repository:add composer https://<private_nexus>/repository/composer && \ pie install \ phpredis/phpredis \ microsoft/sqlsrv \ microsoft/pdo_sqlsrv \ kjdev/zstdRedis extension installs seamlessly. But
sqlsrv/pdo_sqlsrvandzstdhavedownload-url-method: pre-packaged-sourcein theircomposer.json, so PIE tries to install source from release packages:Question
Is there any option to use mirror/cache-proxy for downloading GitHub Releases artifacts via it?
In our organization we use the same Nexus for proxying GitHub packages.
For example,
https://<private_nexus>/repository/github-proxy/prometheus/node_exporter/releases/download/v1.12.1/node_exporter-1.12.1.linux-amd64.tar.gzto proxynode_exporterpackage from GitHub releases (https://github.com/prometheus/node_exporter/releases/download/v1.12.1/node_exporter-1.12.1.linux-amd64.tar.gz)P.S. Maybe it also can be relevant for packages with
download-url-method: pre-packaged-binaryAll reactions