Loading transfer_node/Dockerfile +19 −2 Original line number Diff line number Diff line Loading @@ -4,6 +4,17 @@ FROM centos:7 # Check for updates and install them RUN yum -y update # Install epel repo RUN yum -y install epel-release # Install xrootd-server package RUN yum -y install xrootd-server # Copy authentication directives config file and set the right permissions COPY auth_file /etc/xrootd/ RUN chown xrootd:xrootd /etc/xrootd/auth_file && \ chmod 0644 /etc/xrootd/auth_file # Create a new user called centos, create the home directory and set the default shell RUN useradd -m -s /bin/bash centos Loading @@ -16,5 +27,11 @@ ENV HOME=/home/centos/ # Set the HOME as working directory WORKDIR $HOME # Execute a bash shell CMD /bin/bash # Copy xrootd main config file into the current work dir COPY xrootd.cfg . # Create a dir to store and expose data RUN mkdir data # Execute xrootd service to expose data CMD /bin/xrootd -c xrootd.cfg ${HOME}/data transfer_node/auth_file 0 → 100644 +2 −0 Original line number Diff line number Diff line # All users have can do anything to 'data' u * /home/centos/data/ a transfer_node/xrootd.cfg 0 → 100644 +14 −0 Original line number Diff line number Diff line # Host role all.role server # Default is /tmp all.export /home/centos/data # Default xrd port xrd.port 1094 # Enable access control ofs.authorize # Authentication directives config file acc.authdb /etc/xrootd/auth_file Loading
transfer_node/Dockerfile +19 −2 Original line number Diff line number Diff line Loading @@ -4,6 +4,17 @@ FROM centos:7 # Check for updates and install them RUN yum -y update # Install epel repo RUN yum -y install epel-release # Install xrootd-server package RUN yum -y install xrootd-server # Copy authentication directives config file and set the right permissions COPY auth_file /etc/xrootd/ RUN chown xrootd:xrootd /etc/xrootd/auth_file && \ chmod 0644 /etc/xrootd/auth_file # Create a new user called centos, create the home directory and set the default shell RUN useradd -m -s /bin/bash centos Loading @@ -16,5 +27,11 @@ ENV HOME=/home/centos/ # Set the HOME as working directory WORKDIR $HOME # Execute a bash shell CMD /bin/bash # Copy xrootd main config file into the current work dir COPY xrootd.cfg . # Create a dir to store and expose data RUN mkdir data # Execute xrootd service to expose data CMD /bin/xrootd -c xrootd.cfg ${HOME}/data
transfer_node/auth_file 0 → 100644 +2 −0 Original line number Diff line number Diff line # All users have can do anything to 'data' u * /home/centos/data/ a
transfer_node/xrootd.cfg 0 → 100644 +14 −0 Original line number Diff line number Diff line # Host role all.role server # Default is /tmp all.export /home/centos/data # Default xrd port xrd.port 1094 # Enable access control ofs.authorize # Authentication directives config file acc.authdb /etc/xrootd/auth_file