Skip to content

Commit 7e9519e

Browse files
committed
Add dmathics for minimal CLI
1 parent bfc9cb7 commit 7e9519e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docker/entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Arg:
1717
mathics src = /usr/src/app/mathics
1818
--pythonpaht /usr/src/app
1919
20-
-m | --mode {cli|ui} Start mathics in web-ui mode (ui), or in cli mode (cli). Default is cli.
20+
-m | --mode {cli|ui|gui|minimal} Start mathics in web-ui mode (ui or gui), cli mode (cli) or minimal. Default is cli.
2121
See: https://github.com/mathics/Mathics/wiki/Installing#running-mathics
2222
2323
Params:
@@ -48,7 +48,8 @@ echo
4848

4949
case $mathics_mode in
5050
cli) mathicsscript $@ ;;
51-
ui) mathicsserver -e $@ ;;
51+
minimal) mathics $@ ;;
52+
ui | gui) mathicsserver -e $@ ;;
5253
shell) /bin/bash ;;
5354
*) echo "unknown mathics_mode=$mathics_mode. See '$script_cmd --help'" ; exit 2 ;;
5455
esac

script/dmathics

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
DOCKER=${DOCKER:-docker}
3+
$DOCKER run --rm -it --name mathics-cli -v /tmp:/usr/src/app/data mathicsorg/mathics --mode cli -- $@

0 commit comments

Comments
 (0)