Skip to content
Snippets Groups Projects
Commit 206d59b0 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #53508 use custom docker mysql image

parent 4dc2843e
Branches
Tags
4 merge requests!2080Sandbox detach zf from storm,!2061Master,!1997Dev#53508 ci with docker,!1917[WIP] Hotline#50082 mixed records links in loans list
Pipeline #285 failed with stage
in 47 seconds
......@@ -2,16 +2,17 @@ services:
- localhost:5000/bokeh_mysql5
variables:
MYSQL_HOST: bokeh_mysql5
MYSQL_DATABASE: "bokeh_build_${CI_BUILD_REF}"
MYSQL_ROOT_PASSWORD: root
before_script:
- bash scripts/docker_install.sh $MYSQL_DATABASE
- bash scripts/docker_install.sh $MYSQL_DATABASE $MYSQL_HOST
test:php5_latest:
image: localhost:5000/bokeh_php5
script:
- bash build.sh $MYSQL_DATABASE root root bokeh_mysql5
- bash build.sh $MYSQL_DATABASE root root $MYSQL_HOST
except:
- tags
tags:
......
......@@ -8,5 +8,5 @@ set -xe
# data preparation
curl --location --output default-ci-dump.sql.gz http://sandbox.afi-sa.net/databases/default-ci-dump.sql.gz
mysql -h mysql -uroot -proot -e "drop schema if exists $1; create schema $1"
zcat default-ci-dump.sql.gz | mysql -h mysql -uroot -proot $1
zcat default-ci-dump.sql.gz | mysql -h $2 -uroot -proot $1
mysql -h mysql -uroot -proot -e "drop trigger if exists $1.datemaj_notices_update;update mysql.proc set definer='root@localhost' where db='$1'"
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