GoogleContainerTools / GoogleContainerTools/skaffold

jib builder: support for adding arguments to Maven on command line

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

Description

Need a way to be able to pass arbitrary arguments to Maven on command line, e.g for overwriting certain build properties. The current implementation does only support static arguments in skaffold.yaml but this is a bit different.

E.g. one situation I have faced is overriding location of docker registry when building images. When in office close to the docker registry hosted we use that one, but when outside office we have a need to be able to easily override that and point to another one, e.g. one hosted on local machine.

### Expected behavior
Possible to add arbitrary arguments to jib builder when running skaffold dev/build/run

### Actual behavior
Not possible to pass arguments

### Information

- Skaffold version: version...1.0.0
- Operating system: ...Windows
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v1
kind: Config
build:
artifacts:
- image: startkit
jib:
project: :startkit-web-jar
args:
- -Pdocker
deploy:
kubectl:
manifests:
- skaffold/k8s-*
portForward:
- resourceType: pod
resourceName: startkit
namespace: default
port: 8080
localPort: 8080
```

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.