• Docker & Forth

    From Buzz McCool@21:1/5 to All on Thu Jun 8 16:04:21 2023
    A thank you to "forthy42" (Perhaps Matthias Trute?) who created a Gforth container for Docker.

    https://hub.docker.com/r/forthy42/gforth

    # My Dockerfile, needed Docker engine installed and my
    # Forth test program in the same directory with it.
    # $ docker pull forthy42/gforth
    # $ docker build -t forthtest-docker .
    # $ docker run forthtest-docker

    FROM forthy42/gforth
    COPY . /app
    CMD gforth /app/test.fth
    # End my Dockerfile

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From none) (albert@21:1/5 to buzz_mccool@yahoo.com on Fri Jun 9 10:09:44 2023
    In article <u5tmpo$1l7p7$1@dont-email.me>,
    Buzz McCool <buzz_mccool@yahoo.com> wrote:
    A thank you to "forthy42" (Perhaps Matthias Trute?) who created a Gforth >container for Docker.

    https://hub.docker.com/r/forthy42/gforth

    # My Dockerfile, needed Docker engine installed and my
    # Forth test program in the same directory with it.
    # $ docker pull forthy42/gforth
    # $ docker build -t forthtest-docker .
    # $ docker run forthtest-docker

    FROM forthy42/gforth
    COPY . /app
    CMD gforth /app/test.fth
    # End my Dockerfile

    I see that mal
    https://github.com/kanaka/mal
    uses Docker.
    Can you explain how to use it, what are the benefits?
    In particular I'm now running a gforth that comes with Debian.
    0.7.3. Can one have a more modern version of gforth using
    Docker this way?

    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat spinning. - the Wise from Antrim -

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JKN@21:1/5 to Buzz McCool on Fri Jun 9 00:50:09 2023
    On Friday, June 9, 2023 at 12:04:27 AM UTC+1, Buzz McCool wrote:
    A thank you to "forthy42" (Perhaps Matthias Trute?) who created a Gforth container for Docker.

    https://hub.docker.com/r/forthy42/gforth

    # My Dockerfile, needed Docker engine installed and my
    # Forth test program in the same directory with it.
    # $ docker pull forthy42/gforth
    # $ docker build -t forthtest-docker .
    # $ docker run forthtest-docker

    FROM forthy42/gforth
    COPY . /app
    CMD gforth /app/test.fth
    # End my Dockerfile

    That's useful to know, thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anton Ertl@21:1/5 to Buzz McCool on Fri Jun 9 08:06:00 2023
    Buzz McCool <buzz_mccool@yahoo.com> writes:
    A thank you to "forthy42" (Perhaps Matthias Trute?)

    Probably Bernd Paysan.

    - anton
    --
    M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
    comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
    New standard: https://forth-standard.org/
    EuroForth 2022 proceedings: http://www.euroforth.org/ef22/papers/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Buzz McCool@21:1/5 to albert on Fri Jun 9 07:38:51 2023
    On 6/9/2023 1:09 AM, albert wrote:
    .
    .
    .
    In particular I'm now running a gforth that comes with Debian.
    0.7.3. Can one have a more modern version of gforth using
    Docker this way?

    When I change the Dockerfile CMD line to just print out the Gforth version,

    CMD gforth --version

    I get on the output:

    $ docker run forthtest-docker
    gforth 0.7.9_20230414 amd64

    So the answer is yes, the Docker Gforth appears quite recent (April 14th
    2023).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ccurl609@gmail.com@21:1/5 to none albert on Fri Jun 9 12:21:57 2023
    On Friday, June 9, 2023 at 4:09:48 AM UTC-4, none albert wrote:
    In article <u5tmpo$1l7p7$1...@dont-email.me>,
    Buzz McCool <buzz_...@yahoo.com> wrote:
    A thank you to "forthy42" (Perhaps Matthias Trute?) who created a Gforth >container for Docker.

    https://hub.docker.com/r/forthy42/gforth

    # My Dockerfile, needed Docker engine installed and my
    # Forth test program in the same directory with it.
    # $ docker pull forthy42/gforth
    # $ docker build -t forthtest-docker .
    # $ docker run forthtest-docker

    FROM forthy42/gforth
    COPY . /app
    CMD gforth /app/test.fth
    # End my Dockerfile
    I see that mal
    https://github.com/kanaka/mal
    uses Docker.
    Can you explain how to use it, what are the benefits?
    In particular I'm now running a gforth that comes with Debian.
    0.7.3. Can one have a more modern version of gforth using
    Docker this way?

    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring. You must not say "hey" before you have crossed the bridge. Don't sell the hide of the bear until you shot it. Better one bird in the hand than ten in the air. First gain is a cat spinning. - the Wise from Antrim -
    My understanding of docker is that its primary purpose is to be able to run multiple instances of an app on the system, each in its own container. These "containers" are apparently more "light-weight" than an instance of a VM (like VM Ware for example),
    so a system can support more of them concurrently.

    I haven't had a need for such a setup in my world.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Ruffer@21:1/5 to All on Sun Jun 11 18:52:44 2023
    I've had this since I 1st saw Docker, but rarely had the need to use it:

    https://hub.docker.com/repository/docker/druffer/gforth/general

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From none) (albert@21:1/5 to daruffer@gmail.com on Mon Jun 12 21:33:54 2023
    In article <e4a51ddc-6454-4c4a-affe-d4b08d60f9ffn@googlegroups.com>,
    Dennis Ruffer <daruffer@gmail.com> wrote:
    I've had this since I 1st saw Docker, but rarely had the need to use it:

    https://hub.docker.com/repository/docker/druffer/gforth/general

    What kind of reference is this? Are we supposed to register with Docker
    only to find out what this is all about?


    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat spinning. - the Wise from Antrim -

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Buzz McCool@21:1/5 to Buzz McCool on Mon Jun 12 15:48:00 2023
    On 6/8/2023 4:04 PM, Buzz McCool wrote:
    A thank you to "forthy42" (Perhaps Matthias Trute?) who created a Gforth container for Docker.
    BTW, you can run Gforth interactively via Docker as well by using the
    -it flag:

    # My Dockerfile, needs Docker engine installed.
    # $ docker pull forthy42/gforth
    # $ docker build -t forth-docker .
    # Run Gforth interactively:
    # $ docker run -it forth-docker

    FROM forthy42/gforth

    # End my Dockerfile

    $ docker run -it forth-docker
    Gforth 0.7.9_20230414
    Authors: Anton Ertl, Bernd Paysan, Jens Wilke et al., for more type
    `authors'
    Copyright (c) 2023 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <https://gnu.org/licenses/gpl.html>
    Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
    Type `help' for basic help
    ok
    ok
    2 2 + . 4 ok
    bye
    $

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John@21:1/5 to All on Tue Jun 13 03:33:04 2023
    On Mon, 12 Jun 2023 21:33:54 +0200, none) (albert wrote:

    What kind of reference is this? Are we supposed to register with Docker
    only to find out what this is all about?


    Groetjes Albert

    Hi Albert
    I am surprised that somebody hasn't responded to your post.

    https://github.com/uho/docker-forth

    He has put together docker engines for some of the free forth engines that
    will allow you to run multiple instances of FORTH.
    HTH

    John

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From none) (albert@21:1/5 to john@johneb47.id.au on Tue Jun 13 12:06:35 2023
    In article <u68o1g$3fqma$1@dont-email.me>, John <john@johneb47.id.au> wrote: >On Mon, 12 Jun 2023 21:33:54 +0200, none) (albert wrote:

    What kind of reference is this? Are we supposed to register with Docker
    only to find out what this is all about?


    Groetjes Albert

    Hi Albert
    I am surprised that somebody hasn't responded to your post.

    https://github.com/uho/docker-forth

    He has put together docker engines for some of the free forth engines that >will allow you to run multiple instances of FORTH.
    HTH

    That reveals the usefulness of Docker, at last. Thank you.
    I can benefit because I test 32 and 64 bits version of lina
    on the same system. They should all be called lina, not lina64 and
    lina32. (As are all the version that run on ARM and RISCV systems.)
    There precious little differences between 32 and 64 system.


    John
    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat spinning. - the Wise from Antrim -

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Ruffer@21:1/5 to John on Tue Jun 13 20:19:31 2023
    On Monday, June 12, 2023 at 8:33:08 PM UTC-7, John wrote:
    On Mon, 12 Jun 2023 21:33:54 +0200, none) (albert wrote:

    What kind of reference is this? Are we supposed to register with Docker only to find out what this is all about?


    Groetjes Albert
    Hi Albert
    I am surprised that somebody hasn't responded to your post.

    https://github.com/uho/docker-forth

    He has put together docker engines for some of the free forth engines that will allow you to run multiple instances of FORTH.
    HTH

    John

    Sorry, been busy and had not even installed docker desktop in a while...
    which cause me to loose my reply, so I'll start over and be a little more kind...

    2023-06-13 20:00:41 execute call noop Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
    2023-06-13 20:00:41 Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
    2023-06-13 20:00:41 Type `bye' to exit
    2023-06-13 20:00:41

    The Dockerfile:
    FROM docker/whalesay:latest

    RUN apt-get -y update && apt-get install -y gforth

    CMD gforth

    Simple run:
    C:\Users\druff>docker run druffer/gforth
    ...
    execute call noop Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
    Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
    Type `bye' to exit

    Simple as that. Take it or leave it.

    DaR

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)