We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d263d58 + 2055c2c commit 3febf43Copy full SHA for 3febf43
scripts/itkdev-docker-compose
@@ -143,6 +143,9 @@ Commands:
143
Use `$(itkdev-docker-compose sql:connect)` to open the
144
database cli.
145
146
+ sql:open
147
+ Open database GUI and connect to MariaDB.
148
+
149
sql:port
150
Display the exposed MariaDB SQL server port.
151
@@ -382,6 +385,14 @@ EOF
382
385
echo mysql --host=$host --port=$port --user=db --password=db db
383
386
;;
384
387
388
+ sql:open)
389
+ address=$(docker_compose port mariadb 3306)
390
+ host=$(echo $address | cut -d: -f1)
391
+ port=$(echo $address | cut -d: -f2)
392
+ echo open mariadb://db:db@$host:$port/db
393
+ open mariadb://db:db@$host:$port/db
394
+ ;;
395
396
sql:port)
397
docker_compose port mariadb 3306 | cut -d: -f2
398
0 commit comments