-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from JeffersonLab/v2.3.x
Release v2.3.x
- Loading branch information
Showing
237 changed files
with
74,467 additions
and
35,882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
build | ||
map_directory | ||
# install destinations | ||
bin/* | ||
lib/* | ||
share/* | ||
|
||
# develop directories | ||
.git/* | ||
build/* | ||
|
||
# large content | ||
rootfiles/* | ||
|
||
# large directory | ||
# but cheaper to copy than download | ||
#map_directory/* | ||
|
||
# large content | ||
*.root | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,61 @@ | ||
FROM jeffersonlab/jlabce:2.3 | ||
# Instructions for building remoll, a Docker image for the MOLLER experiment. | ||
# | ||
# Instructions for building the remoll image: | ||
# docker build -t jeffersonlab/remoll:latest . | ||
# Instructions for building the remoll image without cache: | ||
# docker build --no-cache -t jeffersonlab/remoll:latest . | ||
# Sharing the remoll image on DockerHub: | ||
# docker push jeffersonlab/remoll:latest | ||
# | ||
# Running the container with docker: | ||
# docker run --rm -it jeffersonlab/remoll:latest remoll macros/runexample.mac | ||
# | ||
# Running the container with singularity: | ||
# singularity build --disable-cache --fix-perms --sandbox remoll:latest docker-daemon://jeffersonlab/remoll:latest | ||
# singularity run remoll:latest remoll macros/runexample.mac | ||
# Note: building a sandbox image may not work on all filesystem or on | ||
# hyperlinked directories. Make sure you are in an actual directory with: | ||
# cd `readlink -f .` | ||
# | ||
|
||
FROM jeffersonlab/jlabce:2.3-mt | ||
|
||
# Install libgcj and pdftk | ||
RUN wget https://copr.fedorainfracloud.org/coprs/robert/gcj/repo/epel-7/robert-gcj-epel-7.repo -P /etc/yum.repos.d && \ | ||
wget https://copr.fedorainfracloud.org/coprs/robert/pdftk/repo/epel-7/robert-pdftk-epel-7.repo -P /etc/yum.repos.d && \ | ||
yum install -y pdftk ghostscript | ||
RUN wget -q https://copr.fedorainfracloud.org/coprs/robert/gcj/repo/epel-7/robert-gcj-epel-7.repo -P /etc/yum.repos.d && \ | ||
wget -q https://copr.fedorainfracloud.org/coprs/robert/pdftk/repo/epel-7/robert-pdftk-epel-7.repo -P /etc/yum.repos.d && \ | ||
yum install -q -y pdftk ghostscript | ||
|
||
# Add Tini entry point | ||
ENV TINI_VERSION v0.19.0 | ||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini | ||
RUN chmod +x /tini | ||
|
||
# Set JLab CE version | ||
ENV JLAB_VERSION=2.3 | ||
ENV JLAB_ROOT=/jlab | ||
ENV JLAB_SOFTWARE=/jlab/2.3/Linux_CentOS7.2.1511-x86_64-gcc4.8.5 | ||
|
||
# Set remoll location | ||
ENV REMOLL=/jlab/remoll | ||
|
||
WORKDIR $REMOLL | ||
|
||
# Compile remoll | ||
ADD . . | ||
RUN source $JLAB_ROOT/$JLAB_VERSION/ce/jlab.sh && \ | ||
WORKDIR $REMOLL | ||
COPY . . | ||
RUN source /etc/profile && \ | ||
mkdir -p $REMOLL/build && \ | ||
pushd $REMOLL/build && \ | ||
cmake .. && \ | ||
make -j$(nproc) && \ | ||
make install | ||
make install && \ | ||
make clean | ||
|
||
# Environment through /etc/profile | ||
RUN ln -sf $REMOLL/bin/remoll.csh /etc/profile.d/remoll.csh | ||
RUN ln -sf $REMOLL/bin/remoll.sh /etc/profile.d/remoll.sh | ||
|
||
# Create environment point bash script | ||
RUN echo '#!/bin/bash' > /entrypoint.sh && \ | ||
echo 'unset OSRELEASE' >> /entrypoint.sh && \ | ||
echo 'source $JLAB_ROOT/$JLAB_VERSION/ce/jlab.sh' >> /entrypoint.sh && \ | ||
echo 'export PATH=${REMOLL}/bin:${PATH}' >> /entrypoint.sh && \ | ||
echo 'export REMOLL=${REMOLL}' >> /entrypoint.sh && \ | ||
echo 'cd $REMOLL && exec "$@"' >> /entrypoint.sh && \ | ||
chmod +x /entrypoint.sh | ||
# Override JLab CE environment for container use | ||
COPY docker/jlab.sh /jlab/${JLAB_VERSION}/ce/jlab.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
# Entry point loads the environment | ||
ENTRYPOINT ["/tini", "--", "bash", "-c", "source /etc/profile && \"$@\"", "-s"] | ||
|
||
CMD ["build/remoll","-h"] | ||
CMD ["remoll"] |
Oops, something went wrong.