denny/ShinyCMS

View on GitHub
bin/docker/mysql-client-docker-run

Summary

Maintainability
Test Coverage
source 'script.config'

docker run -it \
    --link ShinySQL_$DOMAIN:mysql      \
    --rm mysql sh -c 'exec mysql       \
    -h"$MYSQL_PORT_3306_TCP_ADDR"      \
    -P"$MYSQL_PORT_3306_TCP_PORT"      \
    -uroot                             \
    -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" \
    shinycms'