Skip to content

virtualzone/http-script-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-script-agent

A containerized HTTP Server written in Go which executes shell commands on requests and returns the shell command's output.

Example

Request:

curl -u user:pass http://localhost:8080/cmd/hello

Internal shell call:

/app/your-command.sh hello

Usage

docker run -d \
    -p 8080:8080 \
    -e PORT=8080 \
    -e SHELL_COMMAND=/app/demo.sh \
    -e USERNAME=user \
    -e PASSWORD=pass \
    ghcr.io/virtualzone/http-script-agent:latest

This launches the container on port 8080, executes /app/demo.sh on incoming command requests and enforces basic authentication.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages