Skip to main content
Bruce Hewson
Participating Frequently
Dec 9, 2020 2:11 AM UTC

Z/OS Conda - architectural concepts in a multi-site multi-system environment with a single maintenance build system.

My first glance at MiniConda. It appears to be customized on a single system installation concept. 

Historically we have installed the OpenSource tools easily into each products own ZFS dataset mounted on the maintenance path. Propagation to all the other systems occurred via DFDSS backup of said ZFS dataset to be restored and renamed as required on each target system.

In simple terms can anyone document how this install/maintain/propagate process could be performed using MiniConda in Z/OS.

I have started reading the User Manuals @ https://docs.conda.io and my initial impression is that it is similar in concept to APT in DEBIAN LINUX.

Additionally what firewall rules would I need to get this working?

Regards
Bruce

------------------------------
Bruce Hewson
Citibank
------------------------------

    31 replies

    Vladimir Ein
    Rocketeer
    May 6, 2021 12:11 PM UTC
    Thank you for your document - I've developed an approach that seems to be working very well for me now.

    Thoughts/comments/suggestions welcome.

    1. conda create -n git226
    2. conda activate git226
    3. conda install git
    4. conda deactivate git226
    5. env | sort > before
    6. conda activate git226
    7. env | sort > after
    8. conda deactivate git226
    9. diff before after > diff
    10. edit diff
    - ignore > CONDA .... records
    - ignore all records that don't have a > or <
    - ignore PS2 and PWD
    - ignore SHELL and SHLVL
    - capture delta for remaining
    - create exports for delta
    export LIBPATH=/u/lbdyck/miniconda/envs/git226/lib:$LIBPATH
    export MANPATH=/u/lbdyck/miniconda/envs/git226/share/man:/u/lbdyck/miniconda/envs/git226/man:$MANPATH
    export PATH=/u/lbdyck/miniconda/envs/git226/bin:$PATH
    - adjust the exports for the new path (e.g. /tools/git/)
    export LIBPATH=/tools/git/lib:$LIBPATH
    export MANPATH=/tools/git/share/man:/tools/git/man:$MANPATH
    export PATH=/tools/git/bin:$PATH
    11. Create a new zfs (e.g. git226.zfs)
    12. mount it at /tools/git/
    13. copy (cp) from /u/lbdyck/miniconda/envs/git226 to /tools/git
    cp -R /u/lbdyck/miniconda/envs/git226/ /tools/git/
    14. Add new exports to /etc/profile

    I was hoping to find a document, or file, that explained the customizations required but was unable to do so and the activate script was more than I wanted to review - thus the use of the env command.

    ------------------------------
    LionelDyck <><
    https://github.com/zigi
    https://github.com/lbdyck
    ------------------------------
    Hi Lionel,

    My two cents regarding your approach.

    1. Steps 1-4 can be optimized a bit:
    conda create -n git226 git

    2. It's quite common for programs on Unix to be tied to their install location. For example, an executable file can contain absolute paths inside that will still refer to its original install location even if you move it to a different place. When you copy /u/lbdyck/miniconda/envs/git226 to /tools/git, some files might still refer to /u/lbdyck/miniconda/envs/git226, and will not work without that directory.

    Conda solves this problem by replacing paths within files during 'conda install'.

    Some tools, including Git, also provide a way to circumvent this issue by specifying paths in environment variables like GIT_EXEC_PATH. Other tools don't have such a workaround.

    Regards,
    Vladimir


    ------------------------------
    Vladimir Ein
    Rocket Software
    ------------------------------