Skip to content

Commit

Permalink
Several updates related to the Docker builds. (#4203)
Browse files Browse the repository at this point in the history
  • Loading branch information
brugger1 authored Dec 20, 2019
1 parent ad1a095 commit e517c3d
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 6 deletions.
4 changes: 4 additions & 0 deletions scripts/docker/Dockerfile-centos8
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ RUN dnf -y upgrade \
&& dnf -y --enablerepo=PowerTools install bison-devel flex-devel \
&& rm -rf /var/lib/apt/lists/*

RUN dnf -y upgrade && dnf -y install libffi-devel && rm -rf /var/lib/apt/lists/*

RUN cd /usr/include && ln -s freetype2 freetype
RUN cd /usr/bin && ln -s bison yacc
RUN cd /usr/bin && ln -s python2 python
Expand All @@ -54,5 +56,7 @@ RUN mkdir third_party
COPY build_visit3_1_0 /home/visit
COPY run_build_visit_centos8.sh /home/visit
COPY build_visit_docker_cleanup.py /home/visit
COPY build_test_visit.sh /home/visit
COPY test_visit.py /home/visit
# Build the third party libraries
RUN /bin/bash run_build_visit_centos8.sh
4 changes: 4 additions & 0 deletions scripts/docker/Dockerfile-debian9
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ RUN apt-get update && apt-get install -y \
cpio \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y libffi-dev && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
Expand All @@ -53,5 +55,7 @@ RUN mkdir third-party
COPY build_visit3_1_0 /home/visit
COPY run_build_visit.sh /home/visit
COPY build_visit_docker_cleanup.py /home/visit
COPY build_test_visit.sh /home/visit
COPY test_visit.py /home/visit
# Build the third party libraries
RUN /bin/bash run_build_visit.sh
4 changes: 4 additions & 0 deletions scripts/docker/Dockerfile-fedora27
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ RUN dnf -y upgrade && dnf -y install \
cpio \
&& rm -rf /var/lib/apt/lists/*

RUN dnf -y upgrade && dnf -y install libffi-devel && rm -rf /var/lib/apt/lists/*

RUN cd /usr/include && ln -s freetype2 freetype
RUN cd /usr/bin && ln -s bison yacc

Expand All @@ -51,5 +53,7 @@ RUN mkdir third-party
COPY build_visit3_1_0 /home/visit
COPY run_build_visit.sh /home/visit
COPY build_visit_docker_cleanup.py /home/visit
COPY build_test_visit.sh /home/visit
COPY test_visit.py /home/visit
# Build the third party libraries
RUN /bin/bash run_build_visit.sh
4 changes: 4 additions & 0 deletions scripts/docker/Dockerfile-ubuntu16
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ RUN apt-get update && apt-get install -y \
cpio \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y libffi-dev && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
Expand All @@ -54,5 +56,7 @@ RUN mkdir third-party
COPY build_visit3_1_0 /home/visit
COPY run_build_visit.sh /home/visit
COPY build_visit_docker_cleanup.py /home/visit
COPY build_test_visit.sh /home/visit
COPY test_visit.py /home/visit
# Build the third party libraries
RUN /bin/bash run_build_visit.sh
4 changes: 4 additions & 0 deletions scripts/docker/Dockerfile-ubuntu18
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ RUN apt-get update && apt-get install -y \
cpio \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y libffi-dev && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
Expand All @@ -53,5 +55,7 @@ RUN mkdir third-party
COPY build_visit3_1_0 /home/visit
COPY run_build_visit.sh /home/visit
COPY build_visit_docker_cleanup.py /home/visit
COPY build_test_visit.sh /home/visit
COPY test_visit.py /home/visit
# Build the third party libraries
RUN /bin/bash run_build_visit.sh
8 changes: 6 additions & 2 deletions scripts/docker/Dockerfile-ubuntu19
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ RUN apt-get update && apt-get install -y \
cpio \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y libffi-dev && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
Expand All @@ -51,7 +53,9 @@ WORKDIR /home/visit
RUN mkdir third-party
# Copy build_visit and the script to run it
COPY build_visit3_1_0 /home/visit
COPY run_build_visit_centos8.sh /home/visit
COPY run_build_visit.sh /home/visit
COPY build_visit_docker_cleanup.py /home/visit
COPY build_test_visit.sh /home/visit
COPY test_visit.py /home/visit
# Build the third party libraries.
RUN /bin/bash run_build_visit_centos8.sh
RUN /bin/bash run_build_visit.sh
45 changes: 45 additions & 0 deletions scripts/docker/build_test_visit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# Process the command line
#
version=undefined

for abc
do
case $1 in
-v)
version=$2
shift 2
;;
esac
done

if [ $version = undefined ]
then
echo "Usage: -v <version>"
exit
fi

version2=`echo $version | tr "." "_"`

#
# Create the distribution.
#
tar zxf visit$version.tar.gz
cd visit$version
mkdir build
cd build
/home/visit/third-party/cmake/3.9.3/*/bin/cmake \
-DCMAKE_BUILD_TYPE:STRING=Release -DVISIT_INSTALL_THIRD_PARTY:BOOL=ON \
-DVISIT_ENABLE_XDB:BOOL=ON -DVISIT_PARADIS:BOOL=ON \
-DVISIT_CONFIG_SITE="/home/visit/visit-config.cmake" ../src
make manuals
make -j 4 package
mv visit$version2.linux-x86_64.tar.gz ../..

#
# Test the distribution.
#
cd ../..
cp visit$version/src/tools/dev/scripts/visit-install .
./visit-install -c none $version linux-x86_64 visit
visit/bin/visit -cli -nowin -s test_visit.py
6 changes: 5 additions & 1 deletion scripts/docker/build_visit_docker_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def check_to_keep(path):
res = True
elif path.count("run_build_visit.sh") > 0:
res = True
elif path.count("test_visit.py") > 0:
res = True
elif path.count("build_test_visit.sh") > 0:
res = True
elif path.endswith(".cmake"):
res = True
return res
Expand All @@ -45,4 +49,4 @@ def main():
copy_config_site()

if __name__ == "__main__":
main()
main()
5 changes: 5 additions & 0 deletions scripts/docker/test_visit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
OpenDatabase("visit/data/curv2d.silo")
AddPlot("Pseudocolor", "d")
DrawPlots()
SaveWindow()
quit()
3 changes: 2 additions & 1 deletion src/config-site/rzansel61.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#/usr/workspace/visit/visit/thirdparty_shared/3.1.0/blueos/cmake/3.9.3/linux-ppc64le_gcc-4.9/bin/cmake
##
## ./build_visit3_1_0 generated host.cmake
## created: Thu Nov 14 14:32:00 PST 2019
## created: Wed Dec 18 14:43:04 PST 2019
## system: Linux rzansel61 4.14.0-115.10.1.1chaos.ch6a.ppc64le #1 SMP Thu Aug 8 15:51:58 PDT 2019 ppc64le ppc64le ppc64le GNU/Linux
## by: brugger

Expand Down Expand Up @@ -69,6 +69,7 @@ VISIT_OPTION_DEFAULT(VISIT_OPENSSL_DIR ${VISITHOME}/openssl/1.0.2j/${VISITARCH})
## Python
##
VISIT_OPTION_DEFAULT(VISIT_PYTHON_DIR ${VISITHOME}/python/2.7.14/${VISITARCH})
VISIT_OPTION_DEFAULT(VISIT_PYTHON3_DIR ${VISITHOME}/python/3.7.5/${VISITARCH})

##
## LLVM
Expand Down
5 changes: 3 additions & 2 deletions src/config-site/rztopaz194.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#/usr/workspace/visit/visit/thirdparty_shared/3.1.0/toss3/cmake/3.9.3/linux-x86_64_gcc-4.9/bin/cmake
##
## ./build_visit3_1_0 generated host.cmake
## created: Tue Nov 12 15:26:12 PST 2019
## system: Linux rztopaz578 3.10.0-1062.1.1.1chaos.ch6.x86_64 #1 SMP Wed Sep 4 16:09:20 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
## created: Wed Dec 18 12:43:35 PST 2019
## system: Linux rztopaz188 3.10.0-1062.1.1.1chaos.ch6.x86_64 #1 SMP Wed Sep 4 16:09:20 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
## by: brugger

##
Expand Down Expand Up @@ -69,6 +69,7 @@ VISIT_OPTION_DEFAULT(VISIT_OPENSSL_DIR ${VISITHOME}/openssl/1.0.2j/${VISITARCH})
## Python
##
VISIT_OPTION_DEFAULT(VISIT_PYTHON_DIR ${VISITHOME}/python/2.7.14/${VISITARCH})
VISIT_OPTION_DEFAULT(VISIT_PYTHON3_DIR ${VISITHOME}/python/3.7.5/${VISITARCH})

##
## LLVM
Expand Down

0 comments on commit e517c3d

Please sign in to comment.