mirror of https://github.com/knative/func.git
chore: use Quarkus BP instead of expicit envvars (#2117)
The envvars do not have to be set manually anymore since Quarkus BP will set them for us. Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
b29f702d79
commit
8ecf77d4c4
File diff suppressed because it is too large
Load Diff
|
@ -39,17 +39,6 @@ To enable native build set following environment variables to `func.yaml`:
|
|||
buildEnvs:
|
||||
- name: BP_NATIVE_IMAGE
|
||||
value: "true"
|
||||
- name: BP_MAVEN_BUILT_ARTIFACT
|
||||
value: func.yaml target/native-sources/*
|
||||
- name: BP_MAVEN_BUILD_ARGUMENTS
|
||||
value: package -DskipTests=true -Dmaven.javadoc.skip=true -Dquarkus.package.type=native-sources
|
||||
- name: BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE
|
||||
value: native-image.args
|
||||
- name: BP_NATIVE_IMAGE_BUILT_ARTIFACT
|
||||
value: '*-runner.jar'
|
||||
- name: BP_JVM_VERSION
|
||||
value: 21
|
||||
|
||||
```
|
||||
|
||||
### Running
|
||||
|
|
|
@ -39,16 +39,6 @@ To enable native build set following environment variables to `func.yaml`:
|
|||
buildEnvs:
|
||||
- name: BP_NATIVE_IMAGE
|
||||
value: "true"
|
||||
- name: BP_MAVEN_BUILT_ARTIFACT
|
||||
value: func.yaml target/native-sources/*
|
||||
- name: BP_MAVEN_BUILD_ARGUMENTS
|
||||
value: package -DskipTests=true -Dmaven.javadoc.skip=true -Dquarkus.package.type=native-sources
|
||||
- name: BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE
|
||||
value: native-image.args
|
||||
- name: BP_NATIVE_IMAGE_BUILT_ARTIFACT
|
||||
value: '*-runner.jar'
|
||||
- name: BP_JVM_VERSION
|
||||
value: 21
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
buildEnvs:
|
||||
- name: BP_NATIVE_IMAGE
|
||||
value: "false"
|
||||
- name: BP_MAVEN_BUILT_ARTIFACT
|
||||
value: func.yaml target/quarkus-app/lib/ target/quarkus-app/*.jar target/quarkus-app/app/ target/quarkus-app/quarkus/
|
||||
- name: BP_MAVEN_BUILD_ARGUMENTS
|
||||
value: package -DskipTests=true -Dmaven.javadoc.skip=true -Dquarkus.package.type=fast-jar
|
||||
- name: BP_JVM_VERSION
|
||||
value: 21
|
||||
- name: MAVEN_S2I_ARTIFACT_DIRS
|
||||
value: target/quarkus-app
|
||||
- name: S2I_SOURCE_DEPLOYMENTS_FILTER
|
||||
|
|
Loading…
Reference in New Issue