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

Add Dockerfile #254

Closed
link2xt opened this issue Dec 7, 2018 · 15 comments
Closed

Add Dockerfile #254

link2xt opened this issue Dec 7, 2018 · 15 comments
Labels
build Building system

Comments

@link2xt
Copy link
Contributor

link2xt commented Dec 7, 2018

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.

@melmothx
Copy link
Owner

melmothx commented Dec 7, 2018

@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.

@racke
Copy link

racke commented Dec 7, 2018

I can help out here if needed with Docker knowhow.

@link2xt
Copy link
Contributor Author

link2xt commented Dec 7, 2018

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

@melmothx melmothx added the build Building system label Dec 17, 2018
@link2xt
Copy link
Contributor Author

link2xt commented Dec 20, 2018

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

@yodatak
Copy link

yodatak commented Feb 17, 2019

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

@melmothx
Copy link
Owner

@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
Copy link
Owner

Working on this Docker thing.

@yodatak
Copy link

yodatak commented Jan 13, 2020

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

@melmothx
Copy link
Owner

melmothx commented Jan 14, 2020 via email

@decentral1se
Copy link

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

@decentral1se
Copy link

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
Copy link

decentral1se commented Sep 9, 2022

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. rojenzaman/amusewiki-docker#3 (comment)

For now I did...

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

😱

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?

@melmothx
Copy link
Owner

melmothx commented Sep 10, 2022

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

@decentral1se
Copy link

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

@decentral1se
Copy link

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

No branches or pull requests

5 participants