cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.19k stars 3.82k forks source link

sql: Docker container(s) to speed up ORM setup #59437

Open ajstorm opened 3 years ago

ajstorm commented 3 years ago

Recently, at Hack the North, some of the developers had issues getting ORMs setup correctly with CRDB (specifically, Sequelize). The instructions in our docs work, when followed correctly, but many of them are several steps long, and missing (or messing up) a single step will lead to pain and suffering.

It would be beneficial if we had a simpler approach to getting up-and-running with CRDB and ORMs. Luckily, some of the SEs have already built assets for this using Docker (for example: https://github.com/dbist/cockroach-docker).

The thinking for this issue is to build standardized Docker containers for each ORM (or a mega-container which contains all ORMs) which could also contain all of the samples. This would take the multi-step setups we currently have, to a single Docker pull, and then execing into the container.

Jira issue: CRDB-3289

awoods187 commented 3 years ago

@vy-ton can you evaluate this request and prioritize it with @ericharmeling?

vy-ton commented 3 years ago

This was discussed as an upcoming intern project

Other places we could leverage these containers

ajstorm commented 3 years ago

Here's a link from @timveil's of the repo where they're planning on coalescing all of the SE docker assets.: https://github.com/cockroachlabs-field/docker-examples

rafiss commented 3 years ago

Comment from Vy: Could also be useful for internal reproduction of customer issues.

We will start on this by asking our ActiveRecord contractor to work on making a Docker image that has our adapter.

rafiss commented 3 years ago

cc @ericharmeling