Finally had some time to give this a try again.
Built my own docker image base on mhzawadi/invoiceplane, but with the files from my “public_html” web version that is currently running. Docker compose with mariaDB and PHPmyadmin and I imported the database from the web version, and everything seems to run fine until I try to generate a PDF, I get a web page with the quotes lines for articles but then these PHP errors:
My dockerfile copies over all the files from my web instance, but the apparently the assigned volume directories get locked so it wasn’t copying over those files, which includes the PDF template stuff.
I hadn’t realised I was actually running version 1.6.2, so I’ll try to update while I’m at it. Thanks!
FROM mhzawadi/invoiceplane:latest
COPY public_html/ /var/www/html/
RUN chmod -R 777 /var/www/html/application/logs/
The volume directories in the original image must have different permissions as this COPY command wasn’t copying the files in those directories.
I did have the volumes mapped to the same directory I was trying to copy over but that didn’t seem to work either, so I commented out the volumes, rebuilt the image and it worked.
Then docker compose I made runs this along along with MariaDB and phpMyAdmin so I can restore the database too.
Just keep in mind that he keeps maintaining that image.
He maintains that image really nicely.
And yes, i would make it work with those extra volumes (the uploads directory and i think some other volumes as well).
Handling volumes after the files have been copied is a nightmare. if you succeed, i would still make a volume towards application/views/ since that’s where the templates for quotes and invoices live.
Yes, you are right of course. But I wanted a local running backup of my current web instance. I think I might setup a new clean install when the next release comes out. Thanks again for all the help!