Skip to content
Snippets Groups Projects
Commit c9d9e446 authored by Jan Habscheid's avatar Jan Habscheid
Browse files

Jax dT version construct working, but result not

parent 58203a67
No related branches found
No related tags found
No related merge requests found
No preview for this file type
# Start with a base image that includes conda
FROM continuumio/miniconda3
# Use the official Ubuntu base image
# FROM ubuntu:20.04
FROM dockette/debian:buster-slim
# FROM alpine:latest
# Set environment variables
ENV CONDA_DEFAULT_ENV=IceMelting
ENV PATH /opt/conda/envs/${CONDA_DEFAULT_ENV}/bin:$PATH
ENV HOME /root
# Set environment variables to avoid prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Create the environment and install packages
RUN conda create --name ${CONDA_DEFAULT_ENV} python=3.12.3 -y && \
conda install -n ${CONDA_DEFAULT_ENV} -c conda-forge fenics-dolfinx=0.8.0 mpich=4.2.1 pyvista=0.43.10 gcc=12.4.0 jax=0.4.35 equinox=0.11.8 optax=0.2.3 -y -y
# Activate environment
SHELL ["conda", "run", "-n", "IceMelting", "/bin/bash", "-c"]
# Install dependencies for Quarto, including curl and required libraries
RUN apt update && apt install -y curl
# Download and install Quarto
RUN pip install jax jaxlib optax equinox
# Set the working directory (can be overridden in CI/CD pipeline)
WORKDIR /root
# Set the default environment on container start
# ENTRYPOINT ["conda", "run", "-n", "IceMelting", "/bin/bash", "-c"]
# Default command when container runs
CMD ["bash"]
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -8,11 +8,14 @@ As a numerical solver, mainly FEniCSx was used and installed via conda.
All the calculations were performed on a Linux machine. FEniCSx offers some beta versions for Windows support, but it is recommended to use WSL2 instead. Some issues arose with a macOS and therefore an additional docker container was created. This was not tested and therefore cannot be guaranteed to work properly.
```
conda create --name IceMelting python=3.12.3 -y
conda create --name IceMelting python=3.10 -y
conda activate IceMelting
conda install -c conda-forge fenics-dolfinx=0.8.0 mpich=4.2.1 pyvista=0.43.10 gcc=12.4.0 jax=0.4.35 equinox=0.11.8 optax=0.2.3 -y
conda install -c conda-forge fenics-dolfinx=0.8.0 mpich=4.2.1 pyvista=0.43.10 equinox=0.11.8 optax=0.2.3 -y
pip install jax==0.4.36 jaxlib==0.4.36
```
jax 0.4.36 working, jaxlib auch 0.4.36
### Alternative installation
Use the "environment.yml" file to install all necessary environments
......
......@@ -8,3 +8,4 @@ services:
stdin_open: true # Equivalent to -i for interactive mode
tty: true # Equivalent to -t for a terminal interface
command: ["/bin/bash"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment