GithubHelp home page GithubHelp logo

Comments (9)

Bharadwajshivam28 avatar Bharadwajshivam28 commented on June 3, 2024 1

Hey @alexey-igrychev I am new and wanted to contribute.
Can I work on this issue?

from werf.

Bharadwajshivam28 avatar Bharadwajshivam28 commented on June 3, 2024 1

Our end goal is to enable layer-by-layer caching globally in the werf.yaml file hence we can add the staged option in the meta section of the werf.yaml

from werf.

alexey-igrychev avatar alexey-igrychev commented on June 3, 2024 1
  1. All files in the config folder related to directives in the werf.yaml and their processing.
  2. I suggested looking at the usage of the staged option – it appears in six files:
    image

from werf.

alexey-igrychev avatar alexey-igrychev commented on June 3, 2024 1

Hey!

To get started with setting up werf using the Buildah backend, along with an example project, check out the documentation here. Once you're set up, don't forget to follow the contributing guidelines which you can find here.

from werf.

Bharadwajshivam28 avatar Bharadwajshivam28 commented on June 3, 2024

Can you please share steps to get started?

from werf.

alexey-igrychev avatar alexey-igrychev commented on June 3, 2024

Hello, and thank your interest in this issue! ❤️

  • Begin by understanding how the werf.yaml configuration is read and processed, then look into how the current staged directive works for individual images and where it is used.
  • After that, you will have enough knowledge to add the new staged directive under the build section and the rest of the code.
    • Ensure that an image-specific staged setting overrides the common one, maintaining flexibility for individual configurations:
      project: app
      configVersion: 1
      build:
        staged: true
      ---
      image: example
      dockerfile: ./Dockerfile
      staged: false
  • Finally, you should update documentation here and here.

Layer-by-layer caching works only with the Buildah backend and you can find the necessary setup instructions here.

Don't hesitate to reach out if you have any questions or need help along the way. 🙌🏼

from werf.

Bharadwajshivam28 avatar Bharadwajshivam28 commented on June 3, 2024

Hey @alexey-igrychev Thanks for helping me..
I had a few doubts-

  1. we have many werf.yaml files so which one should I look and understand the code of that file?

  2. You pointed to look into pkg/config/image_from_dockerfile.go file and see how the Staged is used but when i see it then i think it is used in the function

func (c *ImageFromDockerfile) IsStapel() bool {
	return false
} 

and it always returns false so i cant understand what to look into this file?

from werf.

Bharadwajshivam28 avatar Bharadwajshivam28 commented on June 3, 2024

Thanks I will look into it

from werf.

Bharadwajshivam28 avatar Bharadwajshivam28 commented on June 3, 2024

Hey @alexey-igrychev I looked into the files and dir mentioned by you and I will start working on it..

Just a question: can you please share some steps to get started?

from werf.

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.