From 7df3e023311642ad614968d71ae95c63ed65159b Mon Sep 17 00:00:00 2001 From: JanHab <jan.habscheid@rwth-aachen.de> Date: Tue, 25 Feb 2025 22:42:02 +0100 Subject: [PATCH] First Dockerfile for docs, but can I move this to the gitlab-ci.yml directly? --- Dockerfile | 24 ++++++++++++++++++++++++ docker-compose.yml | 10 ++++++++++ requirements.txt | 30 +++++++++++++++--------------- 3 files changed, 49 insertions(+), 15 deletions(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..f6c2e22719 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# # Start with a python base image +# FROM python:3.12.7 + +# # # Install the required packages +# # RUN pip install -r requirements.txt + +# # WORKDIR /root + +# CMD ["bash"] + +FROM python:3.12.7 + +# Update pip +RUN pip install --upgrade pip + +# Copy your project files +COPY requirements.txt . + +# Install dependencies (if needed) +RUN pip install -r requirements.txt + +WORKDIR /root + +CMD ["python"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..a21c4da2e5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +services: + solver: + build: + context: . + dockerfile: Dockerfile + volumes: + - .:/root/solver + stdin_open: true # Equivalent to -i for interactive mode + tty: true # Equivalent to -t for a terminal interface + command: ["/bin/bash"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0d6e19a5b4..f15a429995 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,18 @@ -python==3.12.7 -gustaf==0.0.26 -ipython==8.30.0 -joblib==1.4.2 -keras-tuner==1.4.7 -kneed==0.8.5 -matplotlib==3.9.3 -numpy==2.0.2 -openpyxl==3.1.5 -pandas==2.2.3 -scikit-learn==1.5.2 -scipy==1.14.1 -splinepy==0.1.3 -tensorflow==2.18.0 -vedo==2024.5.2 +# ipython==8.30.0 +# joblib==1.4.2 +# keras-tuner==1.4.7 +# kneed==0.8.5 +# matplotlib==3.9.3 +# numpy==2.0.2 +# openpyxl==3.1.5 +# pandas==2.2.3 +# scikit-learn==1.5.2 +# scipy==1.14.1 +# tensorflow==2.18.0 +# gustaf==0.0.26 +# splinepy==0.1.3 +# vtk==9.4.0 +# vedo==2024.5.2 sphinx==8.2.1 myst-parser==4.0.1 sphinx-copybutton==0.5.2 -- GitLab