Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize #5

Open
simone-pignotti opened this issue Jan 22, 2020 · 1 comment
Open

Dockerize #5

simone-pignotti opened this issue Jan 22, 2020 · 1 comment

Comments

@simone-pignotti
Copy link

Hi,

After realizing that #4 was probably too ambitious, I attempted to dockerize Kaptive-Web so that it can easily be run locally or on a headless server. The implementation at https://github.com/simone-pignotti/Kaptive-Web is very basic but works fine, apart from one detail: I get this error from the png trim command.

convert-im6.q16: geometry does not contain image `/web2py/applications/kaptive/uploads/8e977f9a-f3f8-459e-9c05-abba71d53637/locus_image/test.png' @ warning/attribute.c/GetImageBoundingBox/247.

The png is not loaded in the web interface (I have also tried to comment the trim command, but it can't even load the original png which should have the same filename). I have also tried adding +repage after -trim as suggested in the imagemagick's docs, without success. Finally, I have tried to use the python2.7-buster base docker image (which comes with imagemagick installed) to check if it was a dependency issue, but that doesn't work either.
Let me know if you have already encountered this issue and know how to solve it. If it wasn't for this, I'd say the non-production docker image is ready! If you are interested in providing this convenient installation method to end users, I can create a pull request as soon as this issue has been solved.

Thanks
Simone

@simone-pignotti
Copy link
Author

Other TODOs:

  • get web2py admin password from environment variable
  • find way to access web2py's admin interface (docker host is not recognized as local, currently need to use ssh port forwarding)
  • create data volume for storing kaptive's data instead of copying git repo to the main container filesystem

Also, feel free to close the issue if this doesn't fit your roadmap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant