HelixStudio / exec

Yet another code execution engine written in Rust.
Other
5 stars 0 forks source link

Python language support #1

Open gouseferoz opened 10 months ago

gouseferoz commented 10 months ago

Hi, can you please add the support for python language, I would like to try your RCE.

stefanasandei commented 10 months ago

Hello, yes I can add in the coming days support for python (and other interpreted programming languages).

I'm glad you like this project, if you have any issues running it locally, let me know and I can help!

gouseferoz commented 10 months ago

While running the project using docker run --privileged -p 8080:8080 stefanasandei/exec:0.2 I am getting below error:

Unable to find image 'stefanasandei/exec:0.2' locally
docker: Error response from daemon: pull access denied for stefanasandei/exec, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

Can you help me how to run this?

stefanasandei commented 10 months ago

That happens because I didn't push to dockerhub. To run it locally first you have to build the container, by running this in the directory of the project:

$ docker build -t name:version .

And replace "name:version" with whatever, in the README I specified my local setup "stefanasandei/exec:0.2". After you have built the container you can run it using that command:

$ docker run --privileged -p 8080:8080 name:version

Or you can also run the project without docker, if you have Rust and Cargo installed:

$ cargo run
gouseferoz commented 10 months ago

Thanks @stefanasandei I was able to build and run it.

I know this is not a right issue but I think, if you could add a sample code of what post body to be sent for the code execution will be helpful a lot rather than referring the model.rs file.