Skip to content

Containerised runtime environment for Chef esolang (using RChef interpreter)

License

Notifications You must be signed in to change notification settings

richarah/docker-chef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-chef

A containerised runtime environment for the Chef esolang, using a fork of the RChef interpreter originally written by GitHub user booleancoercion.

A note on RChef

Due to RChef having more stringent requirements for Chef programs than most interpreters, some programs that run without issues on other implementations may exhibit unexpected behaviour. Please refer to the RChef repository README for details.

Build

Before proceeding, please ensure that you have Docker and Git installed on your machine.

Next, clone the repository and build the Docker image as follows:

git clone https://github.com/richarah/docker-chef.git
cd docker-chef
docker build . -t docker-chef

Run

Once the image is built, it may be run as follows. By default, the image includes a recipes folder for example programs, though additional folders may be mounted using the -v flag.

docker run -it docker-chef

The Chef interpreter may now be run from within the container.

For instance, to run the Fibonacci example (using the -s spaced mode flag for neater formatting):

rchef -s FibonacciDuFromage.chef

Bon appetit!