Skip to content
Snippets Groups Projects
Select Git revision
  • aae872286063034ad42d11594666906be5217311
  • master default protected
  • dev protected
  • Issue/3130-onboardingUzK
  • Issue/3109-onboarding
  • Issue/2915-migrateSql2Linked
  • test_ci
  • Issue/xxxx-fixDevcontainer
  • Issue/xxxx-generateLatestTag
  • Issue/2980-fixContainerBuild
  • Issue/2967-fixGD
  • Issue/2944-gdShenanigans
  • Issue/2906-containerCron
  • Issue/2880-gd
  • petar.hristov-master-patch-9e49
  • Issue/2668-graphDeployer
  • gitkeep
  • Hotfix/xxxx-fastDeployment
  • Hotfix/2615-graphDeployerLag
  • Issue/2568-betterLogging
  • Issue/2518-docs
  • v2.1.11
  • v2.1.10
  • v2.1.9
  • v2.1.8
  • v2.1.7
  • v2.1.6
  • v2.1.5
  • v2.1.4
  • v2.1.3
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.1
  • v2.0.0
  • v1.2.11
  • v1.2.10
  • v1.2.9
  • v1.2.8
  • v1.2.7
  • v1.2.6
41 results

AssemblyInfo.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 2.27 KiB
    ARG BASE_IMAGE=jupyter/minimal-notebook
    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'
    
    # Toolchain
    RUN apt-get update && \
    	apt-get -y install \
    		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 .. && \
    	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
    
    # Install DPsim
    RUN git clone --recurse-submodules https://git.rwth-aachen.de/acs/public/simulation/dpsim/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