Git Product home page Git Product logo

mysql's Introduction

convox/mysql

Mysql docker image based on Alpine Linux

This repo builds a docker image that accepts MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE env vars, in addition to the same env vars as the official mysql build but with a much smaller footprint. It achieves that by basing itself off the great alpine docker image by GliderLabs.

Usage

$ docker run -p 3306:3306 convox/mysql
$ docker exec -it <container id> mysql --user=mysql -p
Enter password: password
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.1.12-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| app                |
| information_schema |
| test               |
+--------------------+
3 rows in set (0.00 sec)

MariaDB [(none)]> use app;
Database changed

MariaDB [app]> show tables;
Empty set (0.00 sec)

Why?

Parameterizing MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE is useful for linking containers together.

Build

$ make build

License

Apache 2.0 © 2015 Convox, Inc.

Credits

Originally forked from kiasaki/docker-alpine-postgres

mysql's People

Contributors

ddollar avatar mwarkentin avatar ryanwilsonperkin avatar jordaaash avatar mattmanning avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.