Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KennedyTedesco committed Dec 14, 2024
1 parent 93d6da6 commit 17ae17e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,32 +133,26 @@ The steps are:
<img src="resources/how-it-works.png?raw=true" alt="How it works">
</p>

### Running with Docker (PHP ^8.1)

Pull the docker image:

```bash
docker pull php:8.2-cli
```
### Running with Docker (PHP ^8.4)

Running the tests:

```bash
docker run --rm -v $(pwd):/monkey -w /monkey php:8.2-cli ./vendor/bin/pest
docker run --rm -v $(pwd):/monkey -w /monkey php:8.4-cli ./vendor/bin/pest
```

Running from a file contents of the examples folder:

```bash
docker run --rm -v (pwd):/monkey -w /monkey php:8.2-cli ./monkey run examples/fibo_while.monkey
docker run --rm -v (pwd):/monkey -w /monkey php:8.4-cli ./monkey run examples/fibo_while.monkey
```

### Using the REPL

Clone this repository, execute `composer install`, then:

```bash
docker run --rm -v (pwd):/monkey -w /monkey php:8.2-cli ./monkey repl
docker run --rm -v (pwd):/monkey -w /monkey php:8.4-cli ./monkey repl
```

Example:
Expand Down

0 comments on commit 17ae17e

Please sign in to comment.