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

Change of distro to Centos7

parent 6b8eeab9
gitlab_base_image=gitlab-registry.cern.ch/jalien/jalien-setup/jalien-base
gitlab_xrootd_image=gitlab-registry.cern.ch/jalien/jalien-setup/xrootd-se
jcentral-image:
docker build -t jcentral-base -f base-ubuntu/Dockerfile base-ubuntu
base-image:
docker build -t jalien-base -f base/Dockerfile base
docker build -t jalien-base -f base/Dockerfile base
xrootd-image:
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
COPY docker-setup.sh /
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
wget https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/e/entr-4.4-1.el7.x86_64.rpm
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
wget https://xrootd.slac.stanford.edu/download/v4.12.1/xrootd-4.12.1.tar.gz
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 - https://research.cs.wisc.edu/htcondor/ubuntu/HTCondor-Release.gpg.key | apt-key add -
echo "deb http://research.cs.wisc.edu/htcondor/ubuntu/8.8/bionic bionic contrib">> /etc/apt/sources.list
echo "deb-src http://research.cs.wisc.edu/htcondor/ubuntu/8.8/bionic 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 https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y https://research.cs.wisc.edu/htcondor/repo/8.8/el7/release/htcondor-release-8.8-1.el7.noarch.rpm
yum install -y condor supervisor environment-modules tcl
......@@ -3,6 +3,7 @@
echo "Ceci n'est pas un Optimizer"
MYSQLCALL="mysql --verbose --host=127.0.0.1 --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 :
do
echo \"Optimizing\"
......
version: "3.3"
services:
JCentral-dev:
image: jalien-base
image: jcentral-base
command: /jalien-setup/bash-setup/entrypoint.sh
hostname: JCentral-dev
ports:
......
......@@ -12,7 +12,7 @@ cp $HTCONDOR_CONF/supervisord.conf /etc/
bash start.sh &>$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