Docker support - Google App Engine (Java) - java

I recently learned about Docker and from a press release that Google App Engine supports it.
The question is,
Does it mean that we can now "package" our app using Docker (may it contain non-GAE white-listed jars) and expect it to work with Google App Engine?
How a docker app can access the Datastore API, the TaskQueue API is there a way, or this question is irrelevant?
If I package with Docker, say, a Spring app that access MongoDB, MySQL or whatever would it work GAE, if yes how come?
Or otherwise if this idea is not correct,
What is the integration of Docker and Google App Engine?

This is part of an ongoing Limited Preview Managed VMs, you can subscribe to it with the following form
Does it mean that we can now "package" our app using Docker (may it contain non-GAE white-listed jars) and expect it to work with Google App Engine?
Yes
How a docker app can access the Datastore API, the TaskQueue API is there a way, or this question is irrelevant?
Using the regular API jars.
If I package with Docker, say, a Spring app that access MongoDB, MySQL or whatever would it work GAE, if yes how come?
Because the underlying container run on a Google Compute Engine VMs, see the Managed VMs documentation referenced earlier for more details.

Related

Deploying non web applications in GCP

Is there a way I can make my java application (non web) running in google cloud platform. I can see that Cloud run, App engine and Cloud functions works for Web applications. My application is a Java application that runs a report using Google Ad manager API. Can I run this app in any of the GCP tools ?
Cloud Run is predominantly used for stateless operations (similar to Firebase Functions or AWS Lambda). Ie. a request is sent to the instance, which spins up resources, completes the task then shuts down. It is great for API endpoints that don't store anything in memory.
Another thing to note is that both app engine and cloud run are designed to work with dockerized applications.
From your description, it sounds like you should be using a Compute Engine Instance (A virtual computer). You can clone your git repository into the VM and run it manually. There are also GCP tools that will allow you to run the java executable on a timer.
Compute Engine Instances give you the most flexibility to configure the service you're building to your needs.
See docs for Compute Engine Here

How to deploy and host prebuilt Stripe checkout backend java code

I have recently tried to create my first E-Commerce site. Its is made with React on the frontend, and then I implemented a stripe pre-built checkout page to handle payments using java, following this guide: https://stripe.com/docs/checkout/integration-builder
I am trying to deploy the application to firebase to host it, I can deploy the React very easily, however I do not know how to deploy the Java, or if I even can on firebase.
Any help would be appreciated on how to deploy it.
Unfortunately Firebase currently does not support Java:
Cloud Functions current supports the Node.js 8 JavaScript Runtime, and the Node.js 10 Engine is in beta. You can choose a Node version it from your package.json. You can also choose to write your functions in TypeScript, using either Node.js version. The Python 3.7 runtime and Go 1.11 runtime is also avalible, but is currently only accessible from the Google Cloud Console.

Actions On Google Deployment using webhook

I am using Java Client Library to use google Dialogflow. My questions is what happens when we use "appEnginedeploy" using gradle? Where is the code stored and more importantly how the implemented database and other files of code stored and accessed by our agent?
Thanks!
appEngineDeploy is setup to deploy the code to App Engine, a computing platform on Google Cloud. Code and associated project files are stored as they are in your project.
It's not entirely a VM, so you shouldn't necessarily think of App Engine as locating filepaths. If the project can make the links locally, then it should behave the same way in App Engine.
With regards to databases, it would depend if you're using an embedded database or using a hosted solution through another Google Cloud service. Presumably you'd use the database APIs for a Cloud service as shown in the documentation.

Custom Domain for Google AppEngine Apps

I have been fooling around with Google App engine for few days, the question I wanted to ask was,
If i want to deploy the web app to custom domain does the server need to be hosted on Windows Server???
No, you do not need a Windows server. You just need to sign-up for Google Apps, then add the application to the domain. If this is all you are using Google Apps for, then the free version will be fine.
I think you might have some misunderstandings about App Engine. With App Engine, your applications run on Google's servers, not yours.
Also, the I believe servers are Linux, not Windows.
If you are wanting to run your own servers 'using' App Engine Java check out AppScale.

ByPassing Google App Engine SDK to allow black listed classes

Is there a way to circumbent google app engine sdk to allow the usage of classes that are not present in the GAE JRE white list? I know the app that I would be building will not run in appspot, but at least in my development server, I need to access a postgresql database(java.net.socket.*) and generate some files(java.io.FileWriter) in my development server.
Run your code in another servlet container, such as jetty.

Categories