Commit 413894bc authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added xrootd service to the transfer node docker container.

parent c234e463
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -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

@@ -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
+2 −0
Original line number Diff line number Diff line
# All users have can do anything to 'data'
u * /home/centos/data/ a 
+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