Support sandboxes for Elixir, Haskell, Clojure
The dream is to create an offline version of something like repl.it.
This commit is contained in:
parent
011d302b9e
commit
5cb0aebbd3
2 changed files with 8 additions and 11 deletions
|
|
@ -104,15 +104,9 @@ dkcsh() {
|
|||
}
|
||||
|
||||
dkish() {
|
||||
# Runs a Docker container with `/usr/bin/env bash`.
|
||||
# `dkish` stands for DocKer Image SHell.
|
||||
# Note: This defers from `dksh`, which accepts a container instead of an
|
||||
# image.
|
||||
# Usage: dkrit <container_name> [command]
|
||||
image=$1
|
||||
cmd=${2-/bin/bash}
|
||||
|
||||
docker run -it "$image" "$cmd"
|
||||
# Runs a Docker container interactively
|
||||
# Usage: dkrit <container_name> <command> [...args]
|
||||
docker run -it $@
|
||||
}
|
||||
|
||||
# Emacs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue