Menu

#445 Docker image build

5.1.0
closed
docker (1)
feature-request
2022-01-20
2019-07-24
No

Could you please build a docker image for your nice app?

Discussion

  • Jan-Benedict Glaw

    Just as a hint, I started to build me a small Docker container for running SeedDMS. However, I intended it to not run standalone, but it's just a minimal "php:apache" container with some stuff added (apt-get -y install zlib1g-dev imagemagick libpng-dev poppler-utils catdoc libpq-dev id3; docker-php-ext-install gd pdo pdo_pgsql) and a bit of config:

        echo "post_max_size = 0"                >  /usr/local/etc/php/conf.d/seeddms.ini                && \
        echo "upload_max_filesize = 10000M"     >> /usr/local/etc/php/conf.d/seeddms.ini                && \
        echo "log_errors = On"                  >> /usr/local/etc/php/conf.d/seeddms.ini                && \
        echo "error_log = /dev/stderr"          >> /usr/local/etc/php/conf.d/seeddms.ini                && \
    

    All data is kept externally:

    exec docker run \
    -it \
    ${ARGS} \
    --volume pwd/seeddms_html:/var/www/html \
    --volume pwd/seeddms_data:/var/www/html/seeddms/data \
    --publish 8080:80 \
    seeddms

    SeedDMS is extracted to the ./seeddms_html directory, it's config file modified to use the host's PostgreSQL database and all documents are also in a separate docker mount as seen above.

    This should separate SeedDMS, the Apache/PHP setup, and the actual data.

     
  • Uwe Steinmann

    Uwe Steinmann - 2021-12-10
    • status: open --> closed
     
  • Uwe Steinmann

    Uwe Steinmann - 2021-12-10

    There is finaly a docker image at docker hub. Search for usteinm/seeddms

     
  • Jan-Benedict Glaw

    Thanks a lot for this! I just started to explore this :)

    Is your Dockerfile somewhere around? Or the Docker hub documentation? I'd drop a few patches to make everybody's start a bit smoother. Ie. I noticed that for example the volume pathes for the latest image seem to be wrong (container: /home/www-data/seeddms60x/data, but docs say to mount to /var/lib/seeddms/data).

     
  • Jan-Benedict Glaw

    Oh and should modifying the "Http Root" allow me to call the SeedDMS docker from a Nginx proxy? That'd be quite helpful to place SeedDMS to eg. /seeddms/ to have a simple rule there...

     
  • Jan-Benedict Glaw

    Calling it without a proxy and only the first-step minimal configuration, it "crashes" with this:

    <b>Fatal error</b>:  Uncaught Error: Call to a member function getId() on bool in /home/www-data/seeddms60x/seeddms-6.0.17/views/bootstrap/class.Bootstrap.php:297
    Stack trace:
    #0 /home/www-data/seeddms60x/seeddms-6.0.17/views/bootstrap/class.Login.php(99): SeedDMS_Theme_Style-&gt;globalBanner()
    #1 /home/www-data/seeddms60x/seeddms-6.0.17/inc/inc.ClassViewCommon.php(57): SeedDMS_View_Login-&gt;show()
    #2 /home/www-data/seeddms60x/seeddms-6.0.17/out/out.Login.php(63): SeedDMS_View_Common-&gt;__invoke(Array)
    #3 {main}
      thrown in <b>/home/www-data/seeddms60x/seeddms-6.0.17/views/bootstrap/class.Bootstrap.php</b> on line <b>297</b>
    

    on the URL http://gw:8991/out/out.Login.php?referuri=%2Fout%2Fout.ViewFolder.php

    Any hints?

     

Log in to post a comment.

MongoDB Logo MongoDB