GithubHelp home page GithubHelp logo

Comments (7)

autumnfound avatar autumnfound commented on June 19, 2024

Should I take a crack at this? I can base it off of the hugo-node image and add the extra bits that we need to make this run. I don't forsee us compiling native images in the near future so we shouldn't need GraalVM as the Java package.

from dockerfiles.

autumnfound avatar autumnfound commented on June 19, 2024

Agent mostly works, needs to have the Java home set though, I'll look into it and make a patch

from dockerfiles.

autumnfound avatar autumnfound commented on June 19, 2024
+ make compile
mvn clean
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
make: *** [Makefile:8: clean] Error 1

I get this message when running my make compile command. Could it be that the Jenkins provided tool Java points to a JRE, and is overriding my local JAVA_HOME? Pretty sure everything was set correctly 🤔

from dockerfiles.

mbarbero avatar mbarbero commented on June 19, 2024

which Jenkinsfile? did you try on your laptop with docker run -it --rm .... -- make compile?

from dockerfiles.

autumnfound avatar autumnfound commented on June 19, 2024

I'm trying this with the react-eclipsefdn-membership jenkinsfile. I tried it just now, as I didn't think of doing that before...ugh.

❯ docker run -it --rm eclipsefdn/stack-agent-test:latest /bin/sh `make compile`
mariadb uses an image, skipping
postgres uses an image, skipping
keycloak uses an image, skipping
nginx-proxy uses an image, skipping
Building www
Building api
/bin/sh: can't open 'mvn': No such file or directory

Getting a different error though.

from dockerfiles.

mbarbero avatar mbarbero commented on June 19, 2024

I manage to reproduce locally. Current folder is a fresh clone of https://github.com/EclipseFdn/react-eclipsefdn-members/:

docker run -it --rm  -v "$(pwd):/home/jenkins" -e HOME=/home/jenkins -w /home/jenkins  eclipsefdn/stack-build-agent:latest /bin/sh -c "make compile"
mvn clean
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------< org.eclipsefoundation:react-container >----------------
[INFO] Building react-container 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
....

2 things:

  • in #5 (comment), you seem to use eclipsefdn/stack-agent-test rather than eclipsefdn/stack-build-agent. I guess that eclipsefdn/stack-agent-test is a stale image you built locally for testing and that it does not contain maven.
  • Also, for better compatibility with running on the build cluster, it is advised to change the FROM alpine:3.13 of your Dockerfile to FROM eclipsecbi/alpine:3.13 (though it does not change anything in this case).

from dockerfiles.

autumnfound avatar autumnfound commented on June 19, 2024

We've done a successful build now, so I think we can close this! Thanks for your assistance in getting this going, its much appreciated!!

from dockerfiles.

Related Issues (3)

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.