nasa / opera-sds-pge

Observational Products for End-Users from Remote Sensing Analysis (OPERA)
Apache License 2.0
16 stars 6 forks source link

Remove references to /usr/local/anaconda3 from all Jenkins Pipelines #497

Closed collinss-jpl closed 2 months ago

collinss-jpl commented 2 months ago

Our System Admin team wants to uninstall the anaconda installation under /usr/local/anaconda3 from opera-pge-ci since it is difficult to maintain and patch. Several of our Jenkins pipelines currently utilize this installation to create a temporary environment for installing certain dependencies to (such as Sphinx).

To comply with this, we need to rework our existing Jenkinsfiles to perform a temporary installation of miniconda before creating the temporary conda environment. This should include the build-int-test and build-test-deploy Jenkinsfiles.

The following section of our wiki documents how miniconda can be download and silently installed as part of a pipeline: https://github.com/nasa/opera-sds-pge/wiki/New-Developer-Onboarding#install-miniconda-environment

After performing the installation, the remaining steps to create a temporary environment should remain mostly the same, but the location to the conda CLI will need to reflect the miniconda installation location.

The cleanup stage for the pipelines will also need to be updated to remove the directory containing the temporary miniconda installation. This should be sufficient as an "uninstall" step.

collinss-jpl commented 2 months ago

Closed by #498