-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scripts that were misplaced and add initial script for summit
- Loading branch information
1 parent
4097fcb
commit 017b112
Showing
5 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o xtrace | ||
|
||
VERSION=$1 | ||
|
||
export TOP_LEVEL=$(pwd)/.. | ||
|
||
source ${MODULESHOME}/init/bash | ||
export PATH=$PATH:${MODULESHOME}/bin | ||
|
||
module unload xalt | ||
module load cmake/3.9.2 | ||
module load gcc | ||
|
||
set -x | ||
|
||
SW_ROOT=/sw/summit/container-builder/${VERSION} | ||
mkdir -p ${SW_ROOT} | ||
|
||
mkdir boost_install && cd boost_install | ||
|
||
# Install boost | ||
cd ${TOP_LEVEL} | ||
rm -rf boost_build && mkdir boost_build && cd boost_build | ||
curl -L https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz -O | ||
tar xf boost_1_66_0.tar.gz | ||
cd boost_1_66_0 | ||
./bootstrap.sh --with-libraries=filesystem,regex,system,serialization,thread,program_options --prefix=${SW_ROOT} --with-toolset=gcc | ||
./b2 install || : | ||
rm -rf /boost_1_66_0 | ||
|
||
# Install container-builder | ||
cd ${TOP_LEVEL} | ||
rm -rf build && mkdir build && cd build | ||
CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${SW_ROOT} .. | ||
make container-builder | ||
cmake -DCOMPONENT=container-builder -P cmake_install.cmake | ||
|
||
# Generate a public modulefile | ||
MF_ROOT=/sw/summit/modulefiles/core/container-builder | ||
mkdir -p ${MF_ROOT} | ||
|
||
# Grab latest queue host | ||
QUEUE_HOST=$(curl https://code.ornl.gov/olcf/container-builder/raw/master/queue-host) | ||
|
||
cat << EOF > ${MF_ROOT}/${VERSION} | ||
#%Module | ||
module load gcc | ||
setenv QUEUE_HOST ${QUEUE_HOST} | ||
setenv QUEUE_PORT 8080 | ||
prepend-path LD_LIBRARY_PATH ${SW_ROOT}/lib | ||
prepend-path PATH ${SW_ROOT}/bin | ||
EOF |
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