-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathDockerfile.bfv
52 lines (43 loc) · 1.16 KB
/
Dockerfile.bfv
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
48
49
50
51
52
#######################################
# Cingulata with in-house B/FV SHE implementation
#
# docker build -t cingulata:bfv -f Dockerfile.bfv --build-arg uid=$(id -u) .
# xhost +local:`docker inspect --format='{{ .Config.Hostname }}' $(docker ps -l -q)`
# docker run -it --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --rm -v $(pwd):/cingu cingulata:bfv
#######################################
FROM ubuntu:18.04
# install dependencies
RUN ln -snf /usr/share/zoneinfo/$(curl https://ipapi.co/timezone) /etc/localtime
RUN apt-get update -qq \
&& apt-get install --no-install-recommends -y \
ca-certificates \
cmake \
curl \
g++ \
git \
libboost-graph-dev \
libboost-program-options-dev \
libflint-dev \
libpugixml-dev \
make \
python3 \
python3-pip \
tzdata \
xxd \
yad
# install python packages
RUN pip3 install \
networkx \
numpy
# add user
ARG uid=1000
ARG uname=cingu
RUN useradd -u $uid $uname
USER $uname
ENV build_dir=build_bfv
# compilation command
CMD mkdir -p /cingu/$build_dir \
&& cd /cingu/$build_dir \
&& cmake -DUSE_BFV=ON .. \
&& make
WORKDIR /cingu/