Skip to content

Commit

Permalink
Replace mambaforge with miniforge (PolusAI#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul authored Oct 2, 2024
1 parent 801a628 commit e19422d
Show file tree
Hide file tree
Showing 29 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
if: runner.os != 'Windows'
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge-pypy3
miniforge-variant: Miniforge-pypy3
miniforge-version: latest
environment-file: mm-workflows/install/system_deps.yml
activate-environment: mm
Expand All @@ -68,7 +68,7 @@ jobs:
if: runner.os == 'Windows'
uses: conda-incubator/[email protected]
with:
miniforge-variant: Mambaforge-pypy3
miniforge-variant: Miniforge-pypy3
miniforge-version: latest
environment-file: mm-workflows/install/system_deps_windows.yml
activate-environment: mm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM ubuntu:22.04

# Install miniconda
RUN apt-get update && apt-get install -y wget
RUN CONDA="Mambaforge-Linux-x86_64.sh" && \
RUN CONDA="Miniforge3-Linux-x86_64.sh" && \
wget --quiet https://github.com/conda-forge/miniforge/releases/latest/download/$CONDA && \
chmod +x $CONDA && \
./$CONDA -b -p /mambaforge && \
./$CONDA -b -p /miniforge && \
rm -f $CONDA
ENV PATH /mambaforge/bin:$PATH
ENV PATH /miniforge/bin:$PATH

RUN conda install -c conda-forge -c openbiosim biosimspace
ENV SIRE_DONT_PHONEHOME 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main() -> None:

input_filenames = [args.input_top_path, args.input_crd_path]
# This path is w.r.t. the Docker image jakefennick/biosimspace
properties = {'GROMACS_PATH': '/mambaforge/share/gromacs/top/'}
properties = {'GROMACS_PATH': '/miniforge/share/gromacs/top/'}
system = BSS.IO.readMolecules(input_filenames, properties)

output_file_formats = [args.output_top_format, args.output_crd_format]
Expand Down
6 changes: 3 additions & 3 deletions examples/data/Dockerfile_data
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM ubuntu:22.04 as download

# Install miniconda
RUN apt-get update && apt-get install -y wget
RUN CONDA="Mambaforge-Linux-x86_64.sh" && \
RUN CONDA="Miniforge3-Linux-x86_64.sh" && \
wget --quiet https://github.com/conda-forge/miniforge/releases/latest/download/$CONDA && \
chmod +x $CONDA && \
./$CONDA -b -p /mambaforge && \
./$CONDA -b -p /miniforge && \
rm -f $CONDA
ENV PATH /mambaforge/bin:$PATH
ENV PATH /miniforge/bin:$PATH

RUN conda install -c conda-forge wget libarchive
# bsdtar is installed with libarchive; see download_data.sh
Expand Down
2 changes: 1 addition & 1 deletion examples/diffdock/Dockerfile_diffdock_cpu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker build -f Dockerfile_diffdock_cpu -t mrbrandonwalker/diffdock_cpu .

FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (torch-scatter is incompatible with pypy)

RUN apt-get update && apt-get install -y wget git build-essential
Expand Down
10 changes: 5 additions & 5 deletions examples/diffdock/Dockerfile_diffdock_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04 as devel
# Install conda / mamba
RUN apt-get update && apt-get install -y wget git build-essential

RUN CONDA="Mambaforge-Linux-x86_64.sh" && \
RUN CONDA="Miniforge3-Linux-x86_64.sh" && \
wget --quiet https://github.com/conda-forge/miniforge/releases/latest/download/$CONDA && \
chmod +x $CONDA && \
./$CONDA -b -p /mambaforge && \
./$CONDA -b -p /miniforge && \
rm -f $CONDA
ENV PATH /mambaforge/bin:$PATH
ENV PATH /miniforge/bin:$PATH

RUN conda install pytorch==1.13.0 pytorch-cuda=11.7 pytorch-cluster -c pytorch -c nvidia -c pyg

Expand Down Expand Up @@ -50,9 +50,9 @@ RUN mamba clean --all --yes
FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04 as runtime

COPY --from=devel DiffDock/ DiffDock/
COPY --from=devel mambaforge/ mambaforge/
COPY --from=devel miniforge/ miniforge/

# shell file to copy cached files, run diffdock and remove large cached files after execution
ADD diffdock_cmds.sh /DiffDock/

ENV PATH /mambaforge/bin:$PATH
ENV PATH /miniforge/bin:$PATH
2 changes: 1 addition & 1 deletion examples/diffdock/Dockerfile_pose_cluster_filter
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# docker build -f Dockerfile_pose_cluster_filter -t mrbrandonwalker/pose_cluster_filter .

FROM condaforge/mambaforge
FROM condaforge/miniforge3

RUN conda install -c conda-forge rdkit --yes

Expand Down
2 changes: 1 addition & 1 deletion examples/diffdock/Dockerfile_sanitize_ligand
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# docker build -f Dockerfile_sanitize_ligand -t mrbrandonwalker/sanitize_ligand .

FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (rdkit is incompatible with pypy)

RUN conda install -c conda-forge rdkit --yes
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_align_protein_ca_mda
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdanalysis is incompatible with pypy)

RUN mamba install -c conda-forge mdanalysis
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_align_protein_ca_pymol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdanalysis & pymol are incompatible with pypy)

RUN mamba install -c conda-forge mdanalysis
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_atomselect
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdtraj is incompatible with pypy)

RUN mamba install -c conda-forge mdtraj
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_autodock_vina
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge-pypy3
FROM condaforge/miniforge3-pypy3

# The latest release version 1.2.3 has several known bugs.
# See https://github.com/ccsb-scripps/AutoDock-Vina/pull/81
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_calculate_net_charge
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (rdkit is incompatible with pypy)

RUN mamba install -c conda-forge rdkit
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_combine_structure
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (rdkit is incompatible with pypy)

RUN mamba install -c conda-forge rdkit
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_extract_ligand_protein
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker build -f Dockerfile_extract_ligand_protein -t mrbrandonwalker/extract_ligand_protein .
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdanalysis is incompatible with pypy)
RUN mamba install mdanalysis

Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_extract_protein
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge-pypy3
FROM condaforge/miniforge3-pypy3

RUN mamba install -c conda-forge openmm

Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_fix_pdb_atom_column
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdanalysis is incompatible with pypy)

RUN mamba install -c conda-forge mdanalysis
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_generate_conformers
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (pandas & rdkit are incompatible with pypy)

RUN mamba install -c conda-forge pandas rdkit openpyxl xorg-libxrender
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_mol2_to_pdbqt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdanalysis is incompatible with pypy)

RUN mamba install -c conda-forge mdanalysis
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_molgan
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (rdkit is incompatible with pypy)

# RDKIT logging
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_nmr4md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (mdanalysis is incompatible with pypy)

RUN mamba install -c conda-forge mdanalysis matplotlib pip
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_onionnet-sfct
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (pandas & rdkit & mdtraj are incompatible with pypy)

# Install requirements
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_openbabel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (openbabel is incompatible with pypy)

RUN mamba install -c conda-forge openbabel
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_pdbbind_refined
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge
FROM condaforge/miniforge3
# NOT mambaforge-pypy3 (pandas is incompatible with pypy)

RUN apt-get update && apt-get install -y wget
Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_pdbfixer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge-pypy3
FROM condaforge/miniforge3-pypy3

RUN mamba install -c conda-forge pdbfixer

Expand Down
2 changes: 1 addition & 1 deletion examples/scripts/Dockerfile_smina
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM condaforge/mambaforge-pypy3
FROM condaforge/miniforge3-pypy3

# Prevent being prompted for geographical region
ARG DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion install/install_nglview.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e
# NOTE: mamba is a drop-in replacement for conda, just much faster.
# (i.e. You can replace mamba with conda below.)
# See https://github.com/conda-forge/miniforge#mambaforge-pypy3
# See https://github.com/conda-forge/miniforge#miniforge-pypy3
CONDA=conda
if [ "$(which mamba)" ]; then
CONDA=mamba
Expand Down
2 changes: 1 addition & 1 deletion install/install_system_deps.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:: NOTE: mamba is a drop-in replacement for conda, just much faster.
:: (i.e. You can replace mamba with conda below.)
:: See https://github.com/conda-forge/miniforge#mambaforge-pypy3
:: See https://github.com/conda-forge/miniforge#miniforge-pypy3
set CONDA=conda
where /q mamba
if not ERRORLEVEL 1 (set CONDA=mamba)
Expand Down
2 changes: 1 addition & 1 deletion install/install_system_deps.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e
# NOTE: mamba is a drop-in replacement for conda, just much faster.
# (i.e. You can replace mamba with conda below.)
# See https://github.com/conda-forge/miniforge#mambaforge-pypy3
# See https://github.com/conda-forge/miniforge#miniforge-pypy3
CONDA=conda
if [ "$(which mamba)" ]; then
CONDA=mamba
Expand Down

0 comments on commit e19422d

Please sign in to comment.