Skip to content

Commit

Permalink
adding jupedsim to docker #3 #15590
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Oct 17, 2024
1 parent e70b743 commit 35001f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_config/build_req_deb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ pipx
plantuml
pre-commit
python-is-python3
python3-build
python3-dev
python3-pip
python3-setuptools
swig
xvfb
6 changes: 6 additions & 0 deletions build_config/docker/Dockerfile.ubuntu.git
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FROM ubuntu:jammy

ENV SUMO_HOME=/usr/share/sumo
ARG DEBIAN_FRONTEND=noninteractive
ARG JUPEDSIM_VERSION=v1.2.1

RUN apt-get -y update
RUN apt-get -y install git
Expand All @@ -24,6 +25,11 @@ RUN apt-get -y install libopenscenegraph-dev libavformat-dev libswscale-dev
# packages needed for the tools (some are also listed in tools/requirements.txt but we prefer the ubuntu packages)
RUN apt-get -y install $(cat /opt/sumo/build_config/tools_req_deb.txt)

# JuPedSim
RUN cd /opt; git clone -b $JUPEDSIM_VERSION https://github.com/PedestrianDynamics/jupedsim
RUN cd /opt; cmake -B jupedsim-build -D CMAKE_INSTALL_PREFIX=jupedsim-install jupedsim; \
cmake --build jupedsim-build -j4 --config Release; cmake --install jupedsim-build --config Release; rm -rf jupedsim-build

# python packages needed for the tools (the ones where we do not have ubuntu packages)
RUN pip3 install -r /opt/sumo/tools/requirements.txt
# python packages needed for the docs (the ones where we do not have ubuntu packages)
Expand Down

0 comments on commit 35001f7

Please sign in to comment.