Giter Site home page Giter Site logo

fn-jrestless-example's People

Contributors

bbilger avatar zootalures avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fn-jrestless-example's Issues

Can't build message: `Could not find artifact com.jrestless.fnproject:jrestless-fnproject-core:jar:0.5.2-SNAPSHOT`

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?

Fn build is failed

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

Documentation Partially Outdated

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.