VM setup
Consult
Rucio VM Admin Guide if you need to know how to do this.
Use the same
CentOS7 image, the m1.small flavor, and give it the webserver security group and the UChicago Campus network.
Create a volume of about 50GiB for Docker, and attach it in
OpenStack.
Get an IGTF Server Cert from InCommon
Consult
Rucio VM Admin Guide if you need to know how to do this.
Get an X509 User Cert & Key from CI Logon
Consult
Rucio New User Start if you need to know how to do this.
Docker setup
ssh to the vm you set up, then follow the steps below.
Install Docker-CE and its dependencies
Follow the instructions at
https://docs.docker.com/install/linux/docker-ce/centos/
Pull the Docker container images from the Docker repo
docker pull rucio
docker pull mariadb/server:latest
Start a Rucio container and a MariaDB container
Run the
MariaDB container:
docker run --name mariadbrucio -e MYSQL_ROOT_PASSWORD=ruciopw -d mariadb/server:latest
Find its IP address on the Docker network interface from the result of the following:
docker ps
docker container inspect {MariaDB container ID}
It will be under "NetworkSettings":"Networks":"bridge":"IPAddress".
docker run --name=rucio-server -e RUCIO_CFG_DATABASE_DEFAULT="mysql://rucio:rucio-pw@{IP address from last instruction}/rucio" -p 80:80 -d rucio/rucio-server
Copy the credentials to Docker
User `docker ps` to find the ID of your Rucio server container. From the directory with your IGTF server cert & X509 PEM files, use Docker cp to move the files to the container:
docker cp {filename} {container ID}:~
Set up the Rucio Server image
docker exec -it {container ID} bash
useradd {your username}
mkdir -p /home/{your username}/.globus
cp usercert.pem /home/{your username}/.globus
cp userkey.pem /home/{your username}/.globus
chmod 644 /home/{your username}/.globus/usercert.pem
chmod 400 /home/{your username}/.globus/userkey.pem
chown --Recursive {your username}:{your username} /home/{your username}/.globus/
yum install -y osg-ca-certs yum-plugin-priorities gfal2-all osg-gridftp gfal2-util globus-proxy-utils-7.1-1.el7.x86_64
Set up the MariaDB image
Run the database configurator
Work through the new user start guide