File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,19 @@ printf "\n${RED}>> Finding old builds and cleaning up${PLAIN} ${GREEN}...${PLAIN
48
48
docker rm -f $MYSQL_CONTAINER > /dev/null 2>&1
49
49
printf " \n${CYAN} Clean up complete.${PLAIN} \n"
50
50
51
+ # # Pin mysql docker image to version as `mysql` node.js driver does not support v8 yet
52
+ # # See https://github.com/mysqljs/mysql/issues/2002
53
+ DOCKER_IMAGE=mysql:5.7.22
54
+
51
55
# # pull latest mysql image
52
- printf " \n${RED} >> Pulling latest mysql image${PLAIN} ${GREEN} ...${PLAIN} "
53
- docker pull mysql:latest > /dev/null 2>&1
56
+ printf " \n${RED} >> Pulling ${DOCKER_IMAGE} image${PLAIN} ${GREEN} ...${PLAIN} "
57
+
58
+ docker pull ${DOCKER_IMAGE} > /dev/null 2>&1
54
59
printf " \n${CYAN} Image successfully built.${PLAIN} \n"
55
60
56
61
# # run the mysql container
57
62
printf " \n${RED} >> Starting the mysql container${PLAIN} ${GREEN} ...${PLAIN} "
58
- CONTAINER_STATUS=$( docker run --name $MYSQL_CONTAINER -e MYSQL_ROOT_USER=$USER -e MYSQL_ROOT_PASSWORD=$PASSWORD -p $PORT :3306 -d mysql:latest 2>&1 )
63
+ CONTAINER_STATUS=$( docker run --name $MYSQL_CONTAINER -e MYSQL_ROOT_USER=$USER -e MYSQL_ROOT_PASSWORD=$PASSWORD -p $PORT :3306 -d ${DOCKER_IMAGE} 2>&1 )
59
64
if [[ " $CONTAINER_STATUS " == * " Error" * ]]; then
60
65
printf " \n\n${CYAN} Status: ${PLAIN}${RED} Error starting container. Terminating setup.${PLAIN} \n\n"
61
66
exit 1
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ module.exports = require('should');
10
10
var DataSource = require ( 'loopback-datasource-juggler' ) . DataSource ;
11
11
12
12
var config = require ( 'rc' ) ( 'loopback' , { test : { mysql : { } } } ) . test . mysql ;
13
- console . log ( config ) ;
14
13
global . getConfig = function ( options ) {
15
14
var dbConf = {
16
15
host : process . env . MYSQL_HOST || config . host || 'localhost' ,
You can’t perform that action at this time.
0 commit comments