Przeglądaj źródła

Renamed Clace to OpenRun (#10056)

* Added localhost path

* [clace] - Changed to use no_args handlers

* Rename Clace to OpenRun
Ajay Kidave 3 tygodni temu
rodzic
commit
df5fb4163a

+ 0 - 11
frameworks/Python/clace/README.md

@@ -1,11 +0,0 @@
-# Introduction
-
-[Clace](https://github.com/claceio/clace) is a platform for developing and deploying internal tools.
-
-Clace is implemented in Go. Clace apps are written in [Starlark](https://starlark-lang.org/). Starlark is a thread-safe language with Python syntax, designed for embedding. Clace uses the [Starlark Go](https://github.com/google/starlark-go) implementation. Since apps are developed using a python like syntax, the benchmark is added under the Python category.
-
-# Benchmarking
-
-The JSON and plaintext tests are implemented. Clace supports SQLite database only currently, so the database tests are not implemented.
-
-The Dockerfile starts the Clace server and creates a single app which implements the benchmark apis (app.star).

+ 0 - 11
frameworks/Python/clace/clace.dockerfile

@@ -1,11 +0,0 @@
-FROM python:3.11
-WORKDIR /clace/
-
-RUN curl -L https://clace.io/install.sh | bash
-ENV CL_HOME="/root/clhome"
-ENV PATH="/root/clhome/bin:$PATH"
-
-COPY . .
-
-EXPOSE 8080
-CMD /clace/run.sh

+ 0 - 0
frameworks/Python/clace/.dockerignore → frameworks/Python/openrun/.dockerignore


+ 11 - 0
frameworks/Python/openrun/README.md

@@ -0,0 +1,11 @@
+# Introduction
+
+[OpenRun](https://github.com/openrundev/openrun) is a platform for developing and deploying internal tools.
+
+OpenRun is implemented in Go. OpenRun apps are written in [Starlark](https://starlark-lang.org/). Starlark is a thread-safe language with Python syntax, designed for embedding. OpenRun uses the [Starlark Go](https://github.com/google/starlark-go) implementation. Since apps are developed using a python like syntax, the benchmark is added under the Python category.
+
+# Benchmarking
+
+The JSON and plaintext tests are implemented. OpenRun supports SQLite database only currently, so the database tests are not implemented.
+
+The Dockerfile starts the OpenRun server and creates a single app which implements the benchmark apis (app.star).

+ 0 - 0
frameworks/Python/clace/app.star → frameworks/Python/openrun/app.star


+ 4 - 4
frameworks/Python/clace/benchmark_config.json → frameworks/Python/openrun/benchmark_config.json

@@ -1,5 +1,5 @@
 {
-  "framework": "clace",
+  "framework": "openrun",
   "tests": [
     {
       "default": {
@@ -8,13 +8,13 @@
         "port": 8080,
         "approach": "Realistic",
         "classification": "Micro",
-        "framework": "Clace",
+        "framework": "OpenRun",
         "language": "python",
         "flavor": "Starlark",
         "platform": "None",
-        "webserver": "Clace",
+        "webserver": "OpenRun",
         "os": "Linux",
-        "display_name": "Clace",
+        "display_name": "OpenRun",
         "notes": "",
         "versus": "None"
       }

+ 11 - 0
frameworks/Python/openrun/openrun.dockerfile

@@ -0,0 +1,11 @@
+FROM python:3.11
+WORKDIR /openrun/
+
+RUN curl -L https://openrun.dev/install.sh | bash
+ENV OPENRUN_HOME="/root/openrun"
+ENV PATH="/root/openrun/bin:$PATH"
+
+COPY . .
+
+EXPOSE 8080
+CMD /openrun/run.sh

+ 3 - 3
frameworks/Python/clace/run.sh → frameworks/Python/openrun/run.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 cd /root
 
-cat <<EOF > /root/clhome/clace.toml
+cat <<EOF > /root/openrun/openrun.toml
 [logging]
 console = false
 file = false
@@ -20,7 +20,7 @@ cors.allow_origin = ""
 EOF
 
 
-clace server start &
+openrun server start &
 sleep 2
-clace app create --auth=none --approve /clace /
+openrun app create --auth=none --approve /openrun /
 tail -f /dev/null