contentacms / contentajs

A nodejs server that proxies to Contenta CMS and holds custom code.
MIT License
102 stars 25 forks source link

Create a Docker image that installs Contenta CMS and Contenta JS #15

Open e0ipso opened 6 years ago

e0ipso commented 6 years ago

Ideally we want a Docker image that is easy to use to get a local installation of Contenta CMS and Contenta JS up and running quickly.

I think we may want to explore the possibility to base our project on https://github.com/drud/ddev

pcambra commented 6 years ago

Related https://github.com/contentacms/contenta_docker

luksak commented 6 years ago

Oh, that would be really nice! Maybe one that is also usable for production?

mogtofu33 commented 6 years ago

Looking for the same feature I started a repo for this:

Code base is not included, ddev provide only infrastructure, it's possible to build an image with ContentCMS and ContentaJS included but I am not sure this is a good idea.

Appreciate any test/feedback on this.

pcambra commented 6 years ago

Wow that's looking fantastic @Mogtofu33, maybe @e0ipso should consider making that one the main contentajs repo :)

mogtofu33 commented 6 years ago

I have an other more simple version with docker4drupal. It's pretty close except docker4drupal require to be (a bit) more comfortable with docker-compose.

There is an ongoing request with Lando

The docker hype bring a lot of projects for this, to be pragmatic I would say either go with the more starred project or keep things as close as possible to docker-compose.

Currently Portainer seems in good shape and support stack templates. Didn't try yet.

Lando is great but I prefer something closer to docker-compose so you don't have to learn how to use a tool that can disappear...

e0ipso commented 6 years ago

Wow! @Mogtofu33 that is amazing.

I am collaborating with to get contenta_vue_nuxt ready for Contenta JS. Maybe we can try to maye that the default for https://github.com/Mogtofu33/contenta-ddev?

mogtofu33 commented 6 years ago

Added the contenta_vue_nuxt but currently it can connect with the Drupal api but ContentaJS api failed, can not figure out why for now...

mogtofu33 commented 6 years ago

I updated both stack for last version of contenta_vue_nuxt

But with ddev I have a problem of api request:

With the docker4drupal version it works, only the images failed.

mogtofu33 commented 6 years ago

Add a fix for CORS issues with ddev in the documentation, so the stack is working. Only problem to resolve now is ContentaJS urls (entrypoint use drupal urls instead of self) and for the frontend images base url (images loaded from the front itself instead of Drupal).

mogtofu33 commented 6 years ago

Project updated, ContentaCMS + ContentaJS + Vue works fine. Added a simple install.sh script for Debian/Ubuntu to automate installation. When this PR images loading on Vue will be fixed.

e0ipso commented 6 years ago

@Mogtofu33 I'd like to make you a maintainer for this, if you are up to it. Are you in IRC or Drupal Slack to talk about it?

Thanks for your awesome work!

mogtofu33 commented 6 years ago

Hi @e0ipso,

We can probably discuss mostly on #drupal-contribute. I have some time now because of a project but not sure for later maintenance.

I added a redis to connect with ContentaJS but it seems nothing is created on redis, need to investigate.

e0ipso commented 6 years ago

@Mogtofu33 it's OK if you don't have enough energy for it at the moment.

e0ipso commented 6 years ago

I added a redis to connect with ContentaJS but it seems nothing is created on redis, need to investigate.

I'm assuming you tried https://github.com/contentacms/contentajsRedis?

serundeputy commented 5 years ago

fwiw i've a simple stack running on Lando for the Contenta CMS part the docker image is just Lando's default drupal8 recipe. https://github.com/contentacms/contenta_jsonapi/issues/233#issuecomment-464039647