apioo / fusio

Open source API management platform
https://www.fusio-project.org
Apache License 2.0
1.85k stars 221 forks source link

Using Fusio on Google Cloud Platform #180

Open LaserStony opened 6 years ago

LaserStony commented 6 years ago

I was thinking of using Fusio with google Cloud Platform. Can you plz tell me How I can upload A Fusio Installment to Google Cloud App Engine and use a Google Cloud SQL as Database on it.. and also installing Javascript-V8 on it? Thanx!!

chriskapp commented 6 years ago

Hi, I think through the gcloud tool it should be possible to upload files to the GCP. In your connections you then only need to specify the correct google cloud SQL database (its important that this is a Mysql and not PostgreSQL database). As alternative you could also try to use our Fusio docker image (https://hub.docker.com/r/fusio/fusio/) this contains currently not the latest version but I will update it.

LaserStony commented 6 years ago

@chriskapp Please do it ASAP. Also, is it Possible to Install V8 on Google Cloud App Engine through Docker as Well?

chriskapp commented 6 years ago

@LaserStony FYI I have tagged the 1.3.0 docker image which you can use at GCP. Regarding the V8 engine previous versions of the docker image contained the V8 PHP extension but unfortunately the developer has abandoned the project so we have remove it also from the docker image. You can still use it but we may search for an alternative implementation.

LaserStony commented 6 years ago

hmmm... Not having V8 is going to be troubling as to now we Might have to create un-necessary Files for performing simple tasks... sigh*... still, thanks for the Docker Image... Much Appreciated...

chriskapp commented 6 years ago

Ok, instead of V8 you can also use now the PHP-Sandbox action where you can write simple PHP code through the web interface, basically it is the same as V8 only that you need to write PHP instead of Javascript.

LaserStony commented 6 years ago

ooo... @chriskapp Does it Require any installation?

chriskapp commented 6 years ago

no it comes with the default installation, so you can use it out of the box. It looks basically like:

action_php_sandbox

LaserStony commented 6 years ago

Ooo... It's Exactly What I was looking for. It will be a bit weirder to use PHP instead of JS but, this is Highly scale-able... No Installation, Sounds Just Perfect. Thanks a-lot... !!!

chriskapp commented 6 years ago

Regarding the JS topic I have created the issue #181 where we can discuss the future of the V8 action. If there is enough demand I maybe find an alternative solution but for now I think the PHP-Sandbox action works great.