Comments (3)
Hmm, interesting! I think this is mostly a display issue, will have to look more closely. Pants makes some assumptions about fields being (somewhat) unique -- in particular, that there is only one Dependencies field etc. Some of my targets have two, because I think the UX of a separate field for the "base" image is preferrable. I've not noticed any adverse effects in practice, but I hadn't considered this aspect.
from pants-backends.
It's the same in the examples in this repo:
pants-backends main
❯ pants dependencies //examples/oci:oci
examples/oci:python3-d11#latest
❯ pants peek //examples/oci:oci
[
{
"address": "examples/oci:oci",
"target_type": "oci_image_build",
"args": null,
"base": [
":python3-d11#latest"
],
"commands": null,
"dependencies": [
"examples/oci:python3-d11#latest"
],
"description": null,
"entrypoint": null,
"env": null,
"layers_raw": null,
"output_path": null,
"packages_raw": [
":example"
],
"repository": "harbor.sbg.dev/test/pants-plugin-oci-example",
"tag": "latest",
"tags": null,
"terminal": false
}
]
How does it know when it needs to rebuild the image when the pex is rebuilt? Do you pick that out manually, or just run everything?
from pants-backends.
Hmm, interesting! I think this is mostly a display issue, will have to look more closely. Pants makes some assumptions about fields being (somewhat) unique -- in particular, that there is only one Dependencies field etc. Some of my targets have two, because I think the UX of a separate field for the "base" image is preferrable. I've not noticed any adverse effects in practice, but I hadn't considered this aspect.
FYI I worked around this for my case by using oci_layer
, putting the packages in there and adding that instead to oci_image_build
, then everything behaves as expected with dependencies.
from pants-backends.
Related Issues (17)
- Add badges to main README
- Make badges clickable in sub-readmes.
- Optimize pex build workflows HOT 1
- oci_image_artifact and `COPY --from`
- Allow overriding terminal and entrypoint for OCI run
- Empty base image for OCI
- Fix deprecation warnings
- Add support for build-args w/ defaults.
- Add support for structure tests and other "in-container" testing.
- Upgrade all plugins to PDM-backend instead of pdm-pep517
- Failing to build layer using `resources` leads to Index Out of Range
- Packaging files doesn't use `output_path`
- Automatically derive `uid` and `gid` mappings
- Import docker images from Pants `docker` backend
- Export container images to local docker/podman host
- Publishing when no repository set HOT 1
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 pants-backends.