An open API service indexing awesome lists of open source software.

https://github.com/nekketsuuu/rill-dockerfiles

[Deprecated] Dockerfiles for the Rill Programming Language
https://github.com/nekketsuuu/rill-dockerfiles

dockerfile rill

Last synced: 3 months ago
JSON representation

[Deprecated] Dockerfiles for the Rill Programming Language

Awesome Lists containing this project

README

        

**Depricated**: The official repository of [Rill](https://github.com/yutopp/rill) came to distribute Dockerfile. Use the official images.

## About

This repository contains some [Docker](https://www.docker.com/) container definitions for [the Rill programming language](https://github.com/yutopp/rill).

## Containers

| Rill Version | Command | Memo |
|--------------|---------|------|
| [2c2e05e](https://github.com/yutopp/rill/commit/2c2e05e5a772d5f6f9d2ce49b861fae283d15082) | `docker pull nekketsuuu/rill:2c2e05e` | Compatible with [進捗大陸01](https://yutopp.github.io/shinchoku-tairiku-web/01) |

## Usage

``` bash
docker run -it --rm nekketsuuu/rill bash # Note: Sometimes `sudo` is required.
```

In the container, you can use `rillc`. For example,

``` bash
# In the container...
rillc ~/rill/examples/fizzbuzz.rill -o a.out
./a.out
```

### Container as a Compiler

You can use this container as the Rill compiler by the following function on bash.

``` bash
rillc () {
local args="$@" ;
docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/code" nekketsuuu/rill:latest bash -c "cd /code && rillc $args"
}
```

Example:

``` bash
cd rill/examples && rillc fizzbuzz.rill -o a.out
```

## Local Build

To build a docker container locally, run

``` bash
docker build -t rill .
docker run -it --rm rill bash
```

## Contributing

Feel free to make an issue or a pull-request!

## Maintainer

[nekketsuuu](https://github.com/nekketsuuu)