A docker image containing HOL4 and Emacs.
This project belongs to the Docker Hub repository https://hub.docker.com/r/andreaslindner/hol4docker/.
Just pull this repository and from there execute. Don't use sudo or something similar, but just your normal user:
make pull- downloads the prepared docker imagemake- creates/configures the docker container and then runs emacs- (For installing the sml-mode for emacs, refer to Installation step 3 below.)
- The home directory of your user on the host machine should now be mapped into
/home/{user}/shareand you can exchange files using this shared location.
You can control the container and connect to it using the following make build targets. By default the home folder is mapped in the container as /home/{user}/share and files can be accessed there. In some networked configurations that might not work because of the security context in which docker runs its containers. Then please refer to the last section.
make stopandmake startto stop and run the container respectively.make bash,make ssh,make emacsandmake emacs-nwto connect to the container. (For the targets ssh and emacs together with XServer, see the section below.)
make pullormake buildto pull a prebuilt image or compile an image respectively.make configureto create a container and initialize it for the currently logged on user. (See the first lines ofMakefilefor conifguration options.)- Start emacs in the container and then type
>M-x< package-install >RET< sml-mode >RET<to install the sml-mode for emacs. - (
make cleanto clean a configuration and remove the container in case it exists.)
sharetargetinMakefile, set it to the folder you want to be mapped in the containers/home/{user}/share.withxserverinMakefile, set it to 1 or 0 whether you plan to use emacs directly or over ssh.usesudoinMakefile, set it to 1 or 0 whether your user cannot run docker commands directly.
- if your user is not in the group docker (i.e., you run docker commands with sudo or similar), then set
usesudoinMakefileto 1 - host OS - i.e., container environment and XServer
Ubuntu 16works directlyArch Linuxrequires further tweaking, inMakefileset a fixed admin password and disablewithxserver(just use ssh X redirection)