Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-16 Thread Nicola
On 2021-05-07, Nicola  wrote:
> On 2021-05-06, Bruce Horrocks  wrote:
>>> Sorry, my explanation of what I am trying to achieve was a bit too
>>> terse.
>
>> Thank-you for the explanation - that's much clearer.
>>
>> I've experimented a bit with Docker and I've managed to get
>> a stand-alone LMTX install to work under a 32-bit Alpine Linux that
>> has had the glibc library added. This should - fingers crossed - work
>> in iSH.
>
> That's great news! I'll try it asap and report back. Thanks for looking
> into it.

Thanks again, your instructions work perfectly in Docker. Unfortunately,
for some reason iSH raises an error when trying to import that Docker
image: iSH is finnicky about filesystems, apparently—this is noted in
their wiki:

https://github.com/ish-app/ish/wiki/Install-&-Activate-Alternate-Filesystems

Besides, I have found some inconsistencies between texmf.cnf and
texmfcnf.lua in the TeX Live distribution that can be installed through
apk: for instance, one file used ~/.texlive2019 and the other
~/.texlive2020. There may be other issues, but I am not expert enough.

For now, I have given up. I have some hope with another iOS/iPadOS app,
a-Shell (https://github.com/holzschu/a-shell), which is what I currently
use to typeset LaTeX documents. It allows you to install TeX Live, but
for some reason it comes without ConTeXt (it has LuaTeX, though). There
is an open request for adding ConTeXt
(https://github.com/holzschu/a-shell/issues/208).

Nicola


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-07 Thread Nicola
On 2021-05-06, Bruce Horrocks  wrote:
>> Sorry, my explanation of what I am trying to achieve was a bit too
>> terse.

> Thank-you for the explanation - that's much clearer.
>
> I've experimented a bit with Docker and I've managed to get
> a stand-alone LMTX install to work under a 32-bit Alpine Linux that
> has had the glibc library added. This should - fingers crossed - work
> in iSH.

That's great news! I'll try it asap and report back. Thanks for looking
into it.

Anyway, for Hans and Mojca: I confirm that I was not able to run ConTeXt
from the texlive package (TeX Live 2020) of Alpine Linux 3.12 (x86_64).
I get the error in my original post to this thread, which I could not
solve with the suggested fixes. If other can reproduce it, maybe it's
worth reporting upstream to Alpine developers.

I can install ConTeXt LMTX just fine in Alpine x86_64, however!

Nicola

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-06 Thread Bruce Horrocks
On 3 May 2021, at 09:29, Nicola  wrote:
> 
> 
> Sorry, my explanation of what I am trying to achieve was a bit too
> terse.
> 
> There is a little wonderful app on the App Store, called iSH
> (https://github.com/ish-app/ish), which essentially allows you to run
> a 32-bit x86 Alpine Linux distribution on the iPad. One feature of the
> app is that it can import and mount several "file systems". One way to
> create such a file system is to export a Docker container.
> 
> So, what one can do is create a Docker container in some other device (I
> use my laptop), configure it as desired, then export it into a .tar
> archive, copy it into the iPad, and import it into iSH. This is better
> than installing/building packages directly inside the app, because (a)
> compiling on the iPad is extremely slow, and (b) some packages may raise
> errors if one tries to install them inside the app (TeX Live being one
> of them: this link explains the issue and the Docker workaround:
> https://github.com/ish-app/ish/issues/1123).
> 
> iSH emulates x86_32 and uses Musl. AFAICS, ConTeXt LMTX currently only
> provides a 64-bit download for Linux Musl. So, the next best alternative
> is to use ConTeXt from TeX Live.
> 
> So, this is where I am at: I am trying to make ConTeXt work inside an
> x86 Alpine Linux Musl container, using the official Alpine package.


Thank-you for the explanation - that's much clearer.

I've experimented a bit with Docker and I've managed to get a stand-alone LMTX 
install to work under a 32-bit Alpine Linux that has had the glibc library 
added. This should - fingers crossed - work in iSH.

You need to set up a working directory containing:
- the 32-bit LMTX downloaded from 
"http://lmtx.pragma-ade.nl/install-lmtx/context-linux.zip;
- the file "Dockerfile" that is attached to this email
- the modified LMTX install file "alpine-glibc-install.sh" that is attached to 
this email
- a subdirectory "sources" where you can place a hello world tex file

Use the following commands to build and run the container:

  $ docker build . -t context-alpine-glibc
  $ docker run -it -v $(pwd)/sources:/src context-alpine-glibc /bin/ash

The run command bind mounts the sub-directory "sources" so that it is 
accessible from within the container as the /src directory.[2]

Once you are in the container run these commands to process the hello world 
document:

  # cd /src
  # context hello_world.tex

There's no PDF viewer installed so you'll need to view it from the host in 
"sources". On the Mac this works as expected. Over to you to try in iSH. :-)


[1] The install.sh file needs to be hacked because the CPU architecture check 
(uname -m) returns the word size of the host computer, not the container, so I 
just hard-coded the values. :-)

[2] On Windows use something like:
  $ docker run -it -v %cd%/sources:/src context-alpine-glibc /bin/ash


—
Bruce Horrocks
Hampshire, UK


Dockerfile
Description: Binary data


alpine-glibc-install.sh
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Hans Hagen

On 5/3/2021 10:29 AM, Nicola wrote:


So, this is where I am at: I am trying to make ConTeXt work inside an
x86 Alpine Linux Musl container, using the official Alpine package.

Then you need to bribe Mojca for an extra musl build client,

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Nicola
On 2021-05-02, Bruce Horrocks  wrote:
> The iSH documentation that I briefly looked at used a 'side-load'
> technique i.e. relied on what's called a 'jailbroken' iPad.

I don't know which documentation you have looked at: I can load file
systems just fine on a not jailbroken device:

https://github.com/ish-app/ish/wiki/Install-&-Activate-Alternate-Filesystems

Nicola


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Nicola
On 2021-05-02, Bruce Horrocks  wrote:
>
>
>> On 1 May 2021, at 21:35, Nicola  wrote:
>>
>> On 2021-05-01, Bruce Horrocks  wrote:
 On 30 Apr 2021, at 19:53, Nicola  wrote:

 I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
 iPad with the iSH app). I am currently testing it with Docker. This is
 what I have done:

  docker pull econcz/x86-alpine-glibc:ish-import
>>>
>>> Why is your first line not
>>>
>>>  $ docker pull alpine
>>
>> I was following the documentation of iSH, which is where I want to use
>> the container eventually. But I may probably use the alpine image as
>> well, which is more up to date and allows me to install TeX Live 2020.
>>
>>> I would start with that then test each new step at the interactive
>>> shell before adding to the compose file and moving onto the next step.
>>
>> Unfortunately, even with the image above I get the same errors.
>
> Sorry for the late reply - I missed this in the thread.
>
> You're not going to be able to get the Docker container to run on the
> iPad if that's what you were ultimately hoping.

Sorry, my explanation of what I am trying to achieve was a bit too
terse.

There is a little wonderful app on the App Store, called iSH
(https://github.com/ish-app/ish), which essentially allows you to run
a 32-bit x86 Alpine Linux distribution on the iPad. One feature of the
app is that it can import and mount several "file systems". One way to
create such a file system is to export a Docker container.

So, what one can do is create a Docker container in some other device (I
use my laptop), configure it as desired, then export it into a .tar
archive, copy it into the iPad, and import it into iSH. This is better
than installing/building packages directly inside the app, because (a)
compiling on the iPad is extremely slow, and (b) some packages may raise
errors if one tries to install them inside the app (TeX Live being one
of them: this link explains the issue and the Docker workaround:
https://github.com/ish-app/ish/issues/1123).

iSH emulates x86_32 and uses Musl. AFAICS, ConTeXt LMTX currently only
provides a 64-bit download for Linux Musl. So, the next best alternative
is to use ConTeXt from TeX Live.

So, this is where I am at: I am trying to make ConTeXt work inside an
x86 Alpine Linux Musl container, using the official Alpine package.

Nicola


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-02 Thread Bruce Horrocks


> On 1 May 2021, at 21:35, Nicola  wrote:
> 
> On 2021-05-01, Bruce Horrocks  wrote:
>>> On 30 Apr 2021, at 19:53, Nicola  wrote:
>>> 
>>> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
>>> iPad with the iSH app). I am currently testing it with Docker. This is
>>> what I have done:
>>> 
>>>  docker pull econcz/x86-alpine-glibc:ish-import
>> 
>> Why is your first line not
>> 
>>  $ docker pull alpine
> 
> I was following the documentation of iSH, which is where I want to use
> the container eventually. But I may probably use the alpine image as
> well, which is more up to date and allows me to install TeX Live 2020.
> 
>> I would start with that then test each new step at the interactive
>> shell before adding to the compose file and moving onto the next step.
> 
> Unfortunately, even with the image above I get the same errors.

Sorry for the late reply - I missed this in the thread.

You're not going to be able to get the Docker container to run on the iPad if 
that's what you were ultimately hoping. This is because of the different 
processor types used by most PCs versus the iPad. As far as I know there is no 
way to get Docker installed on a PC to cross-compile for the ARM architecture 
of an iPad; and even if you could, the resulting image would have to be 
cryptographically signed by a registered Apple developer and then signed by 
Apple or it won't run. The iSH documentation that I briefly looked at used a 
'side-load' technique i.e. relied on what's called a 'jailbroken' iPad. This 
invalidates your warranty yadda yadda and you don't really want to go there 
except perhaps for the intellectual exercise.

The next best alternative would be to run TeX Live plus LMTX on a PC and 
connect to it remotely using the iPad. This could be via a text-only terminal 
app or a remote desktop app.

The remote PC that you connect to could be yours at home (cheap but carries a 
security risk unless you know what you're doing) or in the cloud (requires a 
subscription but the security is less of an issue since you build the machine 
to be disposable on the assumption that hackers will get to it).

Either way, I don't think Docker is the first choice solution (unless, perhaps, 
you have a home NAS that supports Docker - yet another option).

If you still want to build a Docker container then please say so - as I'm sure 
it could be done.

—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
On 2021-05-01, Mojca Miklavec  wrote:
> On Fri, 30 Apr 2021 at 20:53, Nicola wrote:
>> Then, I run `mtxrun --generate`, which exits instantly with the output
>> reported below. However, that is apparently not enough. I still get:
>>
>> $ context Hello-world.tex
>> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
>
> This sounds like a missing or misconfigured texmfcnf.lua (which should
> be next to texmf.cnf).
> This would need to be handled by the distribution (Alpine Linux devs).
>
> Can you try to locate both files and share the contents? (There may
> also be multiple copies of them.)

I report below the content of the two files, as they are in TeX Live
2020 (I have switched to `docker pull alpine`, as suggested in another
post, in which I can install Tex Live 2020).

Nicola


~ # find / -name texmfcnf.lua
/usr/share/texmf-dist/web2c/texmfcnf.lua
~ # cat /usr/share/texmf-dist/web2c/texmfcnf.lua
-- public domain

-- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
-- bit of lua code to make that happen

local texmflocal = resolvers.prefixes.selfautoparent();
texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");

return {

type= "configuration",
version = "1.1.0",
date= "2012-05-24",
time= "12:12:12",
comment = "ConTeXt MkIV configuration file",
author  = "Hans Hagen, PRAGMA-ADE, Hasselt NL",

content = {

-- Originally there was support for engines and progname but I don't 
expect
-- other engines to use this file, so first engines were removed. After 
that
-- if made sense also to get rid of progname. At some point specific 
formats
-- will be supported but then as a subtable with fallbacks, which 
sounds more
-- natural. Also, at some point the paths will become tables. For the 
moment
-- I don't care too much about it as extending is easy.

variables = {

-- The following variable is predefined (but can be overloaded) and 
in
-- most cases you can leve this one untouched. The built-in 
definition
-- permits relocation of the tree.
--
-- TEXMFCNF = 
"{selfautodir:,selfautoparent:}{,{/share,}/texmf{-local,}/web2c}"
--
-- more readable than "selfautoparent:{/texmf{-local,}{,/web2c},}}" 
is:
--
-- TEXMFCNF = {
-- "selfautoparent:/texmf-local",
-- "selfautoparent:/texmf-local/web2c",
-- "selfautoparent:/texmf-dist",
-- "selfautoparent:/texmf/web2c",
-- "selfautoparent:",
-- }

-- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live

TEXMFSYSVAR = "selfautoparent:texmf-var",
TEXMFVAR= "home:.texlive2020/texmf-var",

-- We have only one cache path but there can be more. The first 
writable one
-- will be chosen but there can be more readable paths.

TEXMFCACHE  = "$TEXMFSYSVAR;$TEXMFVAR",
TEXMFCONFIG = "home:.texlive2020/texmf-config",

-- I don't like this texmf under home and texmf-home would make more
-- sense. One never knows what installers put under texmf anywhere 
and
-- sorting out problems will be a pain. But on the other hand ... 
home
-- mess is normally under the users own responsibility.
--
-- By using prefixes we don't get expanded paths in the cache 
__path__
-- entry. This makes the tex root relocatable.

TEXMFOS = "selfautodir:",
TEXMFDIST   = "selfautoparent:texmf-dist",

TEXMFLOCAL  = texmflocal,
TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
TEXMFFONTS  = "selfautoparent:texmf-fonts",
TEXMFPROJECT= "selfautoparent:texmf-project",

TEXMFHOME   = "home:texmf",
 -- TEXMFHOME   = os.name == "macosx" and "home:Library/texmf" or 
"home:texmf",

-- We need texmfos for a few rare files but as I have a few more 
bin trees
-- a hack is needed. Maybe other users also have texmf-platform-new 
trees.

TEXMF   = 
"{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST}",

TEXFONTMAPS = 
".;$TEXMF/fonts/data//;$TEXMF/fonts/map/{pdftex,dvips}//",
ENCFONTS= 
".;$TEXMF/fonts/data//;$TEXMF/fonts/enc/{dvips,pdftex}//",
VFFONTS = ".;$TEXMF/fonts/{data,vf}//",
TFMFONTS= ".;$TEXMF/fonts/{data,tfm}//",
T1FONTS = ".;$TEXMF/fonts/{data,type1}//;$OSFONTDIR",
AFMFONTS= ".;$TEXMF/fonts/{data,afm}//;$OSFONTDIR",
TTFONTS = 

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
On 2021-05-01, Bruce Horrocks  wrote:
>> On 30 Apr 2021, at 19:53, Nicola  wrote:
>>
>> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
>> iPad with the iSH app). I am currently testing it with Docker. This is
>> what I have done:
>>
>>docker pull econcz/x86-alpine-glibc:ish-import
>
> Why is your first line not
>
>$ docker pull alpine

I was following the documentation of iSH, which is where I want to use
the container eventually. But I may probably use the alpine image as
well, which is more up to date and allows me to install TeX Live 2020.

> I would start with that then test each new step at the interactive
> shell before adding to the compose file and moving onto the next step.

Unfortunately, even with the image above I get the same errors.

Nicola

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
On 2021-05-01, Pablo Rodriguez  wrote:
> On 4/30/21 8:53 PM, Nicola wrote:
>> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
>> iPad with the iSH app). I am currently testing it with Docker. This is
>> what I have done:
>> [...]
>> Anyone running ConTeXt on Alpine? Any idea what is wrong?
>
> Hi Nicola,
>
> I don’t run Alpine or Docker, but this might help you.
>
>   mtxrun --script cache --erase &&  mtxrun --generate

Unfortunately, mtxrun --script cache results in the same error I have
already posted.

> BTW, TeX Live 2021 is already available (https://www.tug.org/texlive/).

I am using the release I can get from the package manager. It seems that
Tex Live 2021 has not landed in Alpine's official repos yet.

Nicola

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Pablo Rodriguez
On 4/30/21 8:53 PM, Nicola wrote:
> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
> iPad with the iSH app). I am currently testing it with Docker. This is
> what I have done:
> [...]
> Anyone running ConTeXt on Alpine? Any idea what is wrong?

Hi Nicola,

I don’t run Alpine or Docker, but this might help you.

  mtxrun --script cache --erase &&  mtxrun --generate

BTW, TeX Live 2021 is already available (https://www.tug.org/texlive/).

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Mojca Miklavec
On Fri, 30 Apr 2021 at 20:53, Nicola wrote:
>
> This installs and configures repos for Alpine Linux 3.12. Then,
> I install TeX Live as follows:
>
> apk add texlive-full texlive-xetex texlive-luatex texlive-dev
> apk add ghostscript ghostscript-fonts ghostscript-dev
> apk add graphicsmagick graphicsmagick-dev
>
> Then, I run `mtxrun --generate`, which exits instantly with the output
> reported below. However, that is apparently not enough. I still get:
>
> $ context Hello-world.tex
> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

This sounds like a missing or misconfigured texmfcnf.lua (which should
be next to texmf.cnf).
This would need to be handled by the distribution (Alpine Linux devs).

Can you try to locate both files and share the contents? (There may
also be multiple copies of them.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Bruce Horrocks


> On 30 Apr 2021, at 19:53, Nicola  wrote:
> 
> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
> iPad with the iSH app). I am currently testing it with Docker. This is
> what I have done:
> 
>docker pull econcz/x86-alpine-glibc:ish-import

Why is your first line not

   $ docker pull alpine

?

I would start with that then test each new step at the interactive shell before 
adding to the compose file and moving onto the next step.
—
Bruce Horrocks
Hampshire, UK

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-04-30 Thread Nicola
I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
iPad with the iSH app). I am currently testing it with Docker. This is
what I have done:

docker pull econcz/x86-alpine-glibc:ish-import
docker run -it econcz/x86-alpine-glibc:ish-import /bin/sh
cp /etc/apk/repositories /tmp/repositories
cat /etc/os-release
ALPINE_VERSION=3.12  # Set accordingly to previous command
echo "http://nl.alpinelinux.org/alpine/v${ALPINE_VERSION}/main/; | tee 
/etc/apk/repositories
echo "http://nl.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/; | tee 
-a /etc/apk/repositories
apk update

This installs and configures repos for Alpine Linux 3.12. Then,
I install TeX Live as follows:

apk add texlive-full texlive-xetex texlive-luatex texlive-dev
apk add ghostscript ghostscript-fonts ghostscript-dev
apk add graphicsmagick graphicsmagick-dev

Then, I run `mtxrun --generate`, which exits instantly with the output
reported below. However, that is apparently not enough. I still get:

$ context Hello-world.tex
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

$ context --version
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

$ mtxrun --version
mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path

$ mtxrun --script context
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

$ luatools --generate
mtxrun  | unknown script 'base.lua' or 'mtx-base.lua'

$ find / -name context.lua
/usr/share/texmf-dist/scripts/context/lua/context.lua

$ find / -name mtx-context.lua
/usr/share/texmf-dist/scripts/context/lua/mtx-context.lua

$ find / -name base.lua
[Nothing found]

$ find / -name mtx-base.lua
/usr/share/texmf-dist/scripts/context/lua/mtx-base.lua

Anyone running ConTeXt on Alpine? Any idea what is wrong?

Nicola

>mtxrun --generate
resolvers   | resolving | variable 'SELFAUTOLOC' set to '/usr/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to '/usr'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to '.'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'usr'
resolvers   | resolving |
resolvers   | resolving | using configuration specification 
'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf-dist/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf-dist/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf-dist/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf-dist/web2c,selfautodir:/texmf/web2c,$SELFAUTOGRANDPARENT/texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf-dist/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf-dist/web2c,selfautoparent:/texmf/web2c}'
resolvers   | resolving |
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/root/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird path 
'/usr/bin' from specification 'selfautoloc:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/share/texmf-local/web2c' from specification 
'selfautoloc:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/share/texmf-dist/web2c' from specification 
'selfautoloc:/share/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/share/texmf/web2c' from specification 'selfautoloc:/share/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/texmf-dist/web2c' from specification 'selfautoloc:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird path 
'/usr' from specification 'selfautodir:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/share/texmf-local/web2c' from specification 
'selfautodir:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/share/texmf-dist/web2c' from specification 
'selfautodir:/share/texmf-dist/web2c'
resolvers   | resolving | found regular configuration file 
'/usr/share/texmf-dist/web2c/texmfcnf.lua'
resolvers   | resolving | looking for