You’ll need to move playbot.toml.example to playbot.toml and then configure
it appropriately.
Setting up the play.rust-lang.org server
First off, start off with a fresh Ubuntu AMI. These should be listed on
https://cloud-images.ubuntu.com/locator/ec2/, and the current one is the Xenial
us-west-1 64-bit hvm ebs-ssd server, ami-08490c68.
Note: This project is deprecated. To report issues about the playground hosted at https://play.rust-lang.org/, check out the next-gen playpen.
Old README
A web interface for running Rust code.
The interface can also be accessed in most Rust-related channels on
irc.mozilla.org.To use Playbot in a public channel, address your message to it.
You can also private message Playbot your code to have it evaluated. In a private message, don’t preface the code with playbot’s nickname:
Running your own Rust-Playpen
System Requirements
Currently needs to be run on a system with access to Docker.
Running the web server
First, create the Docker images that playpen will use:
Next, spin up the server.
You should now be able to browse http://127.0.0.1:8080 and interact.
IRC Bot Setup
You’ll need to move
playbot.toml.exampletoplaybot.tomland then configure it appropriately.Setting up the play.rust-lang.org server
First off, start off with a fresh Ubuntu AMI. These should be listed on https://cloud-images.ubuntu.com/locator/ec2/, and the current one is the Xenial us-west-1 64-bit hvm ebs-ssd server, ami-08490c68.
SSH through the bastion, then:
Next, configure
playbot.tomlcopied fromplaybot.toml.example.Next, open up a screen window (
screen -R), and spin up two sessions:Add a cron job to update the containers daily, currently: