fnproject / fn-jrestless-example Goto Github PK
View Code? Open in Web Editor NEWRun JAX-RS applications on Fn using JRestless
Run JAX-RS applications on Fn using JRestless
I get a 404 when clicking on the link for the hot functions documentation.
Building fails with:
[ERROR] Failed to execute goal on project blogging-example: Could not resolve dependencies for project com.fnproject.fn:blogging-example:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: com.jrestless.fnproject:jrestless-fnproject-core:jar:0.5.2-SNAPSHOT, com.jrestless.core:jrestless-core-container:jar:0.5.2-SNAPSHOT: Could not find artifact com.jrestless.fnproject:jrestless-fnproject-core:jar:0.5.2-SNAPSHOT -> [Help 1]
What am I missing?
Is there anything to solve it? Here is build log.
$ fn build --verbose
Building image raej/jrest:0.0.2
FN_REGISTRY: fndemouser
Current Context: default
Sending build context to Docker daemon 335.9kB
Step 1/11 : FROM fnproject/fn-java-fdk-build:1.0.145 as build-stage
---> cab4e59d6fb5
Step 2/11 : WORKDIR /function
---> Using cache
---> 8b8076f98e38
Step 3/11 : ENV MAVEN_OPTS -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyHost= -Dhttps.proxyPort= -Dhttp.nonProxyHosts= -Dmaven.repo.local=/usr/share/maven/ref/repository
---> Using cache
---> 46f6c43e6f1c
Step 4/11 : ADD pom.xml /function/pom.xml
---> Using cache
---> 00e12a0225f1
Step 5/11 : RUN ["mvn", "package", "dependency:copy-dependencies", "-DincludeScope=runtime", "-DskipTests=true", "-Dmdep.prependGroupId=true", "-DoutputDirectory=target", "--fail-never"]
---> Using cache
---> e438e5b0d653
Step 6/11 : ADD src /function/src
---> Using cache
---> 3139b55beabc
Step 7/11 : RUN ["mvn", "package"]
---> Running in 5031d674c074
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< com.fnproject.fn:blogging-example >------------------
[INFO] Building blogging-example 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from fn-release-repo: https://dl.bintray.com/fnproject/fnproject/com/jrestless/fnproject/jrestless-fnproject-core/0.6.0/jrestless-fnproject-core-0.6.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.311 s
[INFO] Finished at: 2022-01-31T13:11:48Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project blogging-example: Could not resolve dependencies for project com.fnproject.fn:blogging-example:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.jrestless.fnproject:jrestless-fnproject-core:jar:0.6.0: Failed to read artifact descriptor for com.jrestless.fnproject:jrestless-fnproject-core:jar:0.6.0: Could not transfer artifact com.jrestless.fnproject:jrestless-fnproject-core:pom:0.6.0 from/to fn-release-repo (https://dl.bintray.com/fnproject/fnproject): transfer failed for https://dl.bintray.com/fnproject/fnproject/com/jrestless/fnproject/jrestless-fnproject-core/0.6.0/jrestless-fnproject-core-0.6.0.pom, status: 502 Bad Gateway -> [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/DependencyResolutionException
The command 'mvn package' returned a non-zero code: 1
Fn: error running docker build: exit status 1
See 'fn <command> --help' for more information. Client version: 0.6.9
Hi,
Since I neither have much experience in docker nor in fn project this comes as an issue instead of a PR...
I think instead of $ export DOCKER_HOST_IP=$(docker inspect --type container -f '{{.NetworkSettings.Gateway}}' functions)
it should be $ export DOCKER_HOST_IP=$(docker inspect --type container -f '{{.NetworkSettings.Gateway}}' mysql-jaxrs)
(functions -> mysql-jaxrs)
This didn't work for me either:
fn routes create jaxrs /route/html
fn routes create jaxrs /route/blogs
=> ERROR: no image specified
The following worked for me but I have some doubts
fn routes create jaxrs /route/html --image raej/jrest:0.0.4
fn routes create jaxrs /route/blogs --image raej/jrest:0.0.4
I assume 0.0.4
is the version or rather the tag because without it I get ERROR: image name must have a tag
.
Since the version is bumped on each build it might probably be easier to just define the two paths in func.yaml
, too?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.