contentajs icon indicating copy to clipboard operation
contentajs copied to clipboard

Create a Docker image that installs Contenta CMS and Contenta JS

Open e0ipso opened this issue 5 years ago • 15 comments

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

e0ipso avatar Jul 22 '18 05:07 e0ipso

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

pcambra avatar Jul 30 '18 05:07 pcambra

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

luksak avatar Oct 04 '18 13:10 luksak

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.

mogtofu33 avatar Oct 18 '18 21:10 mogtofu33

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

pcambra avatar Oct 19 '18 01:10 pcambra

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.

  • https://github.com/Mogtofu33/contenta-d4d

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...

mogtofu33 avatar Oct 19 '18 02:10 mogtofu33

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?

e0ipso avatar Oct 20 '18 21:10 e0ipso

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 avatar Oct 20 '18 23:10 mogtofu33

I updated both stack for last version of contenta_vue_nuxt

  • https://github.com/Mogtofu33/contenta-ddev
  • https://github.com/Mogtofu33/contenta-d4d

But with ddev I have a problem of api request:

  • https://github.com/Mogtofu33/contenta-ddev/issues/1

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

mogtofu33 avatar Oct 24 '18 01:10 mogtofu33

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 avatar Oct 24 '18 22:10 mogtofu33

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.

mogtofu33 avatar Nov 02 '18 01:11 mogtofu33

@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!

e0ipso avatar Nov 02 '18 12:11 e0ipso

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.

mogtofu33 avatar Nov 09 '18 03:11 mogtofu33

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

e0ipso avatar Nov 09 '18 09:11 e0ipso

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?

e0ipso avatar Nov 09 '18 09:11 e0ipso

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

serundeputy avatar Feb 15 '19 12:02 serundeputy