mpolinowski / material-ui-gatsby-wiki

A Wiki template using Gatsby.js, Elasticsearch and Material-UI
https://wiki.instar.com
MIT License
7 stars 0 forks source link

How to deploy on netlify? #1

Closed broskees closed 3 years ago

broskees commented 3 years ago

Can I deploy the docker container and the node server for gatsby on netlify?

mpolinowski commented 3 years ago

Hey @broskees,

I have not yet worked with Netlify. But as I understand it, it just offers an API that you can use to upload static content (so gatsby builds)?

https://www.netlify.com/with/gatsby/

To work with this container directly, you will need to ssh into a server and set up Docker there, push your image into a Docker Registry (e.g. Docker Hub) and then pull it from your server (that is what I am using).

But what you might be rather looking for, is a host that runs Kubernetes - Amazon, Google Cloud, Azure.. etc. Push your image into a Docker Registry and pull it into your Kubernetes Cluster and it will just work.

broskees commented 3 years ago

What I ended up doing was replacing elasticsearch with a simpler search system and then deploying to netlify using the process you outlined above. I had never worked with elasticsearch so it was confusing me. I'm sure I could have gotten it to work on netlify but I didn't want to invest the time at this point. Thank you!

On Tue, Jan 12, 2021 at 1:49 AM Mike Polinowski notifications@github.com wrote:

Hey @broskees https://github.com/broskees,

I have not yet worked with Netlify. But as I understand it, it just offers an API that you can use to upload static content (so gatsby builds)?

https://www.netlify.com/with/gatsby/

To work with this container directly, you will need to ssh into a server and set up Docker there, push your image into a Docker Registry (e.g. Docker Hub) and then pull it from your server (that is what I am using).

But what you might be rather looking for, is a host that runs Kubernetes - Amazon, Google Cloud, Azure.. etc. Push your image into a Docker Registry and pull it into your Kubernetes Cluster and it will just work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mpolinowski/material-ui-gatsby-wiki/issues/1#issuecomment-758445626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOOR5EA2MDOQELPD43JUSLSZPWGFANCNFSM4V55YUWQ .

mpolinowski commented 3 years ago

Elasticsearch or the Docker workflow only works if you have Kubernetes or your own server with root ssh login. But if you want to give Elasticsearch a try without having to set it up - check out Algolia. Basically Elasticsearch-as-a-Service.

Their free-tier was just a bit too limiting for my project ~ it might work for yours.