A Discord bot that will let you run commands in Docker containers. In other words, you can create a totally isolated computer, optionally with preinstalled programs, per channel.
UsageHere are some of the commands you can use, and what they do:
$ info
will show some info about Term, and also list the commands$ create
will create a container for the current channel if one doesn’t exist$ remove
will remove the current channel’s container if it exists$ <command>
or$ run <command>
will run bash commands in the current channel’s container
Term supports creating containers with preinstalled commands. We call the collections of tools associations.
Below are our current associations. Feel free to open an issue or merge request if you’d like more.
python
,python3
: Python version 3 withpip
python2
: Python version 2 withpip
node
: A NodeJS environment withnpm
,node
, andyarn
docker
: Docker within Docker, for Dockerceptionperl
: Just a perl environmentruby
: A Ruby environment withgem
andruby
installedalpine
: Alpine Linux, with updated package listslinux
,ubuntu
,ubuntu1804
: Ubuntu 18.04; make sure to runapt-get update
ubuntu1810
: Ubuntu 18.10; also make sure to runapt-get update
arch
,archlinux
: A basic Arch Linux installationgo
,golang
: a fully working Go setup
To use an association, for example python
, use $ create python
.