amusewiki icon indicating copy to clipboard operation
amusewiki copied to clipboard

Add Dockerfile

Open link2xt opened this issue 5 years ago • 15 comments

This should help with #164. It is easier than providing packages for all distributions.

I have not used Docker myself, but going to try it after finishing Carton support (#253).

Then we can simplify installation instructions and leave three options:

  1. Manual installation: as portable as possible, suitable for all *nix-based operating systems.
  2. Docker: Linux only
  3. Debian packages: Debian and Debian-based distributions

IMO it is better than current state where we have outdated (referencing TeX Live 2015 and 2017) FreeBSD- and CentOS-specific installation instructions.

link2xt avatar Dec 07 '18 02:12 link2xt

@link2xt Yes, that's for sure a very nice initiative even if I'm not a fan of such container and I'm glad you're taking action on this.

melmothx avatar Dec 07 '18 08:12 melmothx

I can help out here if needed with Docker knowhow.

racke avatar Dec 07 '18 08:12 racke

https://github.com/metacpan/metacpan-api has an example of Dockerfile for Catalyst web application

link2xt avatar Dec 07 '18 12:12 link2xt

Example of building base image with dependencies installed by Carton: https://docs.docker.com/samples/library/perl/#example-creating-a-reusable-carton-image-for-perl-projects

link2xt avatar Dec 20 '18 22:12 link2xt

Don't know if it could be useful but i made something for just using amusewiki tools https://github.com/yodatak/amusewikitooling-docker

yodatak avatar Feb 17 '19 02:02 yodatak

@yodatak that would the quick and straightforward approach, right, to build the image.

I think the problem is how to mount the repositories, databases, webserver configuration for persistence of important data.

melmothx avatar Feb 17 '19 07:02 melmothx

Working on this Docker thing.

melmothx avatar Mar 21 '19 08:03 melmothx

I change my https://github.com/yodatak/amusewikitooling-docker and try to use alpine but i got some fonts issue LaTeX Font Warning: Some font shapes were not available, defaults substituted.

muse-compile.pl ok.muse

yodatak avatar Jan 13 '20 22:01 yodatak

yodatak [email protected] writes:

I change my https://github.com/yodatak/amusewikitooling-docker and try to use alpine but i got some fonts issue LaTeX Font Warning: Some font shapes were not available, defaults substituted.

Can you send the full log? It's possible that you're missing fonts. What fc-list | grep CMU says? The CMU fonts are the default one. Can you try with some other fonts, E.g.

muse-compile.pl --pdf --extra mainfont="Linux Libertine O"

or

muse-compile.pl --pdf --extra mainfont="TeX Gyre Pagella"

-- Marco

melmothx avatar Jan 14 '20 06:01 melmothx

https://github.com/rojenzaman/amusewiki-docker is a thing also? Trying it now...

decentral1se avatar Sep 09 '22 20:09 decentral1se

Ran into a couple of issues, I'm unsure how to deal with them:

https://github.com/rojenzaman/amusewiki-docker/issues/created_by/decentral1se

Basically, how to get amusewiki to play nicely with traefik as a proxy.... I don't need amusewiki to generate certificates for nginx, TLS is terminated at the traefik layer... so then I think I just need to set the site domain and generate the config but I'm unsure how to do that on the CLI?

decentral1se avatar Sep 09 '22 22:09 decentral1se

Is it possible to config an intial site domain/url from the amusewiki set-site-variable --all --set ... interface?

I think that might be what I need i.e. https://github.com/rojenzaman/amusewiki-docker/issues/3#issuecomment-1242538479

For now I did...

update site SET canonical = 'MY_HTTPS_DOMAIN' WHERE canonical = 'amusewiki.localdomain';

:scream:

I then see loads of errors with the CSS/JS loading....

Blocked loading mixed active content “http://MY_HTTPS_SITE/static/js/jquery-3.5.1.min.js”

Unsure how I hack the site to understand it is being proxied?

decentral1se avatar Sep 09 '22 22:09 decentral1se

The initial domain can be set when calling the configure script: https://github.com/rojenzaman/amusewiki-docker/blob/master/texlive-base/Dockerfile#L69

melmothx avatar Sep 10 '22 05:09 melmothx

Yeh I would close this off and link to https://github.com/rojenzaman/amusewiki-docker, it works.

decentral1se avatar Sep 12 '22 22:09 decentral1se

https://git.coopcloud.tech/coop-cloud/amusewiki

decentral1se avatar Sep 12 '22 22:09 decentral1se