Greetings,
I am a developer (with no root/admin privileges), and I am trying to setup my Tekton pipeline to do the basic tasks:
- git-clone ( I managed to clone from my git repo by assigning the ssh private key secret to the OpenShift's built-in pipeline ServiceAccount )
- s2i-nodejs: to build my image and push it to the openshift internal registry. ( however it fails ).
Now the reason why it fails, our cluster runs in an airgapped environment, and we have an internal proxy to install node libraries.
In my local machine I am utilizing .npmrc configuration file to pass in the proxy, my auth credentials, and the proxy (.pem) certificate.
I tried to replicate this behavior in the pipeline where I put my npmrc as a secret + the .pem certificate and added them as a workspaces in the task. However, it seems that (s2i-nodejs) task defaults to use the environment variable ($HTTP_PROXY) to install the npm libraries.
Now given my situation, can you please share with me an example how to configure the cluster tasks "s2i-nodejs" with similar requirements ?
I hope I managed to explain myself. If not, please reach me out to discuss with a bit of details.
Thanks and best regards.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.