Commit ba5ae612 authored by Whitney Armstrong's avatar Whitney Armstrong

Added readme and helper script

	modified:   README.md
	new file:   bin/download_root_base
	modified:   root_base/Dockerfile
	modified:   root_base/Dockerfile.broadwell
	modified:   ubuntu_base/Dockerfile
parent e05bd36f
= Docker and Singularity Image Recipes =
Docker and Singularity Image Recipes
====================================
### Download the latest singularity image from gitlab
```
wget \
https://eicweb.phy.anl.gov/whit/image_recipes/-/jobs/artifacts/master/raw/build/Singularity.root_base.simg?job=root_base_singularity \
-O Singularity.root_base.simg
```
#!/bin/bash
wget \
https://eicweb.phy.anl.gov/whit/image_recipes/-/jobs/artifacts/master/raw/build/Singularity.root_base.simg?job=root_base_singularity \
-O Singularity.root_base.simg
# ROOT base
#
# A container for the latest root
#
FROM eicweb.phy.anl.gov:4567/whit/image_recipes/ubuntu_base:latest
LABEL maintainer="Whitney Armstrong <warmstrong@anl.gov>" \
......@@ -10,7 +8,6 @@ LABEL maintainer="Whitney Armstrong <warmstrong@anl.gov>" \
march="native" \
basedist="ubuntu" \
base="ubuntu"
#
RUN cd /tmp \
&& apt-get install -y libmpfr-dev libgmp-dev \
......@@ -52,8 +49,8 @@ RUN cd /tmp \
&& cd /tmp/builds/root_build && make -j8 && make install \
&& cd /tmp && rm -rf /tmp/root_master && rm -rf /tmp/builds
RUN sed -i 's/\/tmp\/builds\/root_build\/lib\/libtbb.so/\/usr\/local\/lib\/libtbb.so/g' /usr/local/cmake/ROOTConfig-targets.cmake \
&& df -h
#RUN sed -i 's/\/tmp\/builds\/root_build\/lib\/libtbb.so/\/usr\/local\/lib\/libtbb.so/g' /usr/local/cmake/ROOTConfig-targets.cmake \
# && df -h
#git clone --depth=1 https://github.com/root-project/root.git root_master
......
......@@ -9,7 +9,9 @@ LABEL maintainer="Whitney Armstrong <warmstrong@anl.gov>" \
group="root_base" \
march="broadwell" \
basedist="ubuntu" \
base="ubuntu"
base="ubuntu" \
version="6.16.00"
#
RUN cd /tmp \
......@@ -47,7 +49,7 @@ RUN cd /tmp \
&& cmake ../../root_master/. -Droot7:BOOL=ON -Dcxx17:BOOL=ON -Dfortran:BOOL=ON \
-Dgdml:BOOL=ON -Dmathmore:BOOL=ON -Dminuit2:BOOL=ON -Dbuiltin_vdt:BOOL=ON -Dbuiltin_veccore:BOOL=ON \
-Dbuiltin_tbb:BOOL=ON -Dvc:BOOL=ON -Dbuiltin_vecgeom:BOOL=ON -Dunuran:BOOL=ON \
&& cd /tmp/builds/root_build && make -j8 > /tmp/root_build.log && make install \
&& cd /tmp/builds/root_build && make -j20 > /tmp/root_build.log && make install \
&& cd /tmp && rm -rf /tmp/root_master && rm -rf /tmp/builds/root_build \
&& df -h
......
......@@ -92,7 +92,11 @@ RUN apt-get update && apt-get upgrade -y \
&& make -j3 install && cd /tmp && rm -rf json \
&& git clone --depth=1 https://github.com/ericniebler/range-v3.git \
&& mkdir range-v3/build && cd range-v3/build \
&& cmake ../. -DRANGE_V3_PERF=OFF -DRANGE_BUILD_CALENDAR_EXAMPLE=OFF -DBUILD_TESTING=OFF -DRANGE_V3_EXAMPLES=OFF -DRANGE_V3_TESTS=OFF -DRANGE_V3_DOCS=OFF -DRANGES_CXX_STD=17 && make -j8 install \
&& cmake ../. -DRANGE_V3_PERF=OFF -DRANGE_BUILD_CALENDAR_EXAMPLE=OFF \
-DBUILD_TESTING=OFF -DRANGE_V3_EXAMPLES=OFF \
-DRANGE_V3_TESTS=OFF -DRANGE_V3_DOCS=OFF \
-DRANGES_CXX_STD=17 \
&& make -j8 install \
&& cd /tmp && rm -r range-v3 \
&& git clone https://github.com/fmtlib/fmt.git \
&& mkdir fmt/build && cd fmt/build && cmake ../. -DFMT_TEST=OFF -DBUILD_SHARED_LIBS=ON && make -j8 install \
......@@ -104,12 +108,4 @@ RUN apt-get update && apt-get upgrade -y \
#&& cd /tmp && rm -r date \
##RUN useradd -ms /bin/bash -d /opt/saneuser saneuser \
## && apt-get install -y cernlib-*
##
##ADD saneuser_home_dir.tar /root/.
##ADD saneuser_home_dir.tar /opt/saneuser/.
##
##USER saneuser
##WORKDIR /opt/saneuser
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment