Commit a27db7f9 by Ricardo Rocha

updated readme

parent 77d59b12
Pipeline #59638 failed with stage
in 52 seconds
Showing with 2 additions and 82 deletions
# docker-volume-cvmfs
# docker-volume-eos
This package provides management of cvmfs repositories in docker and kubernetes.
It provides a nicer interface to handle cvmfs volume definitions.
This package provides management of EOS repositories in docker and kubernetes.
## Requirements
......@@ -10,81 +8,3 @@ Docker 1.9.x, Kubernetes 1.2.x.
## Installation
### CentOS 7
Package installation is available for CentOS7, just add the following repos:
```
yum install https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
tee /etc/yum.repos.d/cci7-utils.repo <<-'EOF'
[cci7-utils]
name=CERN Cloud Infrastructure Utils
baseurl=http://linuxsoft.cern.ch/internal/repos/cci7-utils-stable/x86_64/os/
enabled=1
gpgcheck=0
EOF
```
Install the packages and launch the service (assuming you have docker already running):
```
yum install -y docker-volume-cvmfs
systemctl restart docker-volume-cvmfs
```
Logging will be at /var/log/docker-volume-cvmfs.log.
### Other
Otherwise you'll need to compile it manually and do the install. Example for Ubuntu:
```
wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-2.1.20/cvmfs_2.1.20_amd64.deb
wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-config/cvmfs-config-default_latest_all.deb
sudo dpkg --install cvmfs_2.1.20_amd64.deb cvmfs-config-default_latest_all.deb
cat >/etc/cvmfs/default.local << EOF
CVMFS_HTTP_PROXY="http://ca-proxy.cern.ch:3128"
CVMFS_CACHE_BASE=/var/cache/cvmfs
CVMFS_QUOTA_LIMIT=20000
EOF
```
Build the binary (go build from this repo source) and launch it:
```
sudo docker-volume-cvmfs
docker-volume-cvmfs: registering with docker
docker-volume-cvmfs: listening on /run/docker/plugins/cvmfs.sock
```
## Usage
1. Attempt some volume creation (the plugin should output some useful info)
```
sudo docker volume ls
sudo docker volume create -d cvmfs --name=cms.cern.ch
```
The plugin should have given the following:
```
docker-volume-cvmfs: create cms.cern.ch map[]
docker-volume-cvmfs: mounting cms.cern.ch in /cvmfs/cms.cern.ch
docker-volume-cvmfs: path {cms.cern.ch map[]}
```
2. Deleting a volume
```
sudo docker volume rm cms.cern.ch
```
Plugin should give some info:
```
docker-volume-cvmfs: path {cms.cern.ch map[]}
docker-volume-cvmfs: remove {cms.cern.ch map[]}
docker-volume-cvmfs: unmounting cms.cern.ch in /cvmfs/cms.cern.ch
```
3. Attach a volume to a new container
```
sudo docker run -it --rm --volume-driver cvmfs -v cms.cern.ch:/cms centos:7 /bin/bash
[root@874cbf8199d0 /]# ls /cms/
CMS@Home bootstrap_slc5_amd64_gcc462.log cmssw.git
...
```
## Troubleshooting
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment