Git Product home page Git Product logo

Comments (1)

radu-matei avatar radu-matei commented on June 11, 2024

First, I am strongly in favor of making it very easy to be able to build Spin apps in containers.
For ease of setup for developer environments, just having Docker configured locally in order to build an application generated from any Spin template would be great — and I would assume would involve adding a Dockerfile to each of our templates.

Would you please expand a bit on:

Currently you can't effectively work around this even by running the compiler in a container as you lose build provenance, but also rely on the host spin implementation to build the OCI artifact while pushing.

What exactly do you mean here by "losing build provenance"?
(trying to understand exactly what we're not able to satisfy while bundling as an artifact that we would as a "real" container image).

While I am strongly in favor of building applications in containers, packaging them in containers is something I have been extremely hesitant of in the past — partly because if you are responsible for manually bundling all the files required for your app, you are now left with keeping each files section for each component in spin.toml in sync with your Dockerfile.
Because of that alone, IMO, spin.toml + scratch container is not the right format to distribute (and building tooling around automating and keeping that in sync basically leads you to designing our current distribution mechanism).

Side note: since Spin apps are made of a several components, each generated from its own template, I imagine you'd end up with several "builder" images, each responsible for building its own template? Or the alternative of a single multi-stage build, with stages for each component.

Side-side note: you also have pre-built components that don't require their own builder, since you fetch them at build time from some source (today HTTPS endpoints).

from spin.

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.