Comments (7)
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.
Agent mostly works, needs to have the Java home set though, I'll look into it and make a patch
from dockerfiles.
+ 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.
which Jenkinsfile? did you try on your laptop with docker run -it --rm .... -- make compile
?
from dockerfiles.
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.
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 thaneclipsefdn/stack-build-agent
. I guess thateclipsefdn/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 toFROM eclipsecbi/alpine:3.13
(though it does not change anything in this case).
from dockerfiles.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfiles.