The scientific-emacs a container-based in Debian:Focal version with emacs 26, and a light version of TeXlive.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
609 B

#!/usr/bin/env zsh
# script to obatin machine's ip and run the docker container
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $ip
echo 'checking redis ...'
if [ "$(docker container inspect -f '{{.State.Status}}' this_redis)" = "running" ]; then
echo 'starting redis'
docker start this_redis
else
echo 'running redis...'
docker run --name this_redis redis
fi
# scientific
echo 'running scientific-emacs:0.1'
docker run --rm -it \
-v `pwd`/config:/root \
-v `pwd`:/home \
-e DISPLAY=$ip:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--link this_redis \
gmarxcc/scientific-emacs:0.1
# end