[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] Another Docker/Conda/HTCondor permissions issue



Hello HTCondor World

 

Now that Greg solved my Docker memory issue, I have one last problem to sort out. I’m creating a Docker instance from a Dockerfile with a Miniforge-made conda environment. However, I get errors not being able to find python when run through HTCondor. Here’s the relevant part of the Dockerfile – note the PATH.

 

RUN useradd  ec2-user

USER ec2-user

 

RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh && \

    chmod +x Miniforge3-$(uname)-$(uname -m).sh

 

RUN bash Miniforge3-$(uname)-$(uname -m).sh -b && \

    /root/miniforge3/bin/mamba env create -f environment.yml -y && \

    rm Miniforge3-$(uname)-$(uname -m).sh

 

ENV PATH=/root/miniforge3/envs/<myenv>/bin:$PATH

 

 

If I run form the command line, python is in the path. Any idea how to sort the permissions for HTCondor?

Many thanks in advance!!

 

Mike

 

 

 

 

--

Michael Fienen, Ph. D.
Research Hydrologist
United States Geological Survey

Upper Midwest Water Science Center
1 Gifford Pinchot Drive

Madison, Wisconsin 53726
https://www.usgs.gov/staff-profiles/michael-n-fienen