Code Monkey home page Code Monkey logo

Comments (5)

wokket avatar wokket commented on August 23, 2024 1

I think this can be closed now, I don't think it's adding anything more than #82 and #41 do.

from grate.

wokket avatar wokket commented on August 23, 2024

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.

wokket avatar wokket commented on August 23, 2024

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.

erikbra avatar erikbra commented on August 23, 2024

FYI: Docker image is now available on Docker hub:

https://hub.docker.com/r/erikbra/grate

from grate.

erikbra avatar erikbra commented on August 23, 2024

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)

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.