Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IGWN Computing and Software
rucio
Containers
Commits
54ebdedf
Commit
54ebdedf
authored
Dec 10, 2021
by
James Clark
Browse files
add clients container
parent
03effb2d
Changes
4
Hide whitespace changes
Inline
Side-by-side
clients/Dockerfile
0 → 100644
View file @
54ebdedf
ARG
TAG
FROM
rucio/rucio-clients:release-$TAG
ARG
ENV
ARG
RUCIO_VERSION
# Switch back to root to add things
USER
root
# Domain-specific dependencies
RUN
rpm
-Uvh
https://repo.opensciencegrid.org/osg/3.6/osg-3.6-el7-release-latest.rpm
\
http://software.ligo.org/lscsoft/scientific/7/x86_64/production/l/lscsoft-production-config-1.3-1.el7.noarch.rpm
&&
\
yum
install
-y
gcc python3-devel osg-ca-certs python36-lal git
&&
\
yum clean all
&&
\
rm
-rf
/var/cache/yum
# GravCat: Gravitational wave data catalog registration utility
RUN if
[
"
$ENV
"
=
"production"
]
;
then
\
python3.6
-m
pip
install
--no-cache-dir
GravCat
;
\
else
\
python3.6
-m
pip
install
--no-cache-dir
"git+https://git.ligo.org/rucio/GravCat.git"
;
\
fi
# Don't forget:
#RUN pip install --no-cache-dir igwn-rucio-lfn2pfn
# Support for Virgo VOMS
ADD
virgo* /etc/vomses/
# Switch back to original rucio-clients user
USER
user
clients/README.md
0 → 100644
View file @
54ebdedf
# IGWN Rucio Clients
Client container for IGWN Rucio deployment.
This is built from the upstream
[
`rucio/rucio-clients`
](
https://hub.docker.com/r/rucio/rucio-clients
)
image with additions for:
*
Registration utilities
*
Virgo VOMS information
clients/rucio-client
0 → 100755
View file @
54ebdedf
#!/bin/bash
if
[
$#
-ne
1
]
;
then
echo
"Usage: ./docker-client <account-name>"
exit
1
fi
account
=
$1
image
=
containers.ligo.org/rucio/rucio-clients-container/rucio-clients-1.26.4:latest
if
[
$account
==
"root"
]
;
then
docker run
\
-e
RUCIO_CFG_RUCIO_HOST
=
https://rucio-server.nrp-nautilus.io
\
-e
RUCIO_CFG_AUTH_HOST
=
https://rucio-server-auth.nrp-nautilus.io
\
-e
RUCIO_CFG_AUTH_TYPE
=
userpass
\
-e
RUCIO_CFG_USERNAME
=
tutorial
\
-e
RUCIO_CFG_PASSWORD
=
secret1R
\
-e
RUCIO_CFG_ACCOUNT
=
root
\
-v
/home/
${
USER
}
:/home/
${
USER
}
-w
$PWD
\
--name
=
rucio-client-root
\
-it
-d
${
image
}
#-v /etc/grid-security/certificates:/etc/grid-security/certificates \
elif
[
$account
==
"dev"
]
;
then
docker run
\
-e
RUCIO_CFG_RUCIO_HOST
=
https://rucio-server.nrp-nautilus.io
\
-e
RUCIO_CFG_AUTH_HOST
=
https://rucio-server-auth.nrp-nautilus.io
\
-e
RUCIO_CFG_AUTH_TYPE
=
userpass
\
-e
RUCIO_CFG_USERNAME
=
tutorial
\
-e
RUCIO_CFG_PASSWORD
=
secret1R
\
-e
RUCIO_CFG_ACCOUNT
=
root
\
-v
/home/
${
USER
}
:/home/
${
USER
}
-w
$PWD
\
--name
=
rucio-client-dev
\
-it
-d
${
image
}
#-v /etc/grid-security/certificates:/etc/grid-security/certificates \
elif
[
$account
==
"frames"
]
;
then
docker run
\
-e
RUCIO_CFG_RUCIO_HOST
=
https://rucio-server.nrp-nautilus.io
\
-e
RUCIO_CFG_AUTH_HOST
=
https://rucio-server-auth.nrp-nautilus.io
\
-e
RUCIO_CFG_AUTH_TYPE
=
userpass
\
-e
RUCIO_CFG_USERNAME
=
frame_user
\
-e
RUCIO_CFG_PASSWORD
=
2coalesceornot
\
-e
RUCIO_CFG_ACCOUNT
=
frames
\
-v
/home/
${
USER
}
:/home/
${
USER
}
-w
$PWD
\
--name
=
rucio-client-frames
\
-it
-d
${
image
}
#-v /etc/grid-security/certificates:/etc/grid-security/certificates \
else
echo
"Unknown account:
$account
"
fi
# docker run \
# -e RUCIO_HOME=${PWD} \
# -v /home/${USER}:/home/${USER} -w $PWD \
# -v /home/${USER}/.ssh/id_rsa_rucio_prod:/opt/rucio/etc/id_rsa \
# --name=rucio-client-cfg \
# -it -d rucio/rucio-clients
clients/virgo-voms.cnaf.infn.it
0 → 100644
View file @
54ebdedf
"virgo" "voms.cnaf.infn.it" "15009" "/DC=org/DC=terena/DC=tcs/C=IT/L=Frascati/O=Istituto Nazionale di Fisica Nucleare/OU=CNAF/CN=voms.cnaf.infn.it" "virgo"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment