mirror of
				https://github.com/engineer-man/piston.git
				synced 2025-10-27 03:30:03 +01:00 
			
		
		
		
	language support
This commit is contained in:
		
							parent
							
								
									3103f6c17f
								
							
						
					
					
						commit
						3ffeaf139c
					
				
					 5 changed files with 15 additions and 2 deletions
				
			
		|  | @ -7,3 +7,4 @@ RUN apt-get -y install python | ||||||
| RUN apt-get -y install python3 | RUN apt-get -y install python3 | ||||||
| RUN apt-get -y install ruby | RUN apt-get -y install ruby | ||||||
| RUN apt-get -y install nodejs | RUN apt-get -y install nodejs | ||||||
|  | RUN apt-get -y install golang | ||||||
|  |  | ||||||
|  | @ -29,10 +29,10 @@ case "$lang" in | ||||||
|     bin=executor_python3 |     bin=executor_python3 | ||||||
|     ;; |     ;; | ||||||
| "ruby") | "ruby") | ||||||
|     bin=ruby |     bin=executor_ruby | ||||||
|     ;; |     ;; | ||||||
| "javascript" | "js" | "node") | "javascript" | "js" | "node") | ||||||
|     bin=nodejs |     bin=executor_node | ||||||
|     ;; |     ;; | ||||||
| "c") | "c") | ||||||
|     bin=executor_c |     bin=executor_c | ||||||
|  | @ -40,6 +40,9 @@ case "$lang" in | ||||||
| "cpp" | "c++") | "cpp" | "c++") | ||||||
|     bin=executor_cpp |     bin=executor_cpp | ||||||
|     ;; |     ;; | ||||||
|  | "go") | ||||||
|  |     bin=executor_go | ||||||
|  |     ;; | ||||||
| *) | *) | ||||||
|     echo "invalid language" |     echo "invalid language" | ||||||
|     exit |     exit | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								docker/executors/go
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								docker/executors/go
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
|  | go run $* | ||||||
							
								
								
									
										3
									
								
								docker/executors/node
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								docker/executors/node
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
|  | nodejs $* | ||||||
							
								
								
									
										3
									
								
								docker/executors/ruby
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								docker/executors/ruby
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
|  | ruby $* | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue