Giter VIP home page Giter VIP logo

zakariamaaraki / remotecodecompiler Goto Github PK

View Code? Open in Web Editor NEW
138.0 138.0 46.0 3.42 MB

An online code compiler supporting 11 programming languages (Java, Kotlin, Scala, C, C++, C#, Golang, Python, Ruby, Rust and Haskell) for competitive programming and coding interviews.

License: GNU General Public License v3.0

Dockerfile 0.09% Shell 0.44% Java 85.95% Smarty 1.01% Python 1.55% C 0.69% C++ 1.10% Go 0.12% C# 0.28% Kotlin 0.13% Scala 0.12% Rust 0.08% Ruby 0.05% Haskell 0.04% HTML 8.35%
coding-interviews competitive-programming docker grpc java kafka kafka-streams rabbitmq serverless spring-boot stream-processing

remotecodecompiler's People

Contributors

hamza-tam avatar starlexxx avatar zakariamaaraki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

remotecodecompiler's Issues

Error with building the necessary docker images

When starting docker according to the instructions and executing the command: ./environment/build.sh gives an error:
unable to prepare context: path "dockerfiles" not found
!!! Error while building compilation images !!!
Although judging by the file build.sh everything should work out as it should. I didn't change anything in the code. What could be the problem?

Current version of the project does not work

I followed the instructions step by step but this error occurred,

"error": "Unable to find image 'compiler.java:latest' locally\ndocker: Error response from daemon: pull access denied for compiler.java, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.\nSee 'docker run --help'.\n",
Screenshot 2023-09-04 at 11 38 03
Screenshot 2023-09-04 at 18 08 19
Screenshot 2023-09-04 at 18 09 25

also
while using this (/api/compile/json) api endpoint why I should provide list of "convertedTestCases" in json ?

{
  "convertedTestCases": [ ⬅️ is it allowed to be here ❓
    {
      "expectedOutput": "string",
      "testCaseId": "string"
    }
  ],
  "language": "PYTHON",
  "memoryLimit": 0,
  "sourcecode": "string",
  "testCases": {
    "additionalProp1": {
      "expectedOutput": "string",
      "input": "string"
    },
    "additionalProp2": {
      "expectedOutput": "string",
      "input": "string"
    },
    "additionalProp3": {
      "expectedOutput": "string",
      "input": "string"
    }
  },
  "timeLimit": 0
}

setting memory and time limit

#!/usr/bin/env bash
ulimit -s 5
timeout --signal=SIGTERM 5 python3 test.py
exit $?

the above code doesn't seem to stop the python script. I tried with an infinite loop code in test.py

need help with helm install

Hi author, i have does all ARM install then according to your tutorial, i begin to do helm.

When i command "helm install compiler ./compiler", i got this error:

"Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "compiler" namespace: "" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta1"
ensure CRDs are installed first"

Tks alot

Dynamic code does not work as documented in README

I am trying to execute the dynamic code via the API but it looks like when i make the call it still try to look into the predefined problem repository. am i missing something or this is by design ?

 curl 'http://localhost:8080/api/execute' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Connection: keep-alive' \
  -H 'Content-type: application/json; charset=UTF-8' \
  -H 'DNT: 1' \
  -H 'Origin: http://localhost:8080' \
  -H 'Referer: http://localhost:8080/problem/1' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36' \
  -H 'sec-ch-ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?1' \
  -H 'sec-ch-ua-platform: "Android"' \
  --data-raw '{"sourceCode":"// Java code here\npublic class main {\n    public static void main(String[] args) {\n        System.out.println(\"YES\");\n    }\n}","language":"JAVA", "testCases": { "test1" : {"input": "RAJESH", "expectedOutput": "RAJESH"}}}, "timeLimit": 15, "memoryLimit": 500'
{"timestamp":"2024-04-26T01:47:49.147+00:00","status":404,"error":"Not Found","message":"A problem with id 0 does not exist","path":"/api/execute","errorCode":"NOT_FOUND","errorType":"WARNING","isRetryableError":false,"retryIn":-1}%

Error:

{"timestamp":"2024-04-26T01:47:49.147+00:00","status":404,"error":"Not Found","message":"A problem with id 0 does not exist","path":"/api/execute","errorCode":"NOT_FOUND","errorType":"WARNING","isRetryableError":false,"retryIn":-1}%

Java compiler fails to load entrypoint

It seems that the java compiler doesn't work because it can't load files. the fix i found was to modify the docker file.

From
ADD utility_java utility

To
ADD utility_java utility_java

Split compilation from execution

  • Execution time will be more accurate.
  • One compilation and a set of executions.
  • Maybe running all test cases at the same time.

Error while running on linux machine

/usr/bin/env: ‘bash\r’: No such file or directory

After building the image i tried running the container, but i am getting the above error,, after researching a bit i guess the problem may be because the Dockerfile or the entrypoint file may contain carriage returns somewhere in the code which the linux machine picks up in the path... can you try to resolve this by removing the carriage returns in the code or if you think there is some other problem then please do tell the solution, also i am running docker on a windows machine with a linux virtual machine on top of it, thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.