Commit af05474a authored by Elvin Sindrilaru's avatar Elvin Sindrilaru
Browse files

Initial commit

parents
#
# Simple EOS Docker file
#
# Version 0.1
# Use the fedora base image
FROM fedora
MAINTAINER Elvin Sindrialru, esindril@cern.ch, CERN 2014
# Add the EOS repository
ADD eos.repo /etc/yum.repos.d/eos.repo
# Install EOS
RUN yum -y --nogpg install eos-server eos-testkeytab
# Create the /var/lock/subsys directory needed by the eos daemons
ADD eos.conf /etc/tmpfiles.d/eos.conf
RUN systemd-tmpfiles --create /etc/tmpfiles.d/eos.conf
# Configuration files for the EOS test instance
ADD eos.sysconfig /etc/sysconfig/eos
ADD xrd.cf.mgm /etc/xrd.cf.mgm
# Start the eos instance in master mode
RUN service eos master mgm
RUN service eos master mq
# Install supervisor to start the eos service
RUN yum -y --nogpg install supervisor
ADD supervisor.conf /etc/supervisor/conf.d/supervisord.conf
CMD /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf && /bin/bash
# EOS tmpfile.d configuration which creates the necessary /var/lock/subsystem
# directory with the proper permissions and ownership
# This file should be saved in /etc/tmpfiles.d/ for Fedora releases
d /run/lock/subsys 0755 root root -
\ No newline at end of file
[eos-beryl]
name=EOS 0.3 Version
baseurl=http://eos.cern.ch/rpms/eos-beryl/slc-6-x86_64/
gpgcheck=0
enabled=1
\ No newline at end of file
# ----------------------------------------------------------------------
# File: eos.example
# Author: Andreas-Joachim Peters - CERN
# ----------------------------------------------------------------------
# ************************************************************************
# * EOS - the CERN Disk Storage System *
# * Copyright (C) 2011 CERN/Switzerland *
# * *
# * This program is free software: you can redistribute it and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation, either version 3 of the License, or *
# * (at your option) any later version. *
# * *
# * This program is distributed in the hope that it will be useful, *
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
# * GNU General Public License for more details. *
# * *
# * You should have received a copy of the GNU General Public License *
# * along with this program. If not, see <http://www.gnu.org/licenses/>.*
# ************************************************************************
# Should we run with another limit on the core file size other than the default?
DAEMON_COREFILE_LIMIT=unlimited
# Disable the KRB5 replay cache
export KRB5RCACHETYPE=none
# What roles should the xroot daemon run for. For each role you can overwrite
# the default options using a dedicate sysconfig file
# e.g. /etc/sysconfig/xrd.<role>. The role based mechanism allows for
# multiple xrd's running with different options to be controlled via
# the same initd script
XRD_ROLES="mq sync mgm fst"
# ------------------------------------------------------------------
# EOS Configuration
# ------------------------------------------------------------------
# The EOS instance name
export EOS_INSTANCE_NAME=eostest
# The EOS configuration to load after daemon start
export EOS_AUTOLOAD_CONFIG=default
# The EOS broker URL
export EOS_BROKER_URL=root://localhost:1097//eos/
# The EOS host geo location tag used to sort hosts into geographical (rack) locations
export EOS_GEOTAG=""
# The fully qualified hostname of MGM master1
export EOS_MGM_MASTER1=eostest
# The fully qualified hostname of MGM master2
export EOS_MGM_MASTER2=eostest
# The alias which selects master 1 or 2
export EOS_MGM_ALIAS=eostest
# The mail notification in case of fail-over
#export EOS_MAIL_CC="apeters@mail.cern.ch"
#export EOS_NOTIFY="mail -s `date +%s`-`hostname`-eos-notify $EOS_MAIL_CC"
# Enable core dumps initiated internally
#export EOS_CORE_DUMP
# Disable shutdown/signal handlers for debugging
#export EOS_NO_SHUTDOWN
# ------------------------------------------------------------------
# FUSE Configuration
# ------------------------------------------------------------------
# The mount directory for 'eosd'
export EOS_FUSE_MOUNTDIR=/eos/
# The MGM host from where to do the inital mount
export EOS_FUSE_MGM_ALIAS=eostest
# Enable FUSE debugging mode (default off)
#export EOS_FUSE_DEBUG=1
# Disable parallel IO mode (default on)
#export EOS_FUSE_NOPIO=1
# Disable multithreading in FUSE (default on)
#export EOS_FUSE_NO_MT=1
# ------------------------------------------------------------------
# HTTPD Configuration
# ------------------------------------------------------------------
# Enable multithreaded httpd
export EOS_HTTP_THREADPOOL=1
# Configure the thread-pool with 16 threads
export EOS_HTTP_THREADPOOL_SIZE=16
# ------------------------------------------------------------------
# Federation Configuration
# ------------------------------------------------------------------
# The host[:port] name of the meta manager (global redirector)
#export EOS_FED_MANAGER=eos.cern.ch:1094
# The port of the PSS xrootd server
#export EOS_PSS_PORT=1098
# The hostname[:port] of the EOS MGM service
#export EOS_PSS_MGM=$EOS_MGM_ALIAS:1094
# The path which should be proxied (/ for all)
#export EOS_PSS_PATH=/
# ------------------------------------------------------------------
# Test Configuration
# ------------------------------------------------------------------
# mail notification for failed tests
#export EOS_TEST_MAILNOTIFY=apeters@mail.cern.ch
# SMS notification for failed tests
#export EOS_TEST_GSMNOTIFY="0041764875002@mail2sms.cern.ch"
# Instance name = name of directory at deepness 2 /eos/<instance>/
#export EOS_TEST_INSTANCE="dev"
# MGM host redirector
export EOS_TEST_REDIRECTOR=localhost
# local test output directory
export EOS_TEST_TESTSYS=/tmp/eos-instance-test/
# time to lock re-sending of SMS for consecutively failing tests
export EOS_TEST_GSMLOCKTIME=3600
# max. time given to the test to finish
export EOS_TEST_TESTTIMESLICE=300;
\ No newline at end of file
#
# Simple EOS Docker file
#
# Version 0.1
# Use the fedora base image
FROM fedora
MAINTAINER Elvin Sindrialru, esindril@cern.ch, CERN 2014
# Add the EOS repository
ADD eos.repo /etc/yum.repos.d/eos.repo
# Install EOS
RUN yum -y --nogpg install eos-server eos-testkeytab
# Create the /var/lock/subsys directory needed by the eos daemons
ADD eos.conf /etc/tmpfiled.d/eos.conf
RUN systemd-tmpfiles --create /etc/tmpfiles.d/eos.conf
# Copy the configuration files for EOS
ADD eos.sysconfig /etc/sysconfig/eos
ADD xrd.cf.mgm /etc/sysconfig/xrd.cf.mgm
# Start the eos instance
RUN service eos start
ENTRYPOINT ["/bin/bash"]
[supervisord]
nodaemon=false
[program:eos]
command=bash -c ". service eos start || true"
pidfile=/var/log/eos/eos.pid
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
\ No newline at end of file
###########################################################
xrootd.fslib libXrdEosMgm.so
xrootd.seclib libXrdSec.so
xrootd.async off nosf
xrootd.chksum eos
###########################################################
xrd.sched mint 8 maxt 256 idle 64
###########################################################
all.export /
all.role manager
###########################################################
oss.fdlimit 16384 32768
###########################################################
# UNIX authentication
sec.protocol unix
# SSS authentication
sec.protocol sss -c /etc/eos.keytab -s /etc/eos.keytab
# KRB authentication
#sec.protocol krb5 host/<host>@CERN.CH
# GSI authentication
#sec.protocol gsi -crl:0 -cert:/etc/grid-security/daemon/hostcert.pem -key:/etc/grid-security/daemon/hostkey.pem -gridmap:/etc/grid-security/grid-mapfile -d:0 -gmapopt:2
###########################################################
sec.protbind localhost.localdomain unix
sec.protbind localhost unix sss
sec.protbind * only unix sss
#sec.protbind localhost.localdomain unix sss
#sec.protbind localhost unix sss
#sec.protbind * only krb5 gsi sss unix
###########################################################
mgmofs.fs /
mgmofs.targetport 1095
#mgmofs.authlib libXrdAliceTokenAcc.so
#mgmofs.authorize 1
###########################################################
#mgmofs.trace all debug
# this URL can be overwritten by EOS_BROKER_URL defined in /etc/sysconfig/eos
mgmofs.broker root://localhost:1097//eos/
# this name can be overwritten by EOS_INSTANCE_NAME defined in /etc/sysconfig/eos
mgmofs.instance eosdev
# configuration and namespace location
mgmofs.configdir /var/eos/config
mgmofs.metalog /var/eos/md
mgmofs.txdir /var/eos/tx
mgmofs.authdir /var/eos/auth
# report store path
mgmofs.reportstorepath /var/eos/report
# record store is enabled by default
mgmofs.reportstore true
# record namespace is disabled by default - can be enabled on the fly with the 'io' command
mgmofs.reportnamespace false
# this defines the default config to load
mgmofs.autoloadconfig default
# this enables that every change get's immedeatly stored to the active configuration - can be overwritten by EOS_AUTOSAVE_CONFIG defined in /etc/sysconfig/eos
mgmofs.autosaveconfig true
# this has to be defined if we have a failover configuration via alias - can be overwritten by EOS_MGM_ALIAS in /etc/sysconfig/eos
#mgmofs.alias eosdev.cern.ch
# Set the number of authentication worker threads running on the mgm
mgmofs.auththreads 10
# Set the front end port number for incoming authentication requests
mgmofs.authport 15555
###########################################################
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment