openmeetings / openmeetings-docker

Docker image for OM
Apache License 2.0
110 stars 57 forks source link

Persistence need to be added to this image #3

Closed solomax closed 5 years ago

solomax commented 7 years ago

There are 'Data Volumes' and other strategies. http://www.computerweekly.com/feature/Docker-storage-how-to-get-persistent-storage-in-Docker

(as NOTED in #2)

Maannniii commented 6 years ago

but still if you want to mounted with file system which folders should be binded to maintain persistance?

solomax commented 6 years ago

Following folders need to persist:

  1. MySQL DB: /var/lib/mysql/
  2. User settings and uploaded files: /opt/red5/webapps/openmeetings/upload
  3. Files related to recordings:: /opt/red5/webapps/openmeetings/streams

I guess that's it

Maannniii commented 6 years ago

In my case DB is an external container. Here is my docker file

FROM ubuntu:16.04
ENV work /root/work
ENV OM_HOME /opt/red5
WORKDIR ${work}
COPY ffmpeg.sh ./
RUN chmod a+x *.sh
RUN ./ffmpeg.sh
RUN apt-get update && apt-get install sox -y && apt-get install ghostscript -y && apt-get install libfaac-dev -y && apt-get install imagemagick -y && apt-get install -y --no-install-recommends libav-tools && apt-get install openjdk-8-jre -y && apt-get install libreoffice -y --no-install-recommends && apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*                        
WORKDIR /opt

I'm running by mounting /opt/red5/webapps/openmeetings but still on restart the presistance is lost. I think it's because of the db and other config getting resetted. Any idea how to preserve those as well?

solomax commented 6 years ago

The code above doesn't look like OpenMeetings Docker file I believe you need to debug your Docker and ensure it works

Maannniii commented 6 years ago

@solomax any specific reason for building ffmpeg instead of directly installing from repository?

solomax commented 6 years ago

@Maannniii before 4.0.5 ffmped with fdk_aac support was required, since 4.0.5 "fresh" ffmpeg is required (to support complex filters)

Maannniii commented 6 years ago

@solomax Is there any unauthenticated API provided by Openmeetings to do health check from docker.

solomax commented 6 years ago

@Maannniii you can use /services/info/version

Maannniii commented 6 years ago

@solomax but that API doesn't guarantee that Openmeetings is healthy. For example: If MySQL is down and Open meetings show not initialized but API returns 200.

solomax commented 6 years ago

It will return 200, but initialized field will be false There is no healthy flag/method ATM please create JIRA (https://issues.apache.org/jira/browse/OPENMEETINGS) regarding it

Maannniii commented 5 years ago

@solomax any idea about disabling default Tomcat error pages? Also, I've successfully persisted data and made Mysql as a separate container so that the overall size of Openmeetings container is reduced. Trying to implement in alpine will update once done.

solomax commented 5 years ago

Is this question somehow relates to the Issue topic?

Maannniii commented 5 years ago

@solomax I don't know how to contact you. not sure whether this is an issue or feature. if needed will open a new issue upon ur advice.

solomax commented 5 years ago

You can write to the @user mailing list: https://openmeetings.apache.org/mailing-lists.html

solomax commented 5 years ago

I believe this issue can be closed