[KYUUBI #3907] [IT][CI] CI build kyuubi docker image should using mvn_args to speed up

### _Why are the changes needed?_

CI using `build/dockerfile` to build kyuubi docker image, which will build distribution frist.

We should pass servals maven args to help build speed up.

We only test spark engine for kyuubi on kubernetes it test, so we use hive and flink provided.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

- [x] Wait CI

Closes #3907 from zwangsheng/IT/improve_build_docker_image.

Closes #3907

b05e190b [zwangsheng] fix
22f96805 [zwangsheng] respect
e9bc3047 [zwangsheng] download spark
65686b32 [zwangsheng] pass maven to dockerfile

Authored-by: zwangsheng <2213335496@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
zwangsheng 2022-12-07 09:52:32 +08:00 committed by Cheng Pan
parent 5e6c56abf4
commit b418f89aa7
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D

View File

@ -340,7 +340,9 @@ jobs:
uses: docker/build-push-action@v2
with:
# passthrough CI into build container
build-args: CI=${CI}
build-args: |
CI=${CI}
MVN_ARG=--flink-provided --hive-provided -Dmaven.javadoc.skip=true -Drat.skip=true -Dscalastyle.skip=true -Dspotless.check.skip -DskipTests
context: .
file: build/Dockerfile
load: true