-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile.fmbt-gui
47 lines (44 loc) · 1.66 KB
/
Dockerfile.fmbt-gui
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
47
# This Dockerfile builds an fMBT image from which you can run
# the fMBT test generator and python3 versions of all utilities.
#
# Usage:
# 1. Build image:
# $ docker build . -t fmbt-gui:latest -f Dockerfile.fmbt-gui
# 2. Launch fmbt3-editor with X forward:
# $ docker run -it --network=host -e DISPLAY=$DISPLAY -v ~/.Xauthority:/root/.Xauthority fmbt-gui:latest
# # fmbt3-editor
#
# Tips:
# Use and modify test models on the host by adding another volume mount
# before the image (fmbt:latest) to the docker run command above:
# -v /path/to/your/models:/models
# Now you can run tests and edit models in /models inside the container:
# # fmbt3-editor /models/mymodel.aal
FROM debian:buster AS builder
RUN apt-get update
RUN apt-get install -y \
git build-essential libglib2.0-dev libboost-regex-dev libedit-dev libmagickcore-dev \
python-dev python-pexpect python-dbus python-gobject gawk libtool autoconf automake debhelper \
libboost-dev flex libpng16-16 libxml2-dev imagemagick graphviz
COPY . /usr/src/fmbt
RUN cd /usr/src/fmbt && \
./autogen.sh && \
./configure && \
make -j 4 && \
make install
RUN cd /usr/src/fmbt/utils3 && \
python3 setup.py install
CMD ["/bin/bash"]
FROM debian:buster AS fmbt-gui
RUN apt-get update
RUN apt-get install -y \
libglib2.0-0 libboost-regex1.67.0 libedit2 \
python python-pexpect python-dbus python-gobject gawk \
libpng16-16 libxml2 imagemagick graphviz \
gnuplot tesseract-ocr \
python3-distutils \
python3-pyside2.qtcore \
python3-pyside2.qtgui \
python3-pyside2.qtwidgets
COPY --from=builder /usr/local /usr/local
CMD ["/bin/bash"]