mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-03 19:18:00 +08:00
feat: 增加 Java 运行环境 (#1652)
This commit is contained in:
parent
c24a629cbb
commit
3061aec27f
1
apps/java/1.8/data.yml
Normal file
1
apps/java/1.8/data.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
18
apps/java/1.8/docker-compose.yml
Normal file
18
apps/java/1.8/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
java:
|
||||||
|
image: bitnami/java:${JAVA_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}:${JAVA_APP_PORT}
|
||||||
|
restart: on-failure:5
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
10
apps/java/1.8/run.sh
Normal file
10
apps/java/1.8/run.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
1
apps/java/11/data.yml
Normal file
1
apps/java/11/data.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
18
apps/java/11/docker-compose.yml
Normal file
18
apps/java/11/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
java:
|
||||||
|
image: bitnami/java:${JAVA_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}:${JAVA_APP_PORT}
|
||||||
|
restart: on-failure:5
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
10
apps/java/11/run.sh
Normal file
10
apps/java/11/run.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
1
apps/java/17/data.yml
Normal file
1
apps/java/17/data.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
18
apps/java/17/docker-compose.yml
Normal file
18
apps/java/17/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
java:
|
||||||
|
image: bitnami/java:${JAVA_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}:${JAVA_APP_PORT}
|
||||||
|
restart: on-failure:5
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
10
apps/java/17/run.sh
Normal file
10
apps/java/17/run.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
1
apps/java/21/data.yml
Normal file
1
apps/java/21/data.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
18
apps/java/21/docker-compose.yml
Normal file
18
apps/java/21/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
java:
|
||||||
|
image: bitnami/java:${JAVA_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}:${JAVA_APP_PORT}
|
||||||
|
restart: on-failure:5
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
10
apps/java/21/run.sh
Normal file
10
apps/java/21/run.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
1
apps/java/22/data.yml
Normal file
1
apps/java/22/data.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
18
apps/java/22/docker-compose.yml
Normal file
18
apps/java/22/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
services:
|
||||||
|
java:
|
||||||
|
image: bitnami/java:${JAVA_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}:${JAVA_APP_PORT}
|
||||||
|
restart: on-failure:5
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
10
apps/java/22/run.sh
Normal file
10
apps/java/22/run.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
25
apps/java/README.md
Normal file
25
apps/java/README.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Java
|
||||||
|
|
||||||
|
Java是一种广泛使用的编程语言和平台,适用于构建多种类型的应用程序,从桌面应用到大型企业级系统。
|
||||||
|
|
||||||
|
## 主要功能:
|
||||||
|
|
||||||
|
- **平台独立**:Java的“写一次,运行到处”(WORA)特性使得编写的代码可以在任何支持Java的平台上运行。这是通过Java虚拟机(JVM)实现的,它可以将Java字节码解释为特定平台的机器代码。
|
||||||
|
|
||||||
|
- **面向对象**:Java是一种面向对象的编程语言,支持封装、继承、多态等面向对象的特性。这使得代码更加模块化、易于维护和扩展。
|
||||||
|
|
||||||
|
- **丰富的标准库**:Java拥有丰富且强大的标准库,提供了大量的预定义类和方法,涵盖了从数据结构、网络编程、文件I/O到图形用户界面等各个方面,极大地提高了开发效率。
|
||||||
|
|
||||||
|
- **多线程**:Java内置对多线程的支持,使开发者可以轻松地编写并发程序,充分利用多核处理器的性能,从而提升应用程序的响应速度和处理能力。
|
||||||
|
|
||||||
|
- **垃圾回收**:Java具有自动垃圾回收机制,能够自动管理内存,回收不再使用的对象,减少了内存泄漏和其他内存管理问题的风险。
|
||||||
|
|
||||||
|
- **安全性**:Java提供了多层次的安全机制,包括字节码验证、沙箱模型以及安全管理器,确保Java应用程序能够在安全的环境中运行。
|
||||||
|
|
||||||
|
- **跨平台**:Java程序可以在多种操作系统上运行,包括Windows、Linux和macOS,这使其非常灵活,能够满足不同的部署需求。
|
||||||
|
|
||||||
|
- **强类型检查**:Java是一种强类型语言,在编译期间会进行严格的类型检查,有助于捕获潜在的错误并提高代码的健壮性。
|
||||||
|
|
||||||
|
- **社区支持**:Java拥有一个庞大的开发者社区,因此可以轻松找到各种库和框架来扩展其功能,也能够获得社区的支持和反馈。
|
||||||
|
|
||||||
|
- **企业级应用**:Java广泛用于构建企业级应用,许多大型企业系统和金融机构都使用Java来开发其核心业务系统。
|
17
apps/java/data.yml
Normal file
17
apps/java/data.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Java
|
||||||
|
tags:
|
||||||
|
- 运行环境
|
||||||
|
title: Java 运行环境
|
||||||
|
description: Java 运行环境
|
||||||
|
additionalProperties:
|
||||||
|
key: java
|
||||||
|
name: Java
|
||||||
|
tags:
|
||||||
|
- Runtime
|
||||||
|
shortDescZh: Java 运行环境
|
||||||
|
shortDescEn: Java Runtime
|
||||||
|
type: java
|
||||||
|
crossVersionUpdate: false
|
||||||
|
limit: 0
|
||||||
|
recommend: 102
|
||||||
|
website: https://www.java.com/
|
BIN
apps/java/logo.png
Normal file
BIN
apps/java/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
Loading…
x
Reference in New Issue
Block a user