Skip to content

Commit

Permalink
FIX-modin-project#2459: Fixed path to modin environment
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Shimansky <[email protected]>
  • Loading branch information
gshimansky committed Nov 30, 2020
1 parent 023d484 commit f67b582
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ci/teamcity/Dockerfile.teamcity-ci
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ SHELL ["/bin/bash", "--login", "-c"]

# Initialize conda in bash config files:
RUN conda init bash
ENV PATH /opt/conda/envs/modin/bin:$PATH
ENV PATH /root/anaconda3/envs/modin/bin:$PATH

RUN conda update python -y
RUN conda env create -f ${ENVIRONMENT}

# Activate the environment, and make sure it's activated:
RUN echo "conda activate modin" >> ~/.bashrc
# The following line also removed conda initialization from
# ~/.bashrc so conda starts complaining that it should be
# initialized for bash. But it is necessary to do it because
# activation is not always executed when "docker exec" is used
# and then conda initialization overwrites PATH with its base
# environment where python doesn't have any packages installed.
RUN echo "conda activate modin" > ~/.bashrc
RUN echo "Make sure environment is activated"
RUN conda list -n modin

0 comments on commit f67b582

Please sign in to comment.