diff --git a/apps/python.zip b/apps/python.zip new file mode 100644 index 000000000..81eb2e0fb Binary files /dev/null and b/apps/python.zip differ diff --git a/apps/python/3.10.15/data.yml b/apps/python/3.10.15/data.yml new file mode 100644 index 000000000..fcc6ed694 --- /dev/null +++ b/apps/python/3.10.15/data.yml @@ -0,0 +1 @@ +additionalProperties: \ No newline at end of file diff --git a/apps/python/3.10.15/docker-compose.yml b/apps/python/3.10.15/docker-compose.yml new file mode 100644 index 000000000..453c59b87 --- /dev/null +++ b/apps/python/3.10.15/docker-compose.yml @@ -0,0 +1,18 @@ +services: + node: + image: python:${PYTHON_VERSION} + container_name: ${CONTAINER_NAME} + working_dir: /app + volumes: + - ${CODE_DIR}:/app + - ./run.sh:/run.sh + - ./.env:/.env + command: bash /run.sh + networks: + - 1panel-network + ports: + - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT} + restart: on-failure:5 +networks: + 1panel-network: + external: true diff --git a/apps/python/3.10.15/run.sh b/apps/python/3.10.15/run.sh new file mode 100644 index 000000000..21519ccc6 --- /dev/null +++ b/apps/python/3.10.15/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source /.env + +$EXEC_SCRIPT diff --git a/apps/python/3.11.10/data.yml b/apps/python/3.11.10/data.yml new file mode 100644 index 000000000..fcc6ed694 --- /dev/null +++ b/apps/python/3.11.10/data.yml @@ -0,0 +1 @@ +additionalProperties: \ No newline at end of file diff --git a/apps/python/3.11.10/docker-compose.yml b/apps/python/3.11.10/docker-compose.yml new file mode 100644 index 000000000..453c59b87 --- /dev/null +++ b/apps/python/3.11.10/docker-compose.yml @@ -0,0 +1,18 @@ +services: + node: + image: python:${PYTHON_VERSION} + container_name: ${CONTAINER_NAME} + working_dir: /app + volumes: + - ${CODE_DIR}:/app + - ./run.sh:/run.sh + - ./.env:/.env + command: bash /run.sh + networks: + - 1panel-network + ports: + - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT} + restart: on-failure:5 +networks: + 1panel-network: + external: true diff --git a/apps/python/3.11.10/run.sh b/apps/python/3.11.10/run.sh new file mode 100644 index 000000000..21519ccc6 --- /dev/null +++ b/apps/python/3.11.10/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source /.env + +$EXEC_SCRIPT diff --git a/apps/python/3.12.7/data.yml b/apps/python/3.12.7/data.yml new file mode 100644 index 000000000..fcc6ed694 --- /dev/null +++ b/apps/python/3.12.7/data.yml @@ -0,0 +1 @@ +additionalProperties: \ No newline at end of file diff --git a/apps/python/3.12.7/docker-compose.yml b/apps/python/3.12.7/docker-compose.yml new file mode 100644 index 000000000..453c59b87 --- /dev/null +++ b/apps/python/3.12.7/docker-compose.yml @@ -0,0 +1,18 @@ +services: + node: + image: python:${PYTHON_VERSION} + container_name: ${CONTAINER_NAME} + working_dir: /app + volumes: + - ${CODE_DIR}:/app + - ./run.sh:/run.sh + - ./.env:/.env + command: bash /run.sh + networks: + - 1panel-network + ports: + - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT} + restart: on-failure:5 +networks: + 1panel-network: + external: true diff --git a/apps/python/3.12.7/run.sh b/apps/python/3.12.7/run.sh new file mode 100644 index 000000000..21519ccc6 --- /dev/null +++ b/apps/python/3.12.7/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source /.env + +$EXEC_SCRIPT diff --git a/apps/python/3.13.0/data.yml b/apps/python/3.13.0/data.yml new file mode 100644 index 000000000..fcc6ed694 --- /dev/null +++ b/apps/python/3.13.0/data.yml @@ -0,0 +1 @@ +additionalProperties: \ No newline at end of file diff --git a/apps/python/3.13.0/docker-compose.yml b/apps/python/3.13.0/docker-compose.yml new file mode 100644 index 000000000..453c59b87 --- /dev/null +++ b/apps/python/3.13.0/docker-compose.yml @@ -0,0 +1,18 @@ +services: + node: + image: python:${PYTHON_VERSION} + container_name: ${CONTAINER_NAME} + working_dir: /app + volumes: + - ${CODE_DIR}:/app + - ./run.sh:/run.sh + - ./.env:/.env + command: bash /run.sh + networks: + - 1panel-network + ports: + - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT} + restart: on-failure:5 +networks: + 1panel-network: + external: true diff --git a/apps/python/3.13.0/run.sh b/apps/python/3.13.0/run.sh new file mode 100644 index 000000000..2272029e1 --- /dev/null +++ b/apps/python/3.13.0/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +source /.env + +eval $EXEC_SCRIPT + + + + + diff --git a/apps/python/README.md b/apps/python/README.md new file mode 100644 index 000000000..ed8a39cda --- /dev/null +++ b/apps/python/README.md @@ -0,0 +1,3 @@ +# Python + +Python 运行环境 \ No newline at end of file diff --git a/apps/python/data.yml b/apps/python/data.yml new file mode 100644 index 000000000..dffd1b89a --- /dev/null +++ b/apps/python/data.yml @@ -0,0 +1,19 @@ +name: Python +tags: + - 运行环境 +title: Python 运行环境 +description: Python 运行环境 +additionalProperties: + key: python + name: Python + tags: + - Runtime + shortDescZh: Python 运行环境 + shortDescEn: Python Runtime + type: python + crossVersionUpdate: false + limit: 0 + recommend: 101 + website: https://www.python.org/ + github: "" + document: "" \ No newline at end of file diff --git a/apps/python/logo.png b/apps/python/logo.png new file mode 100644 index 000000000..13e4b4fc3 Binary files /dev/null and b/apps/python/logo.png differ