File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1- env vars: MB_DB_TYPE=mysql MB_DB_DBNAME=metabase_test MB_DB_HOST=localhost MB_DB_PASS= ' ' MB_DB_PORT=3306 MB_DB_USER=root MB_MYSQL_TEST_USER=root
1+ #! /usr/bin/ env bash
22
3+ SOURCE_DIR=` dirname " ${BASH_SOURCE[0]} " `
4+
5+ source " $SOURCE_DIR /../env-mariadb.sh"
6+
7+ cat << EOF
38Clojure CLI:
49
5- clojure -J-Dmb.db-type=mysql -J-Dmb.db-port=3306 -J-Dmb.db.dbname=metabase_test -J-Dmb.db.user=root -J-Dmb.db.pass=' '
10+ clj -J-Dmb.db-type=mysql -J-Dmb.db-port=${HOST_PORT} -J-Dmb.db.dbname=${DB_NAME} -J-Dmb.db.user=${DB_USER} -J-Dmb.db.pass=''
611
712or add a profile for it to your ~/.clojure/deps.edn:
813
914{:profiles
10- {:user/mysql
15+ {:user/${CONTAINER_NAME}
1116 {:jvm-opts
1217 ["-Dmb.db-type=mysql"
13- " -Dmb.db-port=3306 "
14- " -Dmb.db.dbname=metabase_test "
15- " -Dmb.db.user=root "
18+ "-Dmb.db-port=${HOST_PORT} "
19+ "-Dmb.db.dbname=${DB_NAME} "
20+ "-Dmb.db.user=${DB_USER} "
1621 "-Dmb.db.pass="]}}}
22+
23+ Environment variables for Metabase (to use as app DB):
24+ MB_DB_TYPE=mysql MB_DB_HOST=localhost MB_DB_PORT=${HOST_PORT} MB_DB_DBNAME=${DB_NAME} MB_DB_USER=${DB_USER} MB_DB_PASS=''
25+ EOF
You can’t perform that action at this time.
0 commit comments