Open artemptushkin opened 4 months ago
Looking at CommonContainerConfigCliOptions
, jib-cli doesn't seem to have a command-line parameter for it.
Unfortunately, the only workaround I can think of is to use the jib build
command and specify platforms in jib.yaml
.
from:
image: "ubuntu"
# set platforms for multi architecture builds, defaults to `linux/amd64`
platforms:
- architecture: "arm"
os: "linux"
- architecture: "amd64"
os: "darwin"
@chanseokoh thank you for the quick response, I thought so according to the documentation, and I will try the yaml approach. I will close the issue with this resolution, but I have just a question maybe you know
Do you have any defaults in jib.yaml
to set? Let's say I have my CLI command with N parameters, if I set all of them as yaml fields will it be enough, or should I default something else? I could reverse but frankly, I don't have time for this
I just realized that I use jar
command and not build
and the first doesn't support the jib.yaml file. So I have to either use build
command or get back to the Gradle plugin here
@chanseokoh can we implement a feature in the scope of this issue to pass platforms from the CLI parameters? I see it's possible, we can replace here emptySet
with a parameter
In Gradle it's possible:
But when I use CLI (I really use CLI in one of the projects):
this fails with