Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Notebooks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
Teaching materials
Modeling and Simulation
Notebooks
Merge requests
!2
Added Dockerfile
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Added Dockerfile
dockerfile
into
master
Overview
0
Commits
3
Pipelines
0
Changes
2
Open
Jan Dinkelbach
requested to merge
dockerfile
into
master
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
2
Expand
Signed-off-by: pipeacosta
pipeacosta@gmail.com
0
0
Merge request reports
Compare
master
version 2
bf7ee7bf
1 year ago
version 1
629ce232
1 year ago
master (HEAD)
and
latest version
latest version
29548d7f
3 commits,
1 year ago
version 2
bf7ee7bf
2 commits,
1 year ago
version 1
629ce232
1 commit,
1 year ago
2 files
+
115
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Dockerfile
0 → 100644
+
102
−
0
Options
ARG
BASE_IMAGE=jupyter/minimal-notebook:python-3.10
FROM
$BASE_IMAGE
USER
root
RUN
apt-get update
&&
\
apt-get
-y
install
\
apt-transport-https ca-certificates
\
gnupg software-properties-common wget
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
wget
-O
- https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null |
sudo
apt-key add -
&&
\
apt-add-repository
'deb https://apt.kitware.com/ubuntu/ bionic main'
# Install required libssl1.1
RUN
echo
"deb http://security.ubuntu.com/ubuntu focal-security main"
|
sudo tee
/etc/apt/sources.list.d/focal-security.list
# Toolchain
RUN
apt-get update
&&
\
apt-get
-y
install
\
libssl1.1
\
g++ git make cmake
\
libeigen3-dev
\
libgraphviz-dev
\
libgsl-dev
\
pybind11-dev
\
libxml2-dev
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
mkdir
/build
WORKDIR
/build
# Build & Install fmtlib
RUN
cd
/tmp
&&
\
git clone
--recursive
https://github.com/fmtlib/fmt.git
&&
\
mkdir
-p
fmt
/build
&&
cd fmt
/build
&&
\
git checkout 6.1.2
&&
\
cmake
-DBUILD_SHARED_LIBS
=
ON ..
&&
\
make
-j
$(
nproc
)
install
# Build & Install spdlog
RUN
cd
/tmp
&&
\
git clone
--recursive
https://github.com/gabime/spdlog.git
&&
\
mkdir
-p
spdlog/build
&&
cd
spdlog/build
&&
\
git checkout v1.5.0
&&
\
cmake
-DSPDLOG_BUILD_SHARED
=
ON
-DSPDLOG_BUILD_TESTS
=
OFF
-DSPDLOG_BUILD_EXAMPLE
=
OFF ..
&&
\
make
-j
$(
nproc
)
install
# Install Sundials
RUN
git clone https://github.com/LLNL/sundials.git
&&
\
git
-C
sundials checkout v3.1.1
&&
\
mkdir
build_sundials
&&
\
cd
build_sundials
&&
\
cmake ../sundials
\
-DBUILD_SHARED_LIBS
=
ON
\
-DBUILD_STATIC_LIBS
=
OFF
\
-DEXAMPLES_ENABLE_C
=
OFF
&&
\
make
-j
$(
nproc
)
install
&&
\
cd
..
&&
\
rm
-rf
build_sundials sundials
# Install CIM++
RUN
git clone
--recursive
https://github.com/cim-iec/libcimpp.git
&&
\
mkdir
build_libcimpp
&&
\
cd
build_libcimpp
&&
\
cmake ../libcimpp
\
-DUSE_CIM_VERSION
=
CGMES_2.4.15_16FEB2016
\
-DBUILD_SHARED_LIBS
=
ON
\
-DCMAKE_POSITION_INDEPENDENT_CODE
=
ON
&&
\
make
-j
$(
nproc
)
install
&&
\
cd
..
&&
\
rm
-rf
build_libcimpp libcimpp
RUN
echo
/usr/local/lib/
>
/etc/ld.so.conf.d/local.conf
&&
\
echo
/opt/conda/lib/
>>
/etc/ld.so.conf.d/local.conf
RUN
ldconfig
USER
${NB_USER}
WORKDIR
/home/${NB_USER}
RUN
conda
install
--quiet
--yes
\
numpy ipywidgets
# Disable KLU for compiling DPsim
ENV
CMAKE_OPTS="-DWITH_KLU=OFF"
# Install DPsim
RUN
git clone
--recurse-submodules
https://github.com/sogno-platform/dpsim.git
&&
\
cd
dpsim
&&
\
python3 ./setup.py
\
build_ext
-j
$(
nproc
)
\
bdist_wheel
&&
\
pip
install
dist/
*
.whl
&&
\
pip
install
-r
requirements.txt
&&
\
cd
..
&&
\
rm
-rf
dpsim
RUN
git clone https://git.rwth-aachen.de/acs/public/teaching/msp/notebooks.git
&&
\
cd
notebooks
&&
\
git checkout resistive-companion-update-2023
WORKDIR
/home/${NB_USER}/notebooks
Loading