Comments (7)
Helm has the concept of chart hooks which you can use in your chart. Will that work for you?
from draft-classic.
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.
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.
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.
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.
One more thing to note: you can test that the build context works locally by running docker build - < docker.tar.gz
.
from draft-classic.
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)
- Go Modules support HOT 3
- Old Kubernetes API extensions created in manifest file HOT 1
- Will the support for draft is going to get over? HOT 2
- Draft fails to create app if chart templates contain subdirectories
- `draft pack-repo update` fails with local pack repositories
- Support for client.authentication.k8s.io/v1beta1 HOT 3
- Use latest version of helm HOT 1
- Support for helm without Tiller HOT 1
- draft up with monorepo HOT 2
- No pod created after successful draft up HOT 1
- Draft is broken if your user path has spaces
- adduser: Only one or two names allowed. HOT 1
- Draft generates outdated helm chart for python pack HOT 1
- Support for newer k8s versions (e.g. 1.16) HOT 4
- This project is no longer being actively developed or maintained? HOT 6
- Draft up not working with helm3 HOT 3
- AppVeyor build fails HOT 1
- Does draft work w/ helm 3? HOT 1
- Allow customizing build dir HOT 1
- This repo is missing important files
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 draft-classic.