Please provide us with the following information:
This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
This is my Dockerfile:
ARG JAVA_VERSION=11
FROM mcr.microsoft.com/azure-functions/java:4.0-java$JAVA_VERSION-build AS installer-env
COPY . /src/java-function-app
RUN cd /src/java-function-app && \
mkdir -p /home/site/wwwroot && \
mvn clean package -Dmaven.test.skip=true && \
cd ./target/azure-functions/ && \
cd $(ls -d */|head -n 1) && \
cp -a . /home/site/wwwroot
FROM mcr.microsoft.com/azure-functions/java:4.0-java$JAVA_VERSION
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
EXPOSE 80
COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"]
Any log messages given by the failure
This is the error that i received during Build Docker Image step:
Error: Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.21.0:package (package-functions) on project afm-utils: Local Azure Functions Core Tools does not exist or is too old to support function extension installation, skip package phase. To install or update it, see: https://aka.ms/azfunc-install -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The command '/bin/sh -c cd /src/java-function-app && mkdir -p /home/site/wwwroot && mvn clean package -Dmaven.test.skip=true && cd ./target/azure-functions/ && cd $(ls -d */|head -n 1) && cp -a . /home/site/wwwroot' returned a non-zero code: 1
Error: Process completed with exit code [1](https://github.com/pagopa/pagopa-afm-utils/actions/runs/3758664107/jobs/6387273175#step:5:1).
Expected/desired behavior
Deploy the application in the docker container
OS and Version?
Linux (ubuntu-18.04)
Versions
18.04
Mention any other details that might be useful
This is my host.json file
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.*, 4.0.0)"
},
"logging": {
"fileLoggingMode": "always",
"logLevel": {
"default": "Information",
"Host.Results": "Error",
"Function": "Information",
"Host.Aggregator": "Trace"
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": false
}
}
}
}
any suggestion?
Thanks! We'll be in touch soon.
This issue is for a: (mark with an
x)Minimal steps to reproduce
This is my Dockerfile:
Any log messages given by the failure
This is the error that i received during Build Docker Image step:
Expected/desired behavior
Deploy the application in the docker container
OS and Version?
Versions
Mention any other details that might be useful
This is my host.json file
any suggestion?