Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
ershockley committed Jan 18, 2022
2 parents 76b1a46 + 4481d47 commit e8d00cf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
30 changes: 30 additions & 0 deletions deployhq/build-cvmfs-tar-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -e

TAG=$1
PID_FILE=$HOME/.cvmfs-lock

# lock this process - this is needed as only one process
# should do a cvmfs transaction at any given time
if [ -e $PID_FILE ]; then
PID=$(cat $PID_FILE)
while kill -0 $PID >/dev/null 2>&1; do
sleep 30s
done
fi
echo $$ >$PID_FILE

cvmfs_server transaction xenon.opensciencegrid.org

cd /cvmfs/xenon.opensciencegrid.org/releases/nT/
rm -rf $TAG
tar xzf /tmp/$TAG.tar.gz
cd /tmp

cvmfs_server publish xenon.opensciencegrid.org

# release lock
rm $PID_FILE


4 changes: 2 additions & 2 deletions deployhq/build-cvmfs-tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ docker run -v `pwd`:/srv -i -t --rm \
xenonnt/base-environment:$TAG \
/bin/bash -c "/srv/build-cvmfs-tar-inside-helper.sh $TAG"

scp generated/$TAG.tar.gz xenon@osg-cvmfs.grid.uchicago.edu:/tmp/
ssh xenon@osg-cvmfs.grid.uchicago.edu "cvmfs_server transaction xenon.opensciencegrid.org && cd /cvmfs/xenon.opensciencegrid.org/releases/nT/ && rm -rf $TAG && tar xzf /tmp/$TAG.tar.gz && cd /tmp && pwd && cvmfs_server publish xenon.opensciencegrid.org"
scp generated/$TAG.tar.gz deployhq/build-cvmfs-tar-deploy.sh xenon@osg-cvmfs.grid.uchicago.edu:/tmp/
ssh xenon@osg-cvmfs.grid.uchicago.edu "/tmp/build-cvmfs-tar-deploy.sh $TAG"

4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ scipy==1.7.3
seaborn==0.11.2
statsmodels==0.13.1
strax==1.1.5
straxen==1.2.4
straxen==1.2.6
snakeviz==2.1.1
sphinx==4.3.2
tables==3.7.0 # pytables, necessary for pandas hdf5 i/o
Expand All @@ -64,7 +64,7 @@ torch==1.10.1
typing_extensions==3.10.0 # Tensorflow and bokeh dependency
tqdm==4.62.3
utilix==0.6.6 # dependency for straxen, admix
wfsim==0.5.12
wfsim==0.5.13
git+https://github.com/ershockley/admix@v1.0.6
xarray==0.20.2
zstd==1.5.0.4 # Strax dependency

0 comments on commit e8d00cf

Please sign in to comment.