Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Move demo to code, _toc, _config, index to root of repo. Add mamba to…
… conda example
  • Loading branch information
jorgensd committed Nov 24, 2022
commit accb934934f3a8b5ac70b57e9ad156282833cdcb
23 changes: 9 additions & 14 deletions docs/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,21 @@ dependencies:

We create the following `Dockerfile` to install the conda environment
```docker
# Use Docker image with preinstalled conda
FROM continuumio/miniconda3
FROM condaforge/mambaforge

ENV DEBIAN_FRONTEND=noninteractive

# Install ssh (missing dependency to run conda envs)
RUN apt-get update && \
apt-get install -y ssh
apt-get install -y ssh build-essential

# Upgrade conda
RUN conda upgrade -y conda
# Upgrade mamba
RUN mamba upgrade -y mamba

# Copy environment file into docker env
# Copy environment and requirements files into docker env
COPY environment.yml .

# Update environment file with new environment name
RUN conda env update --file environment.yml --name dockerenv


SHELL ["conda", "run", "-n", "dockerenv", "/bin/bash", "-c"]

# Test dolfin
RUN python3 -c "import dolfin; print(dolfin.__version__)"

RUN mamba env update --file environment.yml --name dockerenv
SHELL ["mamba", "run", "-n", "dockerenv", "/bin/bash", "-c"]
```
8 changes: 4 additions & 4 deletions docs/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ We recommend that you
├── LICENSE
├── README.md
├── code
│ ├── demo.ipynb
│ ├── postprocess.py
│ ├── pre_processing.py
│ ├── results
Expand All @@ -109,15 +110,14 @@ We recommend that you
├── data
│ ├── README.md
├── docs
│ ├── _config.yml
│ ├── _toc.yml
│ ├── abstract.md
│ ├── citation.md
│ ├── demo.ipynb
│ ├── index.md
│ ├── logo.png
│ ├── refs.bib
│ └── reproducing.md
├── _config.yml
├── _toc.yml
├── index.md
├── requirements-dev.txt
├── requirements-docs.txt
└── requirements.txt
Expand Down