This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
46 lines (38 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#-------------------------------------------------------------
# - build:
# docker build -t jupedsim/jpseditor .
# - run:
# 1. socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
# 2. docker -it -e DISPLAY=<your ip address> jupedsim/jpseditor
#-------------------------------------------------------------
FROM ubuntu:14.04
MAINTAINER Erik Andresen <[email protected]>
# install required packages
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
g++ \
git \
lcov \
doxygen \
qt5-default qttools5-dev-tools \
# python \
# python-dev \
# python-pip \
&& apt-get clean
# set environment
ENV HOME /home/jupedsim
# add user
RUN groupadd -r -g 1000 jupedsim && useradd -r -g jupedsim -u 1000 -m jupedsim
USER jupedsim
# install jpscore
RUN mkdir -p /home/jupedsim/workspace
RUN cd /home/jupedsim/workspace \
&& git clone --depth=5 https://gitlab.version.fz-juelich.de/jupedsim/jpseditor.git \
&& cd jpseditor \
&& mkdir -p build \
&& cd build \
&& cmake -D DESIRED_QT_VERSION=5 ..\
&& make
# by default /bin/bash is executed
CMD $HOME/workspace/jpseditor/bin/JPSeditor