buildpacks
dbmate
Our great sponsors
buildpacks | dbmate | |
---|---|---|
6 | 25 | |
938 | 4,345 | |
0.6% | - | |
9.3 | 8.1 | |
4 days ago | 6 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
buildpacks
-
How do you run scheduled tasks in Google Cloud without the 10 minute cutoff?
You're better off using Cloud Run. In some ways, it's easier than App Engine. You can use a buildpack (blog, blog, GitHub) to automatically build a docker image with Go using the code you provide. You can then configure Cloud Run to allow up to 60 minutes of time per invocation.
-
Deploy Node app to GCR without Docker?
Under the covers this uses Google Buildpacks to create a container image from your app: https://github.com/GoogleCloudPlatform/buildpacks
-
🎨 Image processing as a service 🐍
Cloud Build is indirectly called to containerize your app. One of its core components is Google Cloud Buildpacks, which automatically builds a production-ready container image from your source code. Here are the main steps:
-
Build containers without using Docker
This explicitly uses the Buildpacks provided by Google. You can find more information about these on Github
-
Insight on the cloud function environment?
The function is containerized using Google Cloud buildpacks.
-
I am not sure what I should expect for a developer test environment for my new job.
As for being able to run your own instance of things in isolation, that really depends on the fidelity you want. Firebase has an emulator you could use, and Cloud Functions/AppEngine can be built into docker images locally using the public buildpacks (but won't have the full suite of attached services), but I'd probably recommend good service mocks/stubs/fakes your services plus a pipeline that spins up a full project with Terraform, runs integration tests, then tears it down for e2e testing.
dbmate
-
Ask HN: What tool(s) do you use to code review and deploy SQL scripts?
A regular code repo with the scripts (with pull/merge requests for review) and then a CI job that builds containers with something like dbmate https://github.com/amacneil/dbmate that can then be run against any staging/prod environment.
-
Level UP your RDBMS Productivity in GO
As we want to maintain the track of our changes to the DB, we are going to use migrations. In this case, we are going to use dbmate. But, you can use any other tool you want.
-
Rails 7.1 Released
> For example having database migrations built in etc.
I actually went the exact opposite route, at least when possible: https://github.com/amacneil/dbmate
Pure SQL migrations, regardless of the back end technology that you use, completely decoupled from how each framework/library views things and therefore not dependent on them (you could even rewrite the back end in another technology later on, if needed; or swap ORMs; or avoid issues when there's a major ORM version update).
It's really nice when you can generate entity mappings based on a live database, like with https://blog.jetbrains.com/dotnet/2022/01/31/entity-framewor...
So in my case, I can have:
* a DB that has migrations applied with dbmate, completely decoupled from any back end(s) that might use it
- FLaNK Stack Weekly 2 October 2023
-
How do your teams run DB migrations?
You can run dbmate as part of your CI/CD pipeline. You just keep a dbmate directory in your repo and deploy migrations with your code.
-
Working with TypeORM 0.3x with Nestjs - I wasn't aware so many people were facing issues with it
In general with ORMs, you will face a problem in one way or another. I ended up simply using https://github.com/gajus/slonik and https://github.com/amacneil/dbmate for migrations. My life is way much better since then.
-
what do you use for migrations? or how do you the sql tables and seeding?
I like dbmate, super simple and straightforward to use. For your specific use case, it can also be configured using your .env!
- GORM
-
New post: Is Prisma better than your 'traditional' ORM?
Would always go for a language agnostic migration tool, e.g. https://github.com/amacneil/dbmate to stay flexible and stay away from lock-in effects (besides sql).
- I greatly dislike ORMs, but I find myself wanting ORM agnostic SQL migration tools. What do you use to perform RDBMS table migrations outside of an ORM?
What are some alternatives?
dockerfile-samples - Dockerfile samples to make your life easier
sqlite-bench - PostgreSQL & SQLite Speed Test
kaniko - Build Container Images In Kubernetes
goose - A database migration tool. Supports SQL migrations and Go functions.
faas-cli - Official CLI for OpenFaaS
Flyway - Flyway by Redgate • Database Migrations Made Easy.
liquibase - Main Liquibase Source
migra - Like diff but for PostgreSQL schemas
SQLBoiler - Generate a Go ORM tailored to your database schema.
golang-samples - Sample apps and code written for Google Cloud in the Go programming language.
bytebase - The GitLab/GitHub for database DevOps. World's most advanced database DevOps and CI/CD for Developer, DBA and Platform Engineering teams.
tbls - tbls is a CI-Friendly tool for document a database, written in Go.