Giter Club home page Giter Club logo

Comments (4)

tri-adam avatar tri-adam commented on July 18, 2024 1

@tri-adam are you thinking that we treat build definition more as a bag-of-bytes?

@mikegray yeah, exactly.

So then instead of including nCPU/mem/architecture/singularity-version requirements possibly in this definition file, we need to define that as another input, right? Or are you thinking about this in some other way?

Agree with @ikaneshiro here, I think it best to keep these outside of the definition. In addition to nCPU/mem, I could see needing to specify the version of Singularity to use in the Build Service. In a way, this sort of thing is implicit when someone builds locally, but when building remotely, we need a way to provide this context to the Build Service. If we wanted to generalize this, perhaps we could make this a map[string]string? That would allow us to extend it arbitrarily in the future without having to update the signature.

from scs-build-client.

mikegray avatar mikegray commented on July 18, 2024

@tri-adam are you thinking that we treat build definition more as a bag-of-bytes? We take the input file (or []byte slice) and get it through to remote-build server-jim-manager-agent pipeline to have singularity execute it on the other end and we don't really ever need to know the structure of the file in between?

So then instead of including nCPU/mem/architecture/singularity-version requirements possibly in this definition file, we need to define that as another input, right? Or are you thinking about this in some other way?

@ikaneshiro would be interested in your thoughts here as well.

from scs-build-client.

ikaneshiro avatar ikaneshiro commented on July 18, 2024

@tri-adam @mikegray I agree with treating definitions as a bag-of-bytes. I think this will make it much easier for the builder to support building with multiple versions of singularity since it won't have to try to use different parsers for different structs internally. Are there any components of the builder that need information from the definition struct? From my quick look at the code it looks like it is mainly passed around until it is inserted in the build environment.

I think it's best to not include things like nCPU/mem/... as a part of the definition as it is only indented, imho, to be a list of actions for singularity to perform to create a container. These seem like things that are not used by singularity but jim to set up the build environment and should be handled separately.

from scs-build-client.

mikegray avatar mikegray commented on July 18, 2024

Closed in #17, but still more work to be done on backend to support this.

from scs-build-client.

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.