Comments (5)
I think this can be closed now, I don't think it's adding anything more than #82 and #41 do.
from grate.
Do we want to be responsible for maintaining a docker image (updating base dependencies, handling security updates etc) or is the example usage I'm doing for #41 enough to get started?
from grate.
FYI I had a crack at starting this as part of #41 . There's a few things that have made life more difficult than it should but there's something resembling a working sample coming when I PR that feature branch. Main gotchas so far include:
- adding the globalisation libraries into Alpine so SQL can work (I have to do this for RH/my apps as well so no biggie)
- the global.json has to be ignored due to a framework mismatch between the file and the alpine image.
Current image size is about 75Mb.
from grate.
FYI: Docker image is now available on Docker hub:
https://hub.docker.com/r/erikbra/grate
from grate.
It's possible to create a simple Dockerfile like this now:
FROM erikbra/grate:latest
COPY ./my_scripts ./db
ENTRYPOINT ./grate -f=db -o /var/output --connectionstring "$CONNECTIONSTRING"
and, then build and run it like this, provided you have your connection string in an environment variable, CONNECTIONSTRING, on the host.
docker build -t my-db-image .
docker run -it --rm -e CONNECTIONSTRING --mount type=bind,source="$(pwd)"/output,target=/var/output my-db-image
Then the migration is run, and you get the output in the output folder in your current directory
There seems to be a bug (#89), however, <--- SOLVED in version 0.9.6
from grate.
Related Issues (20)
- Multiple Environments per run HOT 10
- Add "--isuptodate" feature HOT 2
- Migrations keep looping / timeout on permissions scripts on v1.7.0 HOT 13
- Error with Grate 1.7.0 - Read-only file system HOT 3
- Grate internal scripts fail when using CreateDatabase scripts HOT 4
- Upgrade failing for MySQL with syntax error using v1.7.0 HOT 8
- Suppressing logging of internal grate migrations doesn't appear to be working correctly HOT 3
- Scripts in internal Grate migration tables are always registered as "run" HOT 3
- --drop without continuing migration use case HOT 1
- Create database fails when an empty createDatabase folder is present
- Should CONTRIBUTING.md be updated to list .NET 8 HOT 2
- runAfterCreateDatabase are run even if database isn't created from scratch by grate HOT 3
- GrateScritpsRun everytime i run the tool HOT 2
- Question - How to mark one-time migration as run HOT 3
- Doesn't work on console app NET 8 using grate.sqlserver HOT 1
- Running Grate on RoundhousE database - all scripts are new HOT 8
- Baseline creates orphan version_id in ScriptsRun HOT 1
- This is still not fixed. Running grate on a postgres database which had previously been migrated using roundhouse does not work. HOT 2
- Publish linux/arm64 images HOT 2
- v1.8.0 MariaDB/MySQL fix casing scripts seem to break with MySQL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grate.