osoc21 / technical-support

Technical Support
0 stars 1 forks source link

Deployment - Dedicated server & Domain name for the Road Base project #11

Closed jodiDL closed 3 years ago

jodiDL commented 3 years ago

For the roadbase project deployment we would like a dedicated server and domain name.

Server: Since we are unable to use the digital ocean App Platform due to the complexity of our application, a basic Ubuntu droplet (5USD/month) would be the best way to go.

Domain name: If possible: roadbase.osoc.be for the frontend. roadbase-api.osoc.be for the API.

jbelien commented 3 years ago

Since we are unable to use the digital ocean App Platform due to the complexity of our application

Could you please investigate "Dockerization" of your API ?

roadbase.osoc.be for the frontend.

What technology is used for your frontend ? Can it be statically built ?

jbelien commented 3 years ago

Sub domain names are of course not an issue.

jodiDL commented 3 years ago

Since we are unable to use the digital ocean App Platform due to the complexity of our application

Could you please investigate "Dockerization" of your API ?

roadbase.osoc.be for the frontend.

What technology is used for your frontend ? Can it be statically built ?

All of our services are indeed dockerized, but if I understand correctly the App Platform is used for the deployment of 1 docker image, while we have multiple containers (probably even a few more to come) to deploy using docker compose..

I do think the frontend in Ember can be statically build, but since we need multiple containers anyway I think it would make more sense to deploy everything on a droplet using Nginx.

We would also need to load the SPARQL data from an lblod repo on deployment, which I don't think is possible using the app platform :)

jbelien commented 3 years ago

All of our services are indeed dockerized, but if I understand correctly the App Platform is used for the deployment of 1 docker image, while we have multiple containers (probably even a few more to come) to deploy using docker compose..

Digital Ocean App Platform can deploy several Dockerfiles, that part is not an issue.

I do think the frontend in Ember can be statically build, but since we need multiple containers anyway I think it would make more sense to deploy everything on a droplet using Nginx.

If you have a Dockerfile for the frontent that should work.

We would also need to load the SPARQL data from an lblod repo on deployment, which I don't think is possible using the app platform :)

You can put that process in your Dockerfile.

So, I'll reiterate my request : could you please investigate creating Dockerfiles for your components ?

jodiDL commented 3 years ago

We have dockerfiles :)

I just fear we might get ourselves stuck in the long run if we use the App platform, so I would prefer a droplet because we have much more freedom with that. I have experience in deploying to digital ocean droplets and setting up the automatic deploys, so no issue there.

jbelien commented 3 years ago

Okay for a droplet but, before deploying it, I'll need a full documentation (INSTALL.md file for instance) with all the setup steps.

jodiDL commented 3 years ago

Setup steps for deploying the droplet like creating the users or what exactly would you need?

jbelien commented 3 years ago

When your client will want to deploy everything itself, it must not have to contact you (or if the droplet needs to be setup again after a crash). You need to provide an how-to with all the steps to follow so everything is working properly.

(unrelated to where the droplet is started, just the steps once you're connected to the server)

jodiDL commented 3 years ago

I will indeed document every step! That might also be very interesting for anyone else to follow (including myself ;) )

jodiDL commented 3 years ago

@jbelien Do you need these steps before setting up the server? I would document this while doing the deployment :)

jbelien commented 3 years ago

I indeed need these steps before creating the droplet ! It can of course be improved while deploying if there are information missing.

jodiDL commented 3 years ago

@jbelien https://github.com/osoc21/RoadBase/blob/master/misc/deployment/README.md

More documentation to be added while deploying, but we would realy need the droplet now :)

jbelien commented 3 years ago

@jodiDL Send me your public SSH key on Discord!

jbelien commented 3 years ago

🚀

jbelien commented 3 years ago

@jodiDL Your SSH key is now added !