Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine: Load another Docker Image for Scrapy + Splash

I'd like to scrape a javascript website using Scrapy + Splash in Google App Engine. The Splash plugin is a Docker image. Is there any way to use this within Google App Engine? App Engine itself uses a Docker image, but I'm not sure how to load and access a secondary image (which is how Splash is used). Here are the Splash install instructions

like image 877
bgolson Avatar asked Nov 07 '22 12:11

bgolson


1 Answers

You can use Custom Runtimes in the App Engine Flexible Environment.

Custom runtimes let you build apps that run in an environment defined by a Dockerfile. By using a Dockerfile, you can use languages and packages that are not part of the Google Cloud Platform and use the same resources and tooling that are used in the App Engine flexible environment.

Explore more About Custom Runtimes. Please note when you use a custom runtime, you have to write your application code to deal with some flexible environment life-cycle and health checking requests. Check how to build a custom runtime for more information.

like image 81
MR.K Avatar answered Nov 13 '22 23:11

MR.K