Fixed link in Dockerfile documentation. Updated README with working Docker link. Made general improvements to the Docker section of the README now that I'm not in a sleep-deprived zombie state.

This commit is contained in:
panasenco
2020-05-22 13:57:10 -07:00
parent e82e36f51e
commit db56bb92f0
2 changed files with 18 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
# Based on https://hub.docker.com/_/rust?tab=description and https://hub.docker.com/_/rust?tab=description # Based on https://hub.docker.com/_/rust?tab=description and https://blog.sedrik.se/posts/my-docker-setup-for-rust/
# The first container is for build purposes only. # The first container is for build purposes only.
FROM rust as builder FROM rust as builder

View File

@@ -130,23 +130,31 @@ producing a faster executable.
### Docker Install (All Platforms) ### Docker Install (All Platforms)
To automatically download, install, and run Scryer Prolog via Docker, First, install [Docker](https://docs.docker.com/get-docker/) on Linux,
simply run: Windows, or Mac.
Once Docker is installed, you can automatically download, install, and
run Scryer Prolog in a single command:
``` ```
$> docker run -it mthom/scryer-prolog $> docker run -it mjt128/scryer-prolog
``` ```
To be able to load your program files, bind mount your programs folder To consult your Prolog files, bind mount your programs folder as a
as a Docker volume: [Docker volume](https://docs.docker.com/storage/volumes/):
``` ```
$> docker run -v /home/user/prolog:/mnt -it mthom/scryer-prolog $> docker run -v /home/user/prolog:/mnt -it mjt128/scryer-prolog
?- consult('mnt/program.pl'). ?- consult('/mnt/program.pl').
true. true.
``` ```
[Docker](https://hub.docker.com/editions/community/docker-ce-desktop-windows) This works on Windows too:
is currently the only way to run scryer-prolog on Windows.
```
$> docker run -v C:\Users\user\Documents\prolog:/mnt -it mjt128/scryer-prolog
?- consult('/mnt/program.pl').
true.
```
## Tutorial ## Tutorial