Skip to content
Snippets Groups Projects
Commit e19d0c86 authored by Steven Murray's avatar Steven Murray
Browse files

Modified .gitlab-ci.yml to use rh-mariadb103

parent ba52f414
No related branches found
No related tags found
No related merge requests found
......@@ -179,15 +179,19 @@ dbunittests_mysql:
- createrepo ${CTAREPODIR}; echo -e "[cta-artifacts]\nname=CTA artifacts\nbaseurl=file://${CTAREPODIR}\ngpgcheck=0\nenabled=1\npriority=2" > /etc/yum.repos.d/cta-artifacts.repo
- yum -y --nogpgcheck install cta-systemtests cta-debuginfo sqlite-debuginfo --enablerepo=debug
- yum -y install cta-catalogueutils
- yum -y install lsof mariadb-server
- echo '[mariadb]' > /etc/my.cnf.d/cta_server_listen.cnf
- echo 'bind-address=localhost' >> /etc/my.cnf.d/cta_server_listen.cnf
- mysql_install_db --basedir=/usr --user=mysql
- /usr/bin/mysqld_safe > /dev/null 2>&1 < /dev/null &
- yum -y install lsof rh-mariadb103-mariadb-server
- echo '[mariadb]' > /etc/opt/rh/rh-mariadb103/my.cnf.d/cta_server_listen.cnf
- echo 'bind-address=localhost' >> /etc/opt/rh/rh-mariadb103/my.cnf.d/cta_server_listen.cnf
- scl enable rh-mariadb103 -- mysql_install_db --user=mysql
- cd '/opt/rh/rh-mariadb103/root/usr'
- scl enable rh-mariadb103 -- /opt/rh/rh-mariadb103/root/usr/bin/mysqld_safe --user=mysql --datadir=/var/opt/rh/rh-mariadb103/lib/mysql < /dev/null &
- echo "Sleeping 5 seconds"
- sleep 5
- echo 'create database cta;' | mysql
- echo 'create user cta;' | mysql
- echo 'grant all privileges on *.* to cta@localhost' | mysql
- echo "Finished sleeping"
- echo 'create database cta;' | scl enable rh-mariadb103 -- mysql
- echo 'create user cta@localhost;' | scl enable rh-mariadb103 -- mysql
- echo 'grant all privileges on *.* to cta@localhost' | scl enable rh-mariadb103 -- mysql
- echo 'flush privileges;' | scl enable rh-mariadb103 -- mysql
- CTA_CATALOGUE_CONF=/etc/cta/cta-catalogue.conf
- echo CTA_CATALOGUE_CONF=${CTA_CATALOGUE_CONF}
- echo 'mysql://cta@localhost:3306/cta' > ${CTA_CATALOGUE_CONF}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment