Sign inSign up

forthy42/gforth

By forthy42

•Updated 12 days ago

Gforth in a container

Image
1

3.6K

forthy42/gforth repository overview

Run gforth inside a container.

Get your container:

$ docker pull forthy42/gforth

Example session

$ docker run -ti --rm forthy42/gforth
Gforth 0.7.9_20180905, Copyright (C) 1995-2017 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `help' for basic help
words 
disasm disline disass .... (lots of words)...
perform execute call noop  ok
bye 
$

Use a directory mount to access files from a host directory (current work directory in the example) inside the container

$ cat $(pwd)/test.fs
.( huhu )
$ docker run -ti --rm -v$(pwd):/work forthy42/gforth
s" /work/test.fs" included huhu ok
bye
$

Use the current user id (or any other numeric id) inside the container

$ id -u
1001
$ docker run -ti --rm --user $(id -u) forthy42/gforth
s" id -u" system uid=1001
 ok
bye
$

See https://neu.forth-ev.de/wiki/res/lib/exe/fetch.php/vd-archiv:4d2018-02.pdf⁠ for more (in German)

Tag summary

Content type

Image

Digest

sha256:10bb6be17…

Size

18.7 MB

Last updated

12 days ago

docker pull forthy42/gforth