Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canned mysql (2nd attempt) #107

Closed
wants to merge 7 commits into from

Commits on Apr 20, 2019

  1. Mysql canned container

    Reference testcontainers#19
    
    I bootstrapped a mysql canned container.
    
    ```
    ctx := context.Background()
    c, err := MySQLContainer(ctx, MySQLContainerRequest{
            RootPassword: "root",
            Database:     "hello",
    })
    if err != nil {
            t.Fatal(err.Error())
    }
    defer c.Container.Terminate(ctx)
    sqlC, err := c.GetDriver("root", "root", "hello")
    if err != nil {
            t.Fatal(err.Error())
    }
    _, err = sqlC.ExecContext(ctx, "CREATE TABLE example ( id integer, data varchar(32) )")
    if err != nil {
            t.Fatal(err.Error())
    }
    ```
    
    Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
    Gianluca Arbezzano committed Apr 20, 2019
    Configuration menu
    Copy the full SHA
    c8eeaa4 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2019

  1. Configuration menu
    Copy the full SHA
    d10aed5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3bfbd34 View commit details
    Browse the repository at this point in the history
  3. use port const

    borgoat committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    0e5a81c View commit details
    Browse the repository at this point in the history
  4. autostart container

    borgoat committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    4621d60 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a550743 View commit details
    Browse the repository at this point in the history
  6. now with docs!

    borgoat committed Oct 25, 2019
    Configuration menu
    Copy the full SHA
    6ff5a23 View commit details
    Browse the repository at this point in the history