Vishvam10 commited on
Commit ·
07a4a25
1
Parent(s): c579490
chore: (server) port
Browse files- Dockerfile +0 -2
- README.md +5 -5
- server/app.py +1 -1
- start.sh +1 -1
Dockerfile
CHANGED
|
@@ -57,8 +57,6 @@ ENV GATEWAY_PORT=4566 \
|
|
| 57 |
LAMBDA_EXECUTOR=local \
|
| 58 |
PYTHONUNBUFFERED=1
|
| 59 |
|
| 60 |
-
EXPOSE 7860
|
| 61 |
-
|
| 62 |
COPY start.sh /start.sh
|
| 63 |
RUN chmod +x /start.sh
|
| 64 |
|
|
|
|
| 57 |
LAMBDA_EXECUTOR=local \
|
| 58 |
PYTHONUNBUFFERED=1
|
| 59 |
|
|
|
|
|
|
|
| 60 |
COPY start.sh /start.sh
|
| 61 |
RUN chmod +x /start.sh
|
| 62 |
|
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: blue
|
|
| 5 |
colorTo: blue
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
-
app_port:
|
| 9 |
base_path: /web
|
| 10 |
tags:
|
| 11 |
- openenv
|
|
@@ -116,7 +116,7 @@ CloudEnv exposes a lightweight pipeline lifecycle API under `/api/pipelines`:
|
|
| 116 |
Example create request:
|
| 117 |
|
| 118 |
```bash
|
| 119 |
-
curl -X POST http://localhost:
|
| 120 |
-H "Content-Type: application/json" \
|
| 121 |
-d '{
|
| 122 |
"pipeline_id": "easy-task-1",
|
|
@@ -150,7 +150,7 @@ Initialize example (required before actions):
|
|
| 150 |
|
| 151 |
```bash
|
| 152 |
curl --request POST \
|
| 153 |
-
--url http://localhost:
|
| 154 |
--header 'content-type: application/json' \
|
| 155 |
--data '{
|
| 156 |
"action": {
|
|
@@ -213,7 +213,7 @@ steps = [
|
|
| 213 |
```bash
|
| 214 |
uv run --project . server
|
| 215 |
# or
|
| 216 |
-
python -m cloudenv.server.app --port
|
| 217 |
```
|
| 218 |
|
| 219 |
|
|
@@ -225,7 +225,7 @@ docker run \
|
|
| 225 |
--rm \
|
| 226 |
--name cloudenv \
|
| 227 |
-p 4566:4566 \
|
| 228 |
-
-p
|
| 229 |
cloudenv
|
| 230 |
```
|
| 231 |
|
|
|
|
| 5 |
colorTo: blue
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 8000
|
| 9 |
base_path: /web
|
| 10 |
tags:
|
| 11 |
- openenv
|
|
|
|
| 116 |
Example create request:
|
| 117 |
|
| 118 |
```bash
|
| 119 |
+
curl -X POST http://localhost:8000/api/pipelines \
|
| 120 |
-H "Content-Type: application/json" \
|
| 121 |
-d '{
|
| 122 |
"pipeline_id": "easy-task-1",
|
|
|
|
| 150 |
|
| 151 |
```bash
|
| 152 |
curl --request POST \
|
| 153 |
+
--url http://localhost:8000/step \
|
| 154 |
--header 'content-type: application/json' \
|
| 155 |
--data '{
|
| 156 |
"action": {
|
|
|
|
| 213 |
```bash
|
| 214 |
uv run --project . server
|
| 215 |
# or
|
| 216 |
+
python -m cloudenv.server.app --port 8000
|
| 217 |
```
|
| 218 |
|
| 219 |
|
|
|
|
| 225 |
--rm \
|
| 226 |
--name cloudenv \
|
| 227 |
-p 4566:4566 \
|
| 228 |
+
-p 8000:8000 \
|
| 229 |
cloudenv
|
| 230 |
```
|
| 231 |
|
server/app.py
CHANGED
|
@@ -60,7 +60,7 @@ def main():
|
|
| 60 |
|
| 61 |
parser = argparse.ArgumentParser()
|
| 62 |
parser.add_argument("--host", type=str, default="0.0.0.0")
|
| 63 |
-
parser.add_argument("--port", type=int, default=
|
| 64 |
args = parser.parse_args()
|
| 65 |
|
| 66 |
uvicorn.run(app, host=args.host, port=args.port)
|
|
|
|
| 60 |
|
| 61 |
parser = argparse.ArgumentParser()
|
| 62 |
parser.add_argument("--host", type=str, default="0.0.0.0")
|
| 63 |
+
parser.add_argument("--port", type=int, default=8000)
|
| 64 |
args = parser.parse_args()
|
| 65 |
|
| 66 |
uvicorn.run(app, host=args.host, port=args.port)
|
start.sh
CHANGED
|
@@ -23,7 +23,7 @@ export PYTHONPATH=/app/env
|
|
| 23 |
# ---------------------------
|
| 24 |
uvicorn cloudenv.server.app:app \
|
| 25 |
--host 0.0.0.0 \
|
| 26 |
-
--port
|
| 27 |
&
|
| 28 |
PID2=$!
|
| 29 |
|
|
|
|
| 23 |
# ---------------------------
|
| 24 |
uvicorn cloudenv.server.app:app \
|
| 25 |
--host 0.0.0.0 \
|
| 26 |
+
--port 8000 \
|
| 27 |
&
|
| 28 |
PID2=$!
|
| 29 |
|