Comments (4)
@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.
@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.
@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.
Closed in #17, but still more work to be done on backend to support this.
from scs-build-client.
Related Issues (20)
- Messy output on error
- CI not tracking latest version of Cosign HOT 2
- Failure while attaching attestations to image
- Docker container image does not contain /tmp
- Unauthorized errors reported as "HTTP status 401"
- Typo in PGP passphrase prompt
- Incorrect error message when using malformed library ref
- Websocket does not use custom TLS client config
- Data Race in Unit Test HOT 1
- Simplify GetOutput
- Publish Binary on Release
- Publish Container
- Publish Multi-Arch Containers
- Remove Logger
- Future Proofing HOT 1
- Submit() does not check returned HTTP status code HOT 1
- Add User-Agent to scs-build
- Push Failure for Certain Ref Formats
- SBOM for Releases
- scs-build: failure to push image to library isn't reported correctly
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 scs-build-client.