Comments (14)
Can you elaborate more on why fabric8
based on centos?
Instead of using standard openjdk image ubuntu/debian based?
https://hub.docker.com/_/openjdk/
https://github.com/docker-library/openjdk/blob/master/8-jdk/Dockerfile
this will benefits users that are use to extending the image with a layer by extending FROM
and just adding libraries with apt-get
from openwhisk-runtime-java.
Can you elaborate more on why fabric8 based on centos?
IMHO since its a redhat sponsored project we try to make the base image on centos - not sure I know any other reason.
this will benefits users that are use to extending the image with a layer by extending FROM and just adding libraries with apt-get
If the users want to build their won javaction images then let them do it via FROM with their needed libs, what we give as part of OW java8action is this one which is good to run java -jar <your app>
from openwhisk-runtime-java.
I would preferred to base it on a community based image instead
So I propose we use:
https://hub.docker.com/_/openjdk/
https://github.com/docker-library/openjdk/blob/master/8-jre/slim/Dockerfile
What do you think @Param-S ? We should be able to use this image and add any optimizations to the JVM 8 like Class-Cache and such
from openwhisk-runtime-java.
Let's do the image rebase on one PR first. and then build on top of it any other improvements.
from openwhisk-runtime-java.
@csantanapr - the reason for using fabric8 images was that it right now works around with the JDK's inability to leverage cgroups
by computing JVM_OPTS. Its also community based with centos and openjdk. If we wish to use the images said above we need spend time working on with the scripts for JVM Docker optimisation.
I would preferred to base it on a community based image instead
I am totally with you on this. I can remove Main class changes from the commit once we decide on base image to use.
from openwhisk-runtime-java.
@csantanapr One option to look into would be the AdoptOpenJDK project. It is a OpenSource community effort to have a common build and test framework for OpenJDK across multiple platforms and hopefully in the future across distros as well. Docker images are published on a daily basis on DockerHub.
Please note that this is not TCK certified as yet (and hence the banner asking not to be used for production purposes), however TCK certification should only be a few days away now. Since the sources are being picked from the official mercurial repos (for OpenJDK with Hotspot), the feature set should be the same.
Eg cgroup mem limit can be turned on using -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
from openwhisk-runtime-java.
@csantanapr - rebased this commit with only OW Docker base image rebase and squashed all commits to one
from openwhisk-runtime-java.
@dinogun - does this have jdk8 option ?
from openwhisk-runtime-java.
@kameshsampath, yes, it currently supports jdk 8, 9 and 10 builds and the corresponding docker images too.
from openwhisk-runtime-java.
since #24 takes care of moving JDK to openjdk we shall close this PR .
@csantanapr ???
from openwhisk-runtime-java.
I think you have other changes beyond moving to OpenJDK no?
from openwhisk-runtime-java.
yes it does have some auto-classpath settings, some standard directories where the jars are stored and finally the most important one of running as non-root user. I can rebase it once we have #24 merged. WDYT ?
from openwhisk-runtime-java.
@csantanapr https://github.com/kameshsampath/adoptopenjdk check that project that has the AdoptOpenJDK based jdk8/jdk9 images for both centos/debian. Wondering if we can move it under OW github repo
from openwhisk-runtime-java.
I think this is already done by #24
from openwhisk-runtime-java.
Related Issues (20)
- HTTP requests/responses not correctly parsed in expected format in webactions HOT 3
- about custom jre HOT 2
- build openwhisk-runtime-java project error HOT 1
- Some source files miss Apache license headers HOT 1
- Multiple Distros for Java Runtimes HOT 3
- Java action that depends on packages jar file fails HOT 4
- Making Java Function return Future
- [Thought] Using Volumes for java actions HOT 3
- Support Scala Actions
- Add support for Kotlin actions HOT 5
- fix .travis it contains deploy section twice
- Update Travis to stop build earlier HOT 1
- java Actionruntime of jar confilcts HOT 1
- Travis build failure openwhisk-admin-tools dependency not found HOT 1
- add additional Volume to java run time. HOT 4
- Support OpenJDK 11 using new AdoptOpenJDK Docker image HOT 1
- Add support to run on Knative along with OpenWhisk
- Retroactively add openJ9 JDK version bump to changelog
- Look to update adoptopenjdk base image HOT 2
- Upgrade Gradle to min. of v5.0 as recommended for JDK 11 HOT 1
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 openwhisk-runtime-java.