osoc21 / technical-support

Technical Support
0 stars 1 forks source link

Hosting infrastructure - VLIZ-Parser/FISH #1

Closed Denperidge closed 3 years ago

Denperidge commented 3 years ago

Is your request related to a problem? Please describe. For this project, we're developing an API that has to parse citation strings. It has to run on Docker, for the rest nothing else is specified (at least relevant to hosting).

Describe the solution you'd like Obviously, we'd like to use a free hosting service, so that the API can live a long and healthy life without upkeep costs. After asking in the Discord, I got redirected here to ask about hosting, so here I am!

Describe alternatives you've considered I found a few services that allow for free tiers

Additional context If there's any advice you can give, whether it be what service to use, how to go about it, or what we have to do, please let me know!

jbelien commented 3 years ago

It has to run on Docker

Is it a requirement from the client ?

Obviously, we'd like to use a free hosting service, so that the API can live a long and healthy life without upkeep costs.

No worries about the price, Open Knowledge Belgium offers hosting for a year (before being handed over to the client).

If there's any advice you can give, whether it be what service to use, how to go about it, or what we have to do, please let me know!

Open Knowledge Belgium uses Digital Ocean. Once your Dockerfile is available in your repository, ping me (in this issue) and I'll setup an automated deployment for it using Digital Ocean App Platform.

Denperidge commented 3 years ago

Is it a requirement from the client ?

Indeed!

No worries about the price, Open Knowledge Belgium offers hosting for a year (before being handed over to the client).

Oh that's nice to hear, thanks!

Open Knowledge Belgium uses Digital Ocean. Once your Dockerfile is available in your repository, ping me (in this issue) and I'll setup an automated deployment for it using Digital Ocean App Platform.

Oh nice, love DigitalOcean! @jbelien Here we are, Dockerfile should hopefully be functional!

jbelien commented 3 years ago

Awesome!

I guess it builds and runs. Could you add a GitHub Actions workflow (see docker-image.yml) to check that the container builds correctly ? That will also give you the ability to know if there is something wrong with your Dockerfile.

It's a bit early to deploy (and hackathon result is not planned to be deployed). Ping me again (here) next week when you have a "first" version working and ready to be deployed.

Denperidge commented 3 years ago

Hello there! The API should be functional at the moment. I'm sure we're gonna get some weird issues while transferring towards DO, but with a bit of luck we should be okay! @jbelien (Oh, and port 5000 has to be reachable if possible!)

jbelien commented 3 years ago

Awesome, I'll take care of the deployment ASAP.

(Oh, and port 5000 has to be reachable if possible!)

Is there any reason to use the 5000 port instead of a more conventional port ?

Denperidge commented 3 years ago

Thankyou!

Is there any reason to use the 5000 port instead of a more conventional port ?

Currently using 5000 for local testing as well, so mostly for consistency at the moment. When headed towards production a switch to a regular port would indeed be ideal!

jbelien commented 3 years ago

Digital Ocean App Platform configuration:

name: final-improved-string-pharser
region: ams
services:
- dockerfile_path: Dockerfile
  github:
    branch: master
    repo: osoc21/Final-Improved-String-pHarser
  http_port: 5000
  instance_count: 1
  instance_size_slug: basic-xxs
  name: final-improved-string-pharser
  routes:
  - path: /
  source_dir: /

Build/Deployment is on its way. I'll keep you updated.

jbelien commented 3 years ago

🚀 https://final-improved-string-pharser-xxiga.ondigitalocean.app/

Could you check if everything is working ? If so, I'll enable "Autodeploy code changes".

Does it contain all of your app (frontend + backend) ?

Denperidge commented 3 years ago

It should contain everything! However, while the front-end works, the back-end had some issues. Can you try to redeploy? osoc21/Final-Improved-String-pHarser@1ec0460 should have fixed the problem

jbelien commented 3 years ago

It has been re-deployed and "Autodeploy code changes" has been enabled.

jbelien commented 3 years ago

🚀 https://fish.osoc.be/

jbelien commented 3 years ago

Updated Digital Ocean App Platform configuration:

domains:
- domain: fish.osoc.be
  type: PRIMARY
  zone: osoc.be
name: final-improved-string-pharser
region: ams
services:
- dockerfile_path: Dockerfile
  github:
    branch: master
    deploy_on_push: true
    repo: osoc21/Final-Improved-String-pHarser
  http_port: 5000
  instance_count: 1
  instance_size_slug: basic-xxs
  name: final-improved-string-pharser
  routes:
  - path: /
  source_dir: /
Denperidge commented 3 years ago

It works perfectly, thank you!

jbelien commented 3 years ago

Awesome work @osoc21/citation-needed ! Congratulations !