X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=docker%2Fmariadb%2Fdeploy_with_existing_persistent_storage.sh;fp=docker%2Fmariadb%2Fdeploy_with_existing_persistent_storage.sh;h=0000000000000000000000000000000000000000;hb=c80adf55823ca40d1b68e4a9186a615c9f9a2952;hp=c38ee240ba2f3e7d5ab8db0565d16f4d83f5ad03;hpb=bcfe962f40d0ed2697bc3c6bdc56c89f163bb812;p=validation.git diff --git a/docker/mariadb/deploy_with_existing_persistent_storage.sh b/docker/mariadb/deploy_with_existing_persistent_storage.sh deleted file mode 100755 index c38ee24..0000000 --- a/docker/mariadb/deploy_with_existing_persistent_storage.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2019 AT&T Intellectual Property. All other rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Use this script if the persistent storage already exists and you want to use its data - -set -ex - -DOCKER_VOLUME_NAME="akraino-validation-mariadb" -# Container name -CONTAINER_NAME="akraino-validation-mariadb" -# Image data -REGISTRY=akraino -NAME=validation -TAG_PRE=mariadb -TAG_VER=latest -MARIADB_HOST_PORT=3307 - -for ARGUMENT in "$@" -do - KEY=$(echo $ARGUMENT | cut -f1 -d=) - VALUE=$(echo $ARGUMENT | cut -f2 -d=) - case "$KEY" in - REGISTRY) REGISTRY=${VALUE} ;; - NAME) NAME=${VALUE} ;; - TAG_VER) TAG_VER=${VALUE} ;; - TAG_PRE) TAG_PRE=${VALUE} ;; - CONTAINER_NAME) CONTAINER_NAME=${VALUE} ;; - MARIADB_HOST_PORT) MARIADB_HOST_PORT=${VALUE} ;; - *) - esac -done - -IMAGE="$REGISTRY"/"$NAME":"$TAG_PRE"-"$TAG_VER" -docker run --detach --name $CONTAINER_NAME --publish $MARIADB_HOST_PORT:3306 -v $DOCKER_VOLUME_NAME:/var/lib/mysql -v "/$(pwd)/mariadb.conf:/etc/mysql/conf.d/my.cnf" $IMAGE -sleep 10