Commit ea4776cd authored by Haakon Andre Reme-Ness's avatar Haakon Andre Reme-Ness
Browse files

Change of distro to Centos7

parent 6b8eeab9
docker build -t jcentral-base -f base-ubuntu/Dockerfile base-ubuntu
docker build -t jalien-base -f base/Dockerfile base
docker build -t jalien-base -f base/Dockerfile base
docker build -t xrootd-se -f xrootd/Dockerfile xrootd
......@@ -24,4 +27,5 @@ retag:
docker tag ${gitlab_xrootd_image} xrootd-se
push-all: push-base push-xrootd
all: base-image xrootd-image
all: base-image xrootd-image jcentral-image
FROM ubuntu:18.04
FROM centos:7
ENV JAVA_HOME='/usr/lib/jvm/java-11-oracle'
# Fix systemd-resolved problem
apt update;
# setup MySQL
apt-get install -y debconf-utils;
{ \
echo mysql-community-server mysql-community-server/root-pass password ''; \
echo mysql-community-server mysql-community-server/re-root-pass password ''; \
} | debconf-set-selections \
&& apt install -y mysql-server
yum update;
# Install dependencies
export DEBIAN_FRONTEND=noninteractive
yum install -y wget
export LC_ALL=C
apt install -y openjdk-11-jdk python3 python3-pip git slapd ldap-utils rsync vim tmux entr less cmake zlib1g-dev uuid uuid-dev libssl-dev
yum install -y java-11-openjdk-devel python3 python3-pip git slapd openldap-clients openldap openldap-servers rsync vim tmux less cmake zlib1g-dev uuid uuid-dev libssl-dev
rpm -ivh entr-4.4-1.el7.x86_64.rpm
yum install entr
rm -f entr-4.4-1.el7.x86_64.rpm
systemctl start slapd
# Install XRootD
apt install -y wget
tar xvzf xrootd-4.12.1.tar.gz
mkdir /build && cd /build
......@@ -23,9 +20,10 @@ cmake /xrootd-4.12.1 -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_PERL=FALSE
make && make install
cd /
#Install HTCondor
wget -qO - | apt-key add -
echo "deb bionic contrib">> /etc/apt/sources.list
echo "deb-src bionic contrib" >> /etc/apt/sources.list
apt update
apt install -y htcondor supervisor environment-modules tcl
\ No newline at end of file
yum update
yum install -y
yum install -y
yum install -y condor supervisor environment-modules tcl
......@@ -3,6 +3,7 @@
echo "Ceci n'est pas un Optimizer"
MYSQLCALL="mysql --verbose --host= --port=3307 --password=pass --user=root -D processes -e"
$MYSQLCALL 'update HOSTS set maxJobs=3000, maxqueued=300 where 1=1;'
$MYSQLCALL 'update SITEQUEUES set blocked="open" where blocked="locked";'
while :
echo \"Optimizing\"
version: "3.3"
image: jalien-base
image: jcentral-base
command: /jalien-setup/bash-setup/
hostname: JCentral-dev
......@@ -12,7 +12,7 @@ cp $HTCONDOR_CONF/supervisord.conf /etc/
bash &>$LOGS/htcondor_starter.log &
#setup submituser to submit jobs on HTCondor and start CE
[ ! -e /home/submituser ] && adduser submituser --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
[ ! -e /home/submituser ] && adduser submituser --comment "First Last,RoomNumber,WorkPhone,HomePhone"
echo "submituser:toor" | chpasswd
cp $CE_CONFIG/custom-classad.jdl /home/submituser
[ ! -e /home/submituser/tmp ] && su submituser -c "mkdir /home/submituser/tmp /home/submituser/log"
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