refstack/docker/scripts/api-init-db
Megan Guiney ac57d50f42 Make run-in-docker script use Xenial
This will allow us to run Py35 tests while testing in the container

Change-Id: Ia95262c37a9eb843b8afdedf6e9adf76a9f5641f
2018-01-04 18:54:53 -08:00

8 lines
295 B
Bash
Executable File

#!/bin/bash
[[ ${DEBUG_MODE} ]] && set -x
mysql --no-defaults -S ${SQL_DIR}/mysql.socket -e 'CREATE DATABASE refstack;'
mysql --no-defaults -S ${SQL_DIR}/mysql.socket -e 'set @@global.show_compatibility_56=ON;'
cd /home/dev/refstack
.venv/bin/python bin/refstack-manage upgrade --revision head