No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


git submodule init
git submodule sync

Local development with Vagrant

vagrant up
vagrant plugin install vagrant-vbguest
vagrant vbguest --do install


Centos 7 with selinux

sudo su
yum update
yum -y install   ntp ntpdate ntp-doc   gcc   gcc-c++   make   openssl-devel   libxml2-devel   libxslt-devel   python-devel   curl   gettext   httpd   vim   git   zip   python-setuptools   bash-completion   ctags

tee /etc/yum.repos.d/docker.repo <<-EOF

[dockerrepo] name=Docker Repository baseurl= enabled=1 gpgcheck=1 gpgkey= EOF

yum update && yum install docker-engine

chkconfig docker on chkconfig httpd on service docker start

groupadd docker
usermod -aG docker ${USER}
service docker restart
\curl -sSL '' | bash
\curl -sSL`uname -s`-`uname -m` > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
yum install -y php56u php56u-pgsql php56u-mbstring php56u-pdo php56u-gd php56u-ldap .    php56u-pecl-imagick php56u-curl php56u-apc
\curl -sS | php -- --install-dir=/usr/local/bin --filename=composer && chmod +x /usr/local/bin/composer
\curl -sS | python

groupadd data-ub
usermod -a -G data-ub dmheggo
usermod -a -G data-ub ubo-bot

mkdir /op/data.ub
chown -R ubo-bot:data-ub /opt/data.ub
git clone /opt/data.ub
chown -R ubo-bot:data-ub /opt/data.ub
cd /opt/data.ub
git checkout v2

Copy dynmotd to /usr/local/bin/dymotd and add /usr/local/bin/dymotd at end of /etc/profile.

Log out and in again to refresh group membership.

docker version


chcon -Rv --type=httpd_sys_content_t /opt/data.ub/www
setsebool -P httpd_can_network_connect 1


  • Clone all the vocabularies into /data/vocabs
  • Change default umask from 022 to 002 for all users in /etc/profile
  • Configure tmp folder to be cleaned more often through /usr/lib/tmpfiles.d/tmp.conf: The default on Redhat 7 is 10d for /tmp and 30d for /var/tmp. We reduce both to 2d.
$ cat /usr/lib/tmpfiles.d/tmp.conf
#  This file is part of systemd.
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# Clear tmp directories separately, to make them easier to override
v /tmp 1777 root root 1d
v /var/tmp 1777 root root 1d

# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp

Adding a bot user for updating data

sudo su
useradd --create-home -s /sbin/nologin ubo-bot

cd /home/ubo-bot/
mkdir .ssh && cd .ssh
ssh-keygen -t rsa -f id_rsa.$KEYNAME -C "$KEYNAME key for ubprod01-uxl"
ssh-keygen -t rsa -f id_rsa.$KEYNAME -C "$KEYNAME key for ubprod01-uxl"

cat > config <<EOF
    User git
    IdentityFile ~/.ssh/id_rsa.ubo-bot-github

    User dmheggo
    IdentityFile ~/.ssh/id_rsa.ubo-bot-utvuio

cd ..

cat > .gitconfig <<EOF
    name = ubo-bot
    email =
    default = simple

chown -R ubo-bot:ubo-bot .

Add SetGID bit

chown -R ubo-bot:data-ub /data
chgrp -R data-ub /data
chmod -R u+rwX,g+rwX,o+rX /data
find /data -type d -exec chmod g+s {} \;

chown -R ubo-bot:data-ub /opt/data.ub
chgrp -R data-ub /opt/data.ub
chmod -R u+rwX,g+rwX,o+rX /opt/data.ub
find /opt/data.ub -type d -exec chmod g+s {} \;

Crontab: Load from file:

crontab crontab

/etc/crontab :

15 * * * * ubo-bot cd /data/vocabs/realfagstermer && doit fuseki publish-dumps

Starting services

cd /opt/data.ub/docker
docker-compose up -d

Use docker-compose ps to check status. Restart policies are assigned, so the containers should restart automatically on crashes or reboots.