readium-lcp-server icon indicating copy to clipboard operation
readium-lcp-server copied to clipboard

Containerization

Open Sibyx opened this issue 1 year ago • 6 comments

Hello,

I am trying out the readium-lcp-server with our document server. It is nice to have a prepared Docker image for the server. I have created a simple Dockerfile to run both the lcp and lsd servers.

Some paths I had to use differ from the README (to make it more convenient in terms of mounting our own configuration, etc.).

Right now, both servers run under supervisord in a single container. I would like to also add targets for each server (so configuration without supervisord).

Let me know if you don't mind changes in some paths in README.md and test/config.yaml - I don't want to introduce redundant files that are just slightly different. Consider this PR as a draft right now. Thanks for the feedback.

Interesting files:

  • compose.yml - contains example configuration
  • Dockerfile - Docker image definition
  • .docker/config.yaml - Default config.yaml used for both lcp and lsd. I would like to merge it with test/config.yaml after some changes

Sibyx avatar Aug 08 '24 14:08 Sibyx

Hello Sibyx Have you seen this branch https://github.com/readium/readium-lcp-server/tree/cd_dev/docker ?
this is our containerisation branch at EDRLab to test and deploy LCP server.

  • https://front-prod.edrlab.org/frontend/
  • https://front-test.edrlab.org/frontend/

It's not production grade, neither documented, but it's works.

panaC avatar Aug 09 '24 14:08 panaC

Hi @panaC,

I noticed the branch (unfortunately, after I created this PR - I already reused some code). I can complete this PR and reuse/document some elements from cd_dev if you're interested. I'm particularly keen on setting up GitHub Actions pipelines and hosting the images on GitHub. My approach to creating the Docker images is slightly different, focusing on read-only, production-ready, Kubernetes-compatible images.

Please let me know if you're interested in finishing this PR, and if you have any specific requirements, feel free to share them with me.

Thanks!

Sibyx avatar Aug 09 '24 15:08 Sibyx

i cannot get it to compile the frontend/manage using npm build any ready made solution ?

agelospanagiotakis avatar Jan 25 '25 11:01 agelospanagiotakis

@agelospanagiotakis can you share the error message / docker build output?

Sibyx avatar Jan 28 '25 19:01 Sibyx

@Sibyx no your solution from your repo works as expected. i was confused and i was not testing your solution.

agelospanagiotakis avatar Jan 28 '25 20:01 agelospanagiotakis

@agelospanagiotakis glad to hear it works. I will try to finish this PR soon

Sibyx avatar Jan 30 '25 09:01 Sibyx