-
Notifications
You must be signed in to change notification settings - Fork 110
/
Dockerfile
93 lines (81 loc) · 2.49 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
# Project developers. See the top-level LICENSE file for dates and other
# details. No copyright assignment is required to contribute to VisIt.
FROM ubuntu:22.04
# fetch build env
RUN apt-get update && apt-get install -y \
git \
git-lfs \
wget \
curl \
tar \
p7zip \
unzip \
build-essential \
gcc \
g++ \
gfortran \
zlib1g-dev \
python3 \
python3-dev \
python-is-python3 \
libsm-dev \
libice-dev \
libssl-dev \
'^libxcb.*-dev' \
libx11-xcb-dev \
libxcb-dri2-0-dev \
libxcb-xfixes0-dev \
libxrender-dev \
libxi-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
libffi-dev \
xutils-dev \
xorg-dev \
libfreetype6-dev \
autoconf \
libtool \
m4 \
automake \
libxml2 \
libxml2-dev \
vim \
emacs \
bison \
flex \
cpio \
locales \
&& rm -rf /var/lib/apt/lists/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
RUN cd /usr/include && ln -s freetype2 freetype
# -- Azure will add its own user, so skip this --
# RUN groupadd -r ci && useradd -ms /bin/bash --no-log-init -r -g ci ci
# USER ci
# WORKDIR /home/ci
# untar the current masonry source (created as part of build_docker_visit_ci.py)
COPY visit.masonry.docker.src.tar /
RUN tar -xf visit.masonry.docker.src.tar
# untar the current build_visit source (created as part of build_docker_visit_ci.py)
RUN mkdir -p /scripts/
COPY visit.build_visit.docker.src.tar /scripts
RUN cd /scripts/ && tar -xf visit.build_visit.docker.src.tar
# ensure build_visit script is executable
RUN cd /scripts/ && chmod u+x build_visit
# copy cleanup helper
COPY masonry_docker_ci_cleanup.py /
# call masonry to build tpls
# cleanup extract build dirs and obtain the config site file
# change perms
RUN cd masonry && python3 bootstrap_visit.py opts/mb-develop-ci-smoke.json && \
cd / && python3 masonry_docker_ci_cleanup.py && \
chmod -R a+rX /masonry
# add helper script to clone visit
RUN echo "git clone https://github.com/visit-dav/visit.git" > /clone.sh
RUN chmod +x /clone.sh
# add helper script to add cmake to path
RUN echo "export TPLS_PATH=/masonry/build-mb-develop-ci-smoke/thirdparty_shared/third_party/" > /env_setup.sh
RUN echo "export CMAKE_BIN_DIR=`ls -d ${TPLS_PATH}/cmake/*/ci/bin/`" >> /env_setup.sh
RUN echo "export PATH=$PATH:$CMAKE_BIN_DIR" >> /env_setup.sh
RUN chmod +x /env_setup.sh