Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
shink committed May 28, 2024
1 parent 3f223a6 commit 574058b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cann/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ RUN echo "${TIME_ZONE}" > /etc/timezone \
&& apt-get install -y \
apt-transport-https \
ca-certificates \
bash \
git \
wget \
gcc \
Expand All @@ -56,7 +55,6 @@ RUN echo "${TIME_ZONE}" > /etc/timezone \
gfortran \
patchelf \
libblas3 \
&& ln -sf /bin/bash /bin/sh \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/tmp/* \
Expand All @@ -71,6 +69,7 @@ RUN \
PLATFORM="$PLATFORM" \
CONDA_HOME="/opt/miniconda" \
source /tmp/install-miniconda.sh && \
source ~/.bashrc && \
# install cann \
chmod +x /tmp/install-cann.sh && \
PLATFORM="$PLATFORM" \
Expand Down
5 changes: 3 additions & 2 deletions scripts/install-miniconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ bash /tmp/$INSTALLER -b -u -p $CONDA_HOME
rm -f /tmp/$INSTALLER

# Init
$CONDA_HOME/bin/conda init
$CONDA_HOME/bin/activate
conda init
source ~/.bashrc

echo "Miniconda installation successful."
echo "Miniconda installation successful. Please restart your terminal or run 'source ${HOME}/.bashrc' to apply the changes."
conda --version

0 comments on commit 574058b

Please sign in to comment.