Skip to content

Commit e982e0a

Browse files
committed
python with miniconda in matlab images
1 parent d96e2ed commit e982e0a

7 files changed

Lines changed: 102 additions & 70 deletions

File tree

hdsort-compiled/Dockerfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ FROM hdsort-matlab-base
33
RUN chmod 755 /usr/bin/mlrtapp/hdsort_master
44
ENV PATH="/usr/bin/mlrtapp:${PATH}"
55

6-
RUN apt-get update -y
7-
RUN apt-get install software-properties-common -y
8-
RUN add-apt-repository ppa:deadsnakes/ppa -y
9-
RUN apt-get install git python3.8 python3.8-dev -y
10-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
11-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
12-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13-
RUN apt-get install python3-pip -y
14-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
15-
RUN pip install -U pip
6+
# Installing Python with miniconda
7+
RUN apt-get update && \
8+
apt-get install -y build-essential && \
9+
apt-get install -y wget && \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
1612

13+
ENV MINICONDA_VERSION 4.8.2
14+
ENV CONDA_DIR /home/miniconda3
15+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
16+
17+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
18+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
19+
rm ~/miniconda.sh
20+
ENV PATH=$CONDA_DIR/bin:$PATH

ironclust-compiled/Dockerfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ FROM ironclust-matlab-base
33
RUN chmod 755 /usr/bin/mlrtapp/p_ironclust
44
ENV PATH="/usr/bin/mlrtapp:${PATH}"
55

6-
RUN apt-get update -y
7-
RUN apt-get install software-properties-common -y
8-
RUN add-apt-repository ppa:deadsnakes/ppa -y
9-
RUN apt-get install git python3.8 python3.8-dev -y
10-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
11-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
12-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13-
RUN apt-get install python3-pip -y
14-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
15-
RUN pip install -U pip
6+
# Installing Python with miniconda
7+
RUN apt-get update && \
8+
apt-get install -y build-essential && \
9+
apt-get install -y wget && \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
1612

13+
ENV MINICONDA_VERSION 4.8.2
14+
ENV CONDA_DIR /home/miniconda3
15+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
16+
17+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
18+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
19+
rm ~/miniconda.sh
20+
ENV PATH=$CONDA_DIR/bin:$PATH

kilosort_no_license/kilosort-compiled/Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ FROM ks-matlab-base
33
RUN chmod 755 /usr/bin/mlrtapp/kilosort_master
44
ENV PATH="/usr/bin/mlrtapp:${PATH}"
55

6-
RUN apt-get update -y
7-
RUN apt-get install software-properties-common -y
8-
RUN add-apt-repository ppa:deadsnakes/ppa -y
9-
RUN apt-get install git python3.8 python3.8-dev -y
10-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
11-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
12-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13-
RUN apt-get install python3-pip -y
14-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
15-
RUN pip install -U pip
6+
# Installing Python with miniconda
7+
RUN apt-get update && \
8+
apt-get install -y build-essential && \
9+
apt-get install -y wget && \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
12+
13+
ENV MINICONDA_VERSION 4.8.2
14+
ENV CONDA_DIR /home/miniconda3
15+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
16+
17+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
18+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
19+
rm ~/miniconda.sh
20+
ENV PATH=$CONDA_DIR/bin:$PATH

kilosort_no_license/kilosort2-compiled/Dockerfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ FROM ks2-matlab-base
33
RUN chmod 755 /usr/bin/mlrtapp/kilosort2_master
44
ENV PATH="/usr/bin/mlrtapp:${PATH}"
55

6-
RUN apt-get update -y
7-
RUN apt-get install software-properties-common -y
8-
RUN add-apt-repository ppa:deadsnakes/ppa -y
9-
RUN apt-get install git python3.8 python3.8-dev -y
10-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
11-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
12-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13-
RUN apt-get install python3-pip -y
14-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
15-
RUN pip install -U pip
6+
# Installing Python with miniconda
7+
RUN apt-get update && \
8+
apt-get install -y build-essential && \
9+
apt-get install -y wget && \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
1612

13+
ENV MINICONDA_VERSION 4.8.2
14+
ENV CONDA_DIR /home/miniconda3
15+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
16+
17+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
18+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
19+
rm ~/miniconda.sh
20+
ENV PATH=$CONDA_DIR/bin:$PATH

kilosort_no_license/kilosort2_5-compiled/Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ FROM ks2_5-matlab-base
33
RUN chmod 755 /usr/bin/mlrtapp/kilosort2_5_master
44
ENV PATH="/usr/bin/mlrtapp:${PATH}"
55

6-
RUN apt-get update -y
7-
RUN apt-get install software-properties-common -y
8-
RUN add-apt-repository ppa:deadsnakes/ppa -y
9-
RUN apt-get install git python3.8 python3.8-dev -y
10-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
11-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
12-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13-
RUN apt-get install python3-pip -y
14-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
15-
RUN pip install -U pip
6+
# Installing Python with miniconda
7+
RUN apt-get update && \
8+
apt-get install -y build-essential && \
9+
apt-get install -y wget && \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
12+
13+
ENV MINICONDA_VERSION 4.8.2
14+
ENV CONDA_DIR /home/miniconda3
15+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
16+
17+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
18+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
19+
rm ~/miniconda.sh
20+
ENV PATH=$CONDA_DIR/bin:$PATH

kilosort_no_license/kilosort3-compiled/Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ FROM ks3-matlab-base
33
RUN chmod 755 /usr/bin/mlrtapp/kilosort3_master
44
ENV PATH="/usr/bin/mlrtapp:${PATH}"
55

6-
RUN apt-get update -y
7-
RUN apt-get install software-properties-common -y
8-
RUN add-apt-repository ppa:deadsnakes/ppa -y
9-
RUN apt-get install git python3.8 python3.8-dev -y
10-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
11-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
12-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13-
RUN apt-get install python3-pip -y
14-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
15-
RUN pip install -U pip
6+
# Installing Python with miniconda
7+
RUN apt-get update && \
8+
apt-get install -y build-essential && \
9+
apt-get install -y wget && \
10+
apt-get clean && \
11+
rm -rf /var/lib/apt/lists/*
12+
13+
ENV MINICONDA_VERSION 4.8.2
14+
ENV CONDA_DIR /home/miniconda3
15+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
16+
17+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
18+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
19+
rm ~/miniconda.sh
20+
ENV PATH=$CONDA_DIR/bin:$PATH

waveclus-compiled/Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ RUN chmod 755 /usr/bin/mlrtapp/waveclus_master
55
RUN chmod 755 /usr/bin/mlrtapp/waveclus_snippets_master
66
ENV PATH="/usr/bin/mlrtapp:${PATH}"
77

8-
RUN apt-get update -y
9-
RUN apt-get install software-properties-common -y
10-
RUN add-apt-repository ppa:deadsnakes/ppa -y
11-
RUN apt-get install git python3.8 python3.8-dev -y
12-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
13-
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
14-
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
15-
RUN apt-get install python3-pip -y
16-
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
17-
RUN pip install -U pip
8+
# Installing Python with miniconda
9+
RUN apt-get update && \
10+
apt-get install -y build-essential && \
11+
apt-get install -y wget && \
12+
apt-get clean && \
13+
rm -rf /var/lib/apt/lists/*
14+
15+
ENV MINICONDA_VERSION 4.8.2
16+
ENV CONDA_DIR /home/miniconda3
17+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
18+
19+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
20+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
21+
rm ~/miniconda.sh
22+
ENV PATH=$CONDA_DIR/bin:$PATH

0 commit comments

Comments
 (0)