Commit 0331d1fc authored by jmakai's avatar jmakai
Browse files

Configuration and scripts for automatic docker deployment

parent be68c818
......@@ -30,4 +30,8 @@ RUN yum -y --nogpg install\
eos-server eos-testkeytab quarkdb\
initscripts less emacs && yum clean all
ADD eos_setup.sh /
ADD eos_mq_setup.sh /
ADD eos_mgm_setup.sh /
ADD eos_fst_setup.sh /
ADD eos_fs_setup.sh /
ENTRYPOINT ["/bin/bash"]
[eos]
name=EOS 4 Version
baseurl=https://dss-ci-repo.web.cern.ch/dss-ci-repo/eos/ns_quarkdb/commit/el-7/x86_64/
baseurl=https://dss-ci-repo.web.cern.ch/dss-ci-repo/eos/citrine/commit/el-7/x86_64/
gpgcheck=0
enabled=1
[eos-depend]
name=EOS 4 Dependencies
baseurl=https://dss-ci-repo.web.cern.ch/dss-ci-repo/eos/ns_quarkdb-depend/el-7-x86_64/
baseurl=https://dss-ci-repo.web.cern.ch/dss-ci-repo/eos/citrine-depend/el-7-x86_64/
gpgcheck=0
enabled=1
......@@ -40,25 +40,25 @@ XRD_ROLES="mq sync mgm fst1 fst2 fst3 fst4 fst5 fst6"
# ------------------------------------------------------------------
# The EOS instance name
export EOS_INSTANCE_NAME=DUMMY_INSTANCE_TO_REPLACE
export EOS_INSTANCE_NAME=eos-docker-test
# The EOS configuration to load after daemon start
export EOS_AUTOLOAD_CONFIG=default
# The EOS broker URL
export EOS_BROKER_URL=root://DUMMY_HOST_TO_REPLACE:1097//eos/
export EOS_BROKER_URL=root://eos-mq-test.cern.ch:1097//eos/
# The EOS host geo location tag used to sort hosts into geographical (rack) locations
export EOS_GEOTAG="DUMMY_HOST_TO_REPLACE"
export EOS_GEOTAG="docker-test"
# The fully qualified hostname of MGM master1
export EOS_MGM_MASTER1=DUMMY_HOST_TO_REPLACE
export EOS_MGM_MASTER1=eos-mgm-test.cern.ch
# The fully qualified hostname of MGM master2
export EOS_MGM_MASTER2=DUMMY_HOST_TO_REPLACE
export EOS_MGM_MASTER2=eos-mgm-test.cern.ch
# The alias which selects master 1 or 2
export EOS_MGM_ALIAS=DUMMY_HOST_TO_REPLACE
export EOS_MGM_ALIAS=eos-mgm-test.cern.ch
# The mail notification in case of fail-over
#export EOS_MAIL_CC="apeters@mail.cern.ch"
......
#! /bin/bash
eos -b space quota default off
eos -b space set default on
eos -b vid enable sss
eos -b vid enable unix
eos -b fs boot \*
eos -b config save -f default
#! /bin/bash
FSTHOSTNAME=$(hostname -f)
source /etc/sysconfig/eos
export EOS_MGM_URL=root://eos-mgm-test.cern.ch//
for i in {1..6}
do
echo "Starting fst${i} ..."
/usr/bin/xrootd -n fst${i} -c /etc/xrd.cf.fst${i} -l /var/log/eos/xrdlog.fst${i} -b -Rdaemon
echo "Add file system $i"
UUID=fst$i
DATADIR=/home/data/eos$i
echo "Create data directory for fst${i}"
mkdir -p $DATADIR
echo "$UUID" > $DATADIR/.eosfsuuid
echo "$i" > $DATADIR/.eosfsid
chown -R daemon:daemon $DATADIR
eos -b fs add -m $i $UUID $FSTHOSTNAME:$((2000+$i)) $DATADIR default rw
eos -b node set $FSTHOSTNAME:$((2000+$i)) on
echo "Done with fst${i}"
done
#! /bin/bash
source /etc/sysconfig/eos
/usr/bin/xrootd -n mgm -c /etc/xrd.cf.mgm -m -l /var/log/eos/xrdlog.mgm -b -Rdaemon
#! /bin/bash
/usr/bin/xrootd -n mq -c /etc/xrd.cf.mq -l /var/log/eos/xrdlog.mq -b -Rdaemon
#! /bin/bash
docker stop eos-mq-test.cern.ch
docker rm eos-mq-test.cern.ch
docker stop eos-mgm-test.cern.ch
docker rm eos-mgm-test.cern.ch
docker stop eos-fst-test.cern.ch
docker rm eos-fst-test.cern.ch
docker network rm eos-cluster
#! /bin/bash
docker network create eos-cluster
docker run -dit -h eos-mq-test.cern.ch --name eos-mq-test.cern.ch --net=eos-cluster --net-alias=eos-mq-test.cern.ch eos-container
docker exec -it eos-mq-test.cern.ch /eos_mq_setup.sh
docker run -dit -h eos-mgm-test.cern.ch --name eos-mgm-test.cern.ch --net=eos-cluster --net-alias=eos-mgm-test.cern.ch eos-container
docker exec -it eos-mgm-test.cern.ch /eos_mgm_setup.sh
docker run --privileged -dit -h eos-fst-test.cern.ch --name eos-fst-test.cern.ch --net=eos-cluster --net-alias=eos-fst-test.cern.ch eos-container
docker exec -it eos-fst-test.cern.ch /eos_fst_setup.sh
docker exec -it eos-mgm-test.cern.ch /eos_fs_setup.sh
......@@ -19,7 +19,7 @@ ofs.osslib libEosFstOss.so
ofs.tpc pgm /usr/bin/xrdcp
###########################################################
# this URL can be overwritten by EOS_BROKER_URL defined /etc/sysconfig/xrd
fstofs.broker root://localhost:1097//eos/
fstofs.broker root://eos-mq-test.cern.ch:1097//eos/
fstofs.autoboot true
fstofs.quotainterval 10
fstofs.metalog /var/eos/md/
......
......@@ -19,7 +19,7 @@ ofs.osslib libEosFstOss.so
ofs.tpc pgm /usr/bin/xrdcp
###########################################################
# this URL can be overwritten by EOS_BROKER_URL defined /etc/sysconfig/xrd
fstofs.broker root://localhost:1097//eos/
fstofs.broker root://eos-mq-test.cern.ch:1097//eos/
fstofs.autoboot true
fstofs.quotainterval 10
fstofs.metalog /var/eos/md/
......
......@@ -19,7 +19,7 @@ ofs.osslib libEosFstOss.so
ofs.tpc pgm /usr/bin/xrdcp
###########################################################
# this URL can be overwritten by EOS_BROKER_URL defined /etc/sysconfig/xrd
fstofs.broker root://localhost:1097//eos/
fstofs.broker root://eos-mq-test.cern.ch:1097//eos/
fstofs.autoboot true
fstofs.quotainterval 10
fstofs.metalog /var/eos/md/
......
......@@ -19,7 +19,7 @@ ofs.osslib libEosFstOss.so
ofs.tpc pgm /usr/bin/xrdcp
###########################################################
# this URL can be overwritten by EOS_BROKER_URL defined /etc/sysconfig/xrd
fstofs.broker root://localhost:1097//eos/
fstofs.broker root://eos-mq-test.cern.ch:1097//eos/
fstofs.autoboot true
fstofs.quotainterval 10
fstofs.metalog /var/eos/md/
......
......@@ -19,7 +19,7 @@ ofs.osslib libEosFstOss.so
ofs.tpc pgm /usr/bin/xrdcp
###########################################################
# this URL can be overwritten by EOS_BROKER_URL defined /etc/sysconfig/xrd
fstofs.broker root://localhost:1097//eos/
fstofs.broker root://eos-mq-test.cern.ch:1097//eos/
fstofs.autoboot true
fstofs.quotainterval 10
fstofs.metalog /var/eos/md/
......
......@@ -19,7 +19,7 @@ ofs.osslib libEosFstOss.so
ofs.tpc pgm /usr/bin/xrdcp
###########################################################
# this URL can be overwritten by EOS_BROKER_URL defined /etc/sysconfig/xrd
fstofs.broker root://localhost:1097//eos/
fstofs.broker root://eos-mq-test.cern.ch:1097//eos/
fstofs.autoboot true
fstofs.quotainterval 10
fstofs.metalog /var/eos/md/
......
......@@ -24,7 +24,7 @@ sec.protocol sss -c /etc/eos.keytab -s /etc/eos.keytab
###########################################################
sec.protbind localhost.localdomain unix
sec.protbind localhost unix sss
sec.protbind * only unix sss
sec.protbind * only sss unix
#sec.protbind localhost.localdomain unix sss
#sec.protbind localhost unix sss
#sec.protbind * only krb5 gsi sss unix
......@@ -37,9 +37,9 @@ mgmofs.targetport 1095
#mgmofs.trace all debug
# this URL can be overwritten by EOS_BROKER_URL defined in /etc/sysconfig/eos
mgmofs.broker root://localhost:1097//eos/
mgmofs.broker root://eos-mq-test.cern.ch:1097//eos/
# this name can be overwritten by EOS_INSTANCE_NAME defined in /etc/sysconfig/eos
mgmofs.instance eosdev
mgmofs.instance eos-docker-test
# configuration and namespace location
mgmofs.configdir /var/eos/config
......
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