Hey Vinay,

You can use our documentation (this article, "Hello World! for Custom 
Runtimes 
<https://cloud.google.com/appengine/docs/flexible/custom-runtimes/quickstart>", 
shows an example Dockerfile) and the docs.docker.com Dockerfile reference 
<https://docs.docker.com/engine/reference/builder/> itself to get a sense 
for how it works, although I can say this to sum them up: you're basically 
going to need to use "RUN 
<https://docs.docker.com/engine/reference/builder/#/run>" to run various 
commands that will download, install, and configure a JDK of your choice 
(OpenJDK, Oracle, etc.) on the system. 

I hope this is helpful. As always feel free to ask any follow-up questions!

Cheers,

Nick
Cloud Platform Community Support

On Friday, October 28, 2016 at 11:07:37 PM UTC-4, Vinay Chitlangia wrote:
>
> Thanks Nick.
> Do you have example of how when can write such a dockerfile.
> I am particularly curious about how to install the java jdk in a manner 
> that is compatible with java-compat runtime build.
> I am using appengine flexible and need a dockerfile that is compatible 
> with appengine runtime and at the same time adds in java sdk.
>
> On Fri, Oct 28, 2016 at 9:30 PM, 'Nick (Cloud Platform Support)' via 
> Google App Engine <[email protected]> wrote:
>
>> Hey Vinay,
>>
>> You can use the Dockerfile 
>> <https://docs.docker.com/engine/reference/builder/> of a Custom Runtime 
>> <https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build> 
>> based on a default image to install and configure javac on the system. This 
>> would then enable you to run dynamic compilation.
>>
>> Let me know if you have any further questions, I'm here to help.
>>
>> Cheers!
>>
>> Nick
>> Cloud Platform Community Support
>>
>> On Tuesday, October 25, 2016 at 11:41:00 PM UTC-4, Vinay Chitlangia wrote:
>>>
>>> How can we do dynamic compilation of Java in the appengine flexible 
>>> environment.
>>>
>>> ToolProvider.getSystemJavaCompiler() returns null in the flexible runtime.
>>>
>>> Is there some other docker image I can use that has the jdk instead of just 
>>> jre?
>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/AXrpk-I9Bbw/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/92ff045e-d53f-4293-8b91-1d96fd4247f0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/92ff045e-d53f-4293-8b91-1d96fd4247f0%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0b4c4982-f4f6-479c-93ce-57d1b76f4408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to