Giter VIP home page Giter VIP logo

Comments (7)

bacongobbler avatar bacongobbler commented on August 13, 2024

Helm has the concept of chart hooks which you can use in your chart. Will that work for you?

from draft-classic.

bacongobbler avatar bacongobbler commented on August 13, 2024

As far as the partial build steps, that already exists in docker but we are waiting on kubernetes to upgrade their supported docker version from v1.12.

from draft-classic.

rodcloutier avatar rodcloutier commented on August 13, 2024

Yes, something similar to the chart hooks, but run locally, would be interesting.

I was thinking of doing draft up but I would be able to call a script that would call my build target in the Makefile. Maybe we are looking at this wrong but I not convinced that we can move everything out of the dev machine.

The partial build steps might be the solution as we could potentially use containers to do our builds. I will have a look at this in more detail.

The context of this request is that we are trying to get the CI and developer experience to be as close as possible, sharing some of the scripts or steps. Draft seems to fit the bill on several points on the dev side but we might need some steps that are performed on the dev machine.

from draft-classic.

bacongobbler avatar bacongobbler commented on August 13, 2024

If you have an implementation you'd like to see in core, I'd be happy to take a look at it.

from draft-classic.

bacongobbler avatar bacongobbler commented on August 13, 2024

So the idea behind how draft up works is that it sends a tarballed docker build context and a chart context to the draft server. If you want to do some pre-processing such as a make target to produce an image, you can ship that up.

Make the following modifications to your draft.toml locally:

build_tar: docker.tar.gz
chart_tar: chart.tar.gz

Then you can do the following locally:

make generate # assume this generates a bunch of files you want in your docker image into rootfs/
tar -czf docker.tar.gz Dockerfile .dockerignore rootfs/
tar -czf chart.tar.gz chart/
draft up

This workflow should allow you to do whatever you wish locally before shipping a final build context to draft.

from draft-classic.

bacongobbler avatar bacongobbler commented on August 13, 2024

One more thing to note: you can test that the build context works locally by running docker build - < docker.tar.gz.

from draft-classic.

bacongobbler avatar bacongobbler commented on August 13, 2024

I'm closing this as the ask has been solved through uploading a custom docker build context client-side before calling draft up.

from draft-classic.

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.