Mentions légales du service

Skip to content
Snippets Groups Projects
Commit becb520d authored by KOWALSKI Jerome's avatar KOWALSKI Jerome
Browse files

add dockerfile and update readme

parent 664a48ed
No related branches found
No related tags found
1 merge request!2Resolve "Add tools for a development environment"
......@@ -64,3 +64,17 @@ done
$COMMAND
```
## Develop in a container
To build the docker development image (from the same directory than this `README.md`):
```terminal
docker build -f ./docker/Dockerfile.dev -t dce-mri_dev .
```
This will create a docker image with tag `dce-mri_dev`. You can check that the image is indeed created by running `docker image ls -a`.
To run the created docker image:
```terminal
docker run -i -t --network host dce-mri_dev --mount type=bind,source="($pwd)"/sources,target=/source
```
You can then develop, compile and run your changes with the required packages.
\ No newline at end of file
FROM ubuntu:22.04
LABEL build-date="2023-01-12"
LABEL name="base-ubuntu-22.04"
LABEL description="Ubuntu 22.04 Focal Jammy Jellyfish for developing Vascularization and VascularizationInverse codes with the necessary libraries."
LABEL vsc-url="https://gitlab.inria.fr/simbiotx/dyna-imaging-mod"
LABEL version=1.0.0
#Prepare tzdata - set timezone to Paris
RUN ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
#Set the frontend non-interactive
ENV DEBIAN_FRONTEND noninteractive
#Upgrade and install dependencies
# - build-essential
# - gcc
# - git
# - libtool
# - linux-tools-common
#OpenMP:
# - libomp-dev
#XML:
# - libtinyxml-dev
#PNG:
# - libpng-dev
#Editor:
# - vim
#Other:
# - autoconf
# - automake
# - libgsl-dev
# - zlib1g-dev
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
autoconf\
automake\
build-essential \
gcc \
git \
libgsl-dev \
libomp-dev \
libpng-dev \
libx11-dev\
libtool\
linux-tools-common \
vim \
zlib1g-dev \
&& apt-get clean
#Build the code
# libnix: library utility used by Vascularization and VascularizationInverse
RUN mkdir source
COPY ./sources/libnix /source/libnix
# Install libnix
RUN cd /source/libnix\
&& autoreconf -f -i\
&& ./configure\
&& make\
&& make install
# Clean the directory
RUN mkdir /build\
&& mkdir /Output
# Set the library path
RUN echo "LD_LIBRARY_PATH=/usr/local/lib/\n export LD_LIBRARY_PATH" >> ~/.bashrc
CMD "/bin/bash"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment