run_server.sh 357 Bytes
Newer Older
Christian Pointner's avatar
Christian Pointner committed
1
2
#!/bin/bash

3
4
5
6
7
8
9
10
11
12
case "$1" in
  mariadb)
    img="mariadb"
    tag="10.1" ## mariadb in debian stretch
    ;;
  *)
    img="mysql"
    tag="5.7"
    ;;
esac
Christian Pointner's avatar
Christian Pointner committed
13

Christian Pointner's avatar
Christian Pointner committed
14
SCRIPTS_D=$(realpath "${BASH_SOURCE%/*}/")
15
exec docker run -it --rm --name aura-mysql -e MYSQL_INITDB_SKIP_TZINFO=1 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -v "$SCRIPTS_D:/scripts:ro" -p 3306:3306 "$img:$tag"