Dockerfile 484 Bytes
Newer Older
MUSSET Paul's avatar
Add CI  
MUSSET Paul committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
FROM centos:7

RUN  yum install --nogpg -y epel-release\
  && yum install --nogpg -y xrootd-server

# Have the same gid for xrootd group on container and host for xrootd to be able to access volume
RUN groupmod -g 9999 xrootd

# Config directory
RUN mkdir -p /etc/xrootd\
  && chown xrootd:xrootd /etc/xrootd

# Directory to mount the data storage. need to have same gid on host and container
RUN mkdir -p /mnt/xcache\
  && chown xrootd:xrootd /mnt/xcache\
  && chmod g+w /mnt/xcache