ant…@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>Bernd Paysan has now built docker images with tags 1.0.0 and 1.0.1, so >you can start, e.g., gforth-fast 1.0.1 with > >docker run -it --rm forthy42/gforth:1.0.1 gforth-fast > >One other aspect of Docker is: by default it does not allow the gforth >engine running in the container to access files outside the container. > >I played around a little with the options --volume (-v), --mount, and >--user (-u), but could not get the gforth in the container to write >outside the container.
I have now written a shell script that calls docker with a gforth engine and give it R/W access to your working directory and its subdirectories on the same file system. Download it from https://www.complang.tuwien.ac.at/forth/gforth/docker.sh Usage example: ./docker.sh gforth-fast onebench.fs This includes the file onebench.fs that's inside the container unless you happen to have a file onebench.fs in your working directory (the one inside the container leaves Gforth when finished, so the container also ends afterwards. But if you have myfile.4th in your working directory, you can say, e.g., ./docker.sh gforth myfile.4th to include it. - anton