Skip to content

PixelSam123/containexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

containexec

Use a Docker host to execute requested code in containers


Warning

This app is meant to be run on a throwaway machine, VPS, or hardware-based VM. I am not responsible for any damage, data exposure or loss caused by Docker vulnerability exploits if this app is chosen to be run in a real and mission-critical PC.

Motivation

This is meant to be used with pcp, but feel free to use it for any other purposes.

Deployment guide

First, install dependencies through PDM:

pdm sync

Start the app with this command:

python -m uvicorn src.main:app --host 0.0.0.0 --forwarded-allow-ips="*"

It is recommended to change * with your proxy IP.

Endpoints

  1. POST /
    Request body:
    {
      "lang": "string",
      "code": "string"
    }
    Response body:
    {
      "status": number,
      "output": "string"
    }

About

Use a Docker host to execute requested code in containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages