File tree 1 file changed +15
-6
lines changed
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
2
2
3
+ SOURCE_DIR=` dirname " ${BASH_SOURCE[0]} " `
4
+
5
+ source " $SOURCE_DIR /../env-mariadb.sh"
6
+
7
+ cat << EOF
3
8
Clojure CLI:
4
9
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=''
6
11
7
12
or add a profile for it to your ~/.clojure/deps.edn:
8
13
9
14
{:profiles
10
- {:user/mysql
15
+ {:user/${CONTAINER_NAME}
11
16
{:jvm-opts
12
17
["-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} "
16
21
"-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