基于 Oracle OCI SDK 开发的 web 端可视化甲骨文云助手(Y探长),目前实现的功能有:批量添加多个租户配置、更改实例配置、引导卷配置、一键开启免费AMD实例下行500Mbps、一键更新、一键救援/缩小硬盘、附加ipv6、安全列表、实时流量查询(分钟级别)、根据多个 CIDR 网段更换实例公共IP、
基于 Oracle OCI SDK 开发的 web 端可视化甲骨文云助手(Y探长),目前实现的功能有:批量添加多个租户配置、更改实例配置、引导卷配置、一键开启免费AMD实例下行500Mbps、一键更新、一键救援/缩小硬盘、附加ipv6、安全列表、实时流量查询(分钟级别)、根据多个 CIDR 网段更换实例公共IP、
oci-helper(Y探长) 是一个基于 Spring Boot 3 + JDK 21 开发的轻量级 OCI 管理面板,后端采用 SQLite 存储,整体通过 Docker 容器化运行,并支持一键脚本结合 docker-compose 快速部署,无需在本机安装额外环境。项目面向 Oracle Cloud(OCI)的日常运维与自动化场景,提供实例管理、网络与 IP 操作、任务持久化、日志实时查看、多租户管理等功能,帮助用户以更直观、安全、高效的方式管理云资源。得益于 Spring Boot 3 的现代化框架特性与 JDK 21 的虚拟线程机制,系统能够更好地应对高并发请求,降低资源消耗;结合 Docker 的隔离与一致性,保证了跨环境部署的安全与稳定。
/start选择操作。bash 此命令也可以用于更新镜像并重启容器,不会删除已有的配置。
- 安装完成后浏览器直接访问 `http://ip:8818` 即可访问(建议之后通过https访问),账号密码可通过脚本进行修改。
如需自己手动修改账号密码,更改 `/app/oci-helper/application.yml` 中的配置并执行 `docker restart oci-helper` 重启docker容器即可。
- 如需查看完整日志,执行:`docker logs oci-helper >> /app/oci-helper/oci-helper.log` 导出日志文件自行查看。
部署完成后,`/app/oci-helper`的目录结构如下:
```bash
root@yohann:/app/oci-helper# tree
.
├── keys # 是一个目录,存放所有的pem秘钥文件
├── application.yml # 项目配置文件,如需更改网页账号密码在此处更改,并执行 docker restart oci-helper 重启容器
├── docker-compose.yml # docker-compose部署所需配置文件
├── oci-helper.db # 项目数据库文件
└── update_version_trigger.flag # 注意是一个文件,不是目录,用于版本自动更新
…
yaml
services:
watcher:
image: ghcr.io/yohann0617/oci-helper-watcher:main
container_name: oci-helper-watcher
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker-compose:/usr/local/bin/docker-compose
- /app/oci-helper/docker-compose.yml:/app/oci-helper/docker-compose.yml
- /app/oci-helper/update_version_trigger.flag:/app/oci-helper/update_version_trigger.flag
- /app/oci-helper/oci-helper.db:/app/oci-helper/oci-helper.db
oci-helper:
image: ghcr.io/yohann0617/oci-helper:master
container_name: oci-helper
restart: always
ports:
- "127.0.0.1:8818:8818" # 修改项
volumes:
- /app/oci-helper/application.yml:/app/oci-helper/application.yml
- /app/oci-helper/oci-helper.db:/app/oci-helper/oci-helper.db
- /app/oci-helper/keys:/app/oci-helper/keys
- /app/oci-helper/update_version_trigger.flag:/app/oci-helper/update_version_trigger.flag
networks:
- app-network
websockify:
image: ghcr.io/yohann0617/oci-helper-websockify:master
container_name: websockify
restart: always
ports:
- "127.0.0.1:6080:6080" # 修改项
depends_on:
- oci-helper
networks:
- app-network
networks:
app-network:
driver: bridge修改完记得重启Nginx
location /myvnc/ {
proxy_pass http://127.0.0.1:6080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
send_timeout 10800;
proxy_read_timeout 10800;
proxy_send_timeout 10800;
}
location / {
add_header Cache-Control no-cache;
proxy_pass http://127.0.0.1:8818;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
send_timeout 10800;
proxy_read_timeout 10800;
proxy_send_timeout 10800;
} ☜ 点击查看 创建密钥文件存放目录/app/oci-helper/keys。
mkdir -p /app/oci-helper/keys && cd /app/oci-helper下载 Releases 中的application.yml、oci-helper.db、docker-compose.yml以及最新 Release 版本的sh_oci-helper_install.sh这4个文件到/app/oci-helper目录下,并修改application.yml部分配置。
sh_oci-helper_install.sh是部署脚本,可自行修改内容,执行之前记得先chmod +x /app/oci-helper/sh_oci-helper_install.sh。
chmod +x /app/oci-helper/sh_oci-helper_install.sh && cd /app/oci-helper && ./sh_oci-helper_install.sh此脚本也可以用于更新镜像并重启容器,不会删除已有的配置。
部署脚本
部署在1C1G机器上运行一个月后资源占用情况
主页
新增配置
更换IP并自动更新 Cloudflare 域名 DNS 记录
编辑实例
TG操作
☜ 点击查看更多 No open issues yet, or sync has not completed.