GoogleContainerTools / GoogleContainerTools/skaffold

`skaffold init --analyze` builder ordering

Open
#3,863 3 comments 0 reactions 0 assignees View on GitHub
area/build area/init-analyze kind/feature-request priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

In Java projects such as https://github.com/GoogleCloudPlatform/cloud-code-samples/tree/master/java/java-hello-world, there is a `Dockerfile` and a `pom.xml` with Jib configured.

```
$ skaffold init --XXenableJibInit --analyze --skip-deploy | jq
{
"builders": [
{
"name": "Docker",
"payload": {
"path": "Dockerfile"
}
},
{
"name": "Jib Maven Plugin",
"payload": {
"path": "pom.xml",
"project": "org.springframework.boot:hello-world"
}
}
]
}
```
Cloud Code IntelliJ uses the ordering of the builders returned here to determine the default builder. If Docker and Jib builders are detected, can Jib take precedence?

Related: https://github.com/GoogleContainerTools/skaffold/issues/3661#issuecomment-592732189

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.