Skip to content

Python language support #1

Open

Description

@gouseferoz

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

Activity

  1. stefanasandei commented on Nov 28, 2023

    @stefanasandei
    Collaborator

    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!

  2. gouseferoz commented on Nov 28, 2023

    @gouseferoz
    Author

    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?

  3. stefanasandei commented on Nov 28, 2023

    @stefanasandei
    Collaborator

    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
    
  4. gouseferoz commented on Nov 29, 2023

    @gouseferoz
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions