Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
74a94b63
Commit
74a94b63
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: install juggler and eicrecon through environment
parent
2a34c59f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/xl.Dockerfile
+9
-39
9 additions, 39 deletions
containers/jug/xl.Dockerfile
with
9 additions
and
39 deletions
containers/jug/xl.Dockerfile
+
9
−
39
View file @
74a94b63
...
@@ -22,47 +22,17 @@ ARG JUG_VERSION=1
...
@@ -22,47 +22,17 @@ ARG JUG_VERSION=1
RUN
cd
/tmp
\
RUN
cd
/tmp
\
&&
echo
" - jug_xl:
${
JUG_VERSION
}
"
>>
/etc/jug_info
&&
echo
" - jug_xl:
${
JUG_VERSION
}
"
>>
/etc/jug_info
ADD
${EICWEB}/369/repository/tree?ref=${JUGGLER_VERSION} /tmp/369.json
## Install juggler to the environment
RUN
--mount
=
type
=
cache,target
=
/ccache/,sharing
=
locked,id
=
${
TARGETPLATFORM
}
\
RUN
spack add juggler@
${
JUGGLER_VERSION
}
\
cd
/tmp
\
&&
spack concretize
\
&&
echo
"INSTALLING JUGGLER"
\
&&
spack
install
&&
git clone
-b
${
JUGGLER_VERSION
}
--depth
1
\
https://eicweb.phy.anl.gov/EIC/juggler.git
\
&&
export
CCACHE_DIR
=
/ccache
\
&& cmake -B build -S juggler \
-DCMAKE_CXX_FLAGS="-Wno-psabi" \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
&& cmake --build build -j${jobs} -- install \
&& pushd juggler \
&& echo " - juggler: ${JUGGLER_VERSION}-$(git rev-parse HEAD)" \
>> /etc/jug_info \
&& popd \
&& rm -rf build juggler
ADD
https://api.github.com/repos/eic/eicrecon/commits/${EICRECON_VERSION} /tmp/eicrecon.json
## Install eicrecon to the environment
RUN
--mount
=
type
=
cache,target
=
/ccache/,sharing
=
locked,id
=
${
TARGETPLATFORM
}
\
RUN
spack add eicrecon@
${
EICRECON_VERSION
}
\
cd
/tmp
\
&&
spack concretize
\
&&
echo
"INSTALLING EICRECON"
\
&&
spack
install
\
&&
git clone
-b
${
EICRECON_VERSION
}
--depth
1
\
https://github.com/eic/eicrecon.git
\
&&
export
CCACHE_DIR
=
/ccache
\
&&
cmake
-B
build
-S
eicrecon
\
-DCMAKE_CXX_FLAGS
=
"-Wno-psabi"
\
-DCMAKE_CXX_STANDARD
=
17
\
-DCMAKE_INSTALL_PREFIX
=
/usr/local
\
-DCMAKE_BUILD_TYPE
=
Release
\
-DCMAKE_C_COMPILER_LAUNCHER
=
ccache
-DCMAKE_CXX_COMPILER_LAUNCHER
=
ccache
\
&&
cmake
--build
build
-j
${
jobs
}
--
install
\
&&
pushd
eicrecon
\
&&
echo
" - eicrecon:
${
EICRECON_VERSION
}
-
$(
git rev-parse HEAD
)
"
\
>>
/etc/jug_info
\
&&
echo
"export JANA_PLUGIN_PATH=/usr/local/lib/EICrecon/plugins"
\
&&
echo
"export JANA_PLUGIN_PATH=/usr/local/lib/EICrecon/plugins"
\
>
/etc/profile.d/z12_eicrecon.sh
\
>
/etc/profile.d/z12_eicrecon.sh
&&
popd
\
&&
rm
-rf
build eicrecon
## also install detector/ip geometries into opt
## also install detector/ip geometries into opt
ARG
NIGHTLY=''
ARG
NIGHTLY=''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment