Uses Docker Python Sandbox library to Sandbox PythonBuddy.
Created off of [christophetd/code-execution-api-demo] (https://github.com/christophetd/code-execution-api-demo)
Prereqs:
- Install Docker and Node.js
- Running on Linux Server
System requirements:
- 4GB of Storage
- 1GB of RAM
Steps:
git clone https://github.com/ethanchewy/PythonBuddySandboxgit clone https://github.com/ethanchewy/PythonBuddySandboxedcd PythonBuddySandbox/containerdocker build -t christophetd/docker-sandbox .cdnpm install --save docker-python-sandbox-pythonbuddycd PythonBuddySandboxedcp api/config.js.sample api/config.jssudo npm start
Remember!!
Change config.js's config.security.secretto something different and change static/js/javascript.js in PythonBuddySandboxed to the same secret!!
Navigate to localhost:3000 to see PythonBuddy Dockerized!
(Or if you are hosting, navigate to ExternalIP:3000 to see PythonBuddy Dockerized!)
More documentation coming...