micro-infrastructure/adaptor-srm2local:latest
$ singularity pull shub://micro-infrastructure/adaptor-srm2local:latest
Singularity Recipe
BootStrap: docker
From: ubuntu:16.04
%files
./assets/srmclient-2.6.28.tar.gz /var/local
./assets/voms.grid.sara.nl.lsc /var/local
./assets/lofar.vo /var/local
./scripts/unpack_args.py /var/local
./scripts/execute_webhook.py /var/local
%post
apt-get update && apt-get install -y wget curl python3 --no-install-recommends
echo "deb [trusted=yes] http://repository.egi.eu/sw/production/cas/1/current egi-igtf core" >> /etc/apt/sources.list
wget -q -O - http://repository.egi.eu/sw/production/cas/1/current/GPG-KEY-EUGridPMA-RPM-3 | apt-key add -
apt-get update && apt-get install -y \
openjdk-8-jdk-headless \
globus-gass-copy-progs \
voms-clients \
ca-policy-egi-core \
fetch-crl \
&& rm -rf /var/lib/apt/lists/*
cd /var/local && tar -xzf srmclient-2.6.28.tar.gz \
&& mv srmclient-2.6.28 /opt/srmclient-2.6.28 \
&& mkdir -p /etc/grid-security/vomsdir/lofar \
&& mv voms.grid.sara.nl.lsc /etc/grid-security/vomsdir/lofar \
&& mkdir -p /etc/vomses \
&& mv lofar.vo /etc/vomses
%runscript
export SRM_PATH=/opt/srmclient-2.6.28/usr/share/srm
export PATH=/opt/srmclient-2.6.28/usr/bin:$PATH
# Unpack arguments (proxy and copyjobfile)
python3 /var/local/unpack_args.py $1 $PWD
# Perform copying (+ stopwatch)
date
srmcp -server_mode=passive -x509_user_proxy=proxy -copyjobfile=copyjobfile
date
# Execute webhook
python3 /var/local/execute_webhook.py $1
# Cleanup
rm copyjobfile proxy
Collection
- Name: micro-infrastructure/adaptor-srm2local
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/micro-infrastructure-adaptor-srm2local-latest |
collection name | micro-infrastructure/adaptor-srm2local |
branch | master |
tag | latest |
commit | 181dbbc701bcb131c2de887d8676474fee71bb2c |
version (container hash) | ec5c13289cf34b890c2b5de9385852f4 |
build date | 2020-02-24T16:42:07.055Z |
size (MB) | 397.0 |
size (bytes) | 155934751 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.