Sign inSign up

sortednet/bashserver

By sortednet

•Updated about 7 years ago

Image
0

3.4K

sortednet/bashserver repository overview

bashserver is a simple appserver that runs a shell command. The shell command is passed as a parameter. Each request runs the command and returns the result

Bashserver listens on port 8080 and has two endpoints

PathAction
/Run the supplied command and return its output
/versionReturn the verision of the app (the contents of the $VERSION environment variable

Example usage

docker run -p8080:8080 sortednet/bashserver ls

Call the server

$ curl localhost:8080
bin
dev
etc
home
lib
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var

Tag summary

Content type

Image

Digest

Size

7 MB

Last updated

about 7 years ago

docker pull sortednet/bashserver