Update the run script for mariadb

This commit is contained in:
Arnie 2018-03-23 12:00:03 +01:00
parent a7050f1767
commit 7b2ac13417

View File

@ -41,16 +41,14 @@ init() {
__ask_to_start
}
# Creates and enters a new container, mounting the current context to /current inside
bash() {
docker run --rm -it -v ${PWD}:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} bash
}
# Runs a command inside the container, mounting the current context to /current inside
cmd() {
docker run --rm -v $PWD:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} $@
docker run --rm -it -v $PWD:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} $@
}
bash() {
cmd bash
}
# Used for exporting the whole database filesystem
backup() {