Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dyna-imaging-mod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simbiotx
dyna-imaging-mod
Commits
becb520d
Commit
becb520d
authored
2 years ago
by
KOWALSKI Jerome
Browse files
Options
Downloads
Patches
Plain Diff
add dockerfile and update readme
parent
664a48ed
No related branches found
No related tags found
1 merge request
!2
Resolve "Add tools for a development environment"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+14
-0
14 additions, 0 deletions
README.md
docker/Dockerfile.dev
+72
-0
72 additions, 0 deletions
docker/Dockerfile.dev
with
86 additions
and
0 deletions
README.md
+
14
−
0
View file @
becb520d
...
...
@@ -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
This diff is collapsed.
Click to expand it.
docker/Dockerfile.dev
0 → 100644
+
72
−
0
View file @
becb520d
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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment