Mochi: Dynamically typed functional programming language <https://github.com/i2y/mochi>
1.7K
See https://github.com/tlvu/mochi/blob/84a49cb27a781d51f7aab67034384dc1ac201721/bin/mochidocker
Use the script bin/mochidocker in the mochi repo to launch this docker image. It is meant to make using docker with mochi much more user friendly.
Below is a sample built-in help (from mochidocker --dockerhelp):
Usage: mochidocker [options] <any mochi interpreter arguments> ...
Ex:
Run one .mochi file using relative path to the .mochi file (absolute path does not work)
$ cd $MOCHI_CHECKOUT_ROOT; bin/mochidocker examples/fizzbuzz.mochi
$ mochidocker relative-path/to/file.mochi
Explore mochi command-line
$ mochidocker --help # mochi interpreter help
$ mochidocker --version # mochi interpreter version
Enter mochi interractive interpreter
$ mochidocker
Run all examples
$ cd $MOCHI_CHECKOUT_ROOT; for f in examples/*.mochi; do echo $f; bin/mochidocker $f; done
Use an alternate docker image
$ mochidocker --dockerimg tlvu/mochi:<version tag> --version
$ cd $MOCHI_CHECKOUT_ROOT; bin/mochidocker --dockerimg tlvu/mochi:0.2.1 workdir/examples/fizzbuzz.mochi
As a developer, run the latest code in this checkout (not the code in the docker image)
Note: $MOCHI_CHECKOUT_ROOT must not contain space for this to work
$ cd $MOCHI_CHECKOUT_ROOT; bin/mochidocker --dockerdevel examples/fizzbuzz.mochi
Options:
--dockerimg img Alternate image name, default: tlvu/mochi
--dockerdevel Use latest code the current checkout
--dockerhelp Show this help
Release History:
Content type
Image
Digest
sha256:a943de73b…
Size
228.8 MB
Last updated
almost 11 years ago
docker pull tlvu/mochi