diff --git a/.github/workflows/build-image-manual.yaml b/.github/workflows/build-image-manual.yaml index 71554ab..f53f352 100644 --- a/.github/workflows/build-image-manual.yaml +++ b/.github/workflows/build-image-manual.yaml @@ -32,7 +32,7 @@ on: - bepusdt - http-dump - kubectl - - xiaoya + - radiance-bot tag: description: 'Image tag' diff --git a/radiance-bot/Dockerfile b/radiance-bot/Dockerfile new file mode 100644 index 0000000..48a1ac0 --- /dev/null +++ b/radiance-bot/Dockerfile @@ -0,0 +1,14 @@ +FROM amazoncorretto:17-alpine + +WORKDIR /app + +RUN apk add --no-cache curl bash + +RUN curl -LO https://gh.monlor.com/https://github.com/semicons/java_oci_manage/releases/latest/download/gz_client_bot.tar.gz && \ + tar -xvf gz_client_bot.tar.gz && \ + chmod +x sh_client_bot.sh && \ + rm gz_client_bot.tar.gz + +COPY --chmod=755 entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/radiance-bot/README.md b/radiance-bot/README.md new file mode 100644 index 0000000..3caa35c --- /dev/null +++ b/radiance-bot/README.md @@ -0,0 +1,26 @@ +## 项目 + +radiance-bot,oracle抢机 + +## 安装 + +#### 环境变量 + +获取用户信息:https://t.me/radiance_helper_bot + +* TG_BOT_USERNME +* TG_BOT_PASSWORD + +### 映射配置文件 + +* `/app/oracle_config`: oracle配置 +* `/app/azure_config`: azure配置 + +### 映射key + +* `/app/oracle.key` +* `/app/azure.key` + +## 参考 + +https://github.com/semicons/java_oci_manage/blob/main/md/install.md \ No newline at end of file diff --git a/radiance-bot/entrypoint.sh b/radiance-bot/entrypoint.sh new file mode 100644 index 0000000..5fc244c --- /dev/null +++ b/radiance-bot/entrypoint.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +set -eu + +cat > /app/client_config <<-EOF +#在oci=begin和oci=end之间放入你的API配置信息 支持多个配置文件 机器人操作profile管理里可更换操作账户 +oci=begin +$(cat /app/oracle_config 2> /dev/null) +oci=end + +#用户信息 从 https://t.me/radiance_helper_bot 配置(bot可使用/raninfo命令随机生成) +#必传 +username=${TG_BOT_USERNME} +#必传 +password=${TG_BOT_PASSWORD} + + +#cloudflare 功能参数 非必传 +#非必传 cloudflare邮箱 +cf_email= +#非必传 cloudflare key 在我的个人资料->API令牌处->API密钥->Global API Key 获取 +cf_account_key= + + +#非必填 本机ip和端口号 (进阶玩家选项 可填写域名) 不写将自动获取本机ip 并使用默认端口号9527 (小白用户建议不填) 如填写 格式为:https://xxx.xx:9527 +local_address= +#非必填 url名称(默认为address 可在bot上修改) +local_url_name= + +#非必填 启动模式 填写local为启动本地无公网IP模式(只要能联网即可) 不填或填其他 则启动端口模式 +model=local + + + +#在azure=begin和azure=end之间放入你的azure的API配置信息 支持多个配置文件 机器人切换profile可更换操作配置 上传配置支持使用原格式({"appId":"xxx","password":"xxx"...})上传 +azure=begin +$(cat /app/azure_config 2> /dev/null) +azure=end +EOF + +cd /app && bash sh_client_bot.sh & + +if [ ! -f /app/log_r_client.log ]; then + touch /app/log_r_client.log +fi + +tail -f /app/log_r_client.log \ No newline at end of file diff --git a/xiaoya/Dockerfile b/xiaoya/Dockerfile deleted file mode 100644 index ccda87c..0000000 --- a/xiaoya/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -FROM docker:dind - -LABEL MAINTAINER me@monlor.com -LABEL VERSION 2.0.2 - -EXPOSE 5678 2345 2346 - -VOLUME /etc/xiaoya /opt/media - -RUN apk add --no-cache curl bash tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone && \ - apk del tzdata && \ - rm -rf /var/cache/apk/* - -ADD https://raw.githubusercontent.com/DDS-Derek/xiaoya-alist/master/all_in_one.sh /usr/local/bin/xiaoya.sh - -RUN chmod +x /usr/local/bin/xiaoya.sh \ No newline at end of file diff --git a/xiaoya/README.md b/xiaoya/README.md deleted file mode 100644 index b526fc5..0000000 --- a/xiaoya/README.md +++ /dev/null @@ -1,19 +0,0 @@ -## 小雅影视库 - -简化部署逻辑,来源:https://xiaoyaliu.notion.site/xiaoya-docker-69404af849504fa5bcf9f2dd5ecaa75f - -## 使用 - -``` -docker run -d -v your_media:/opt/media -v your_data:/etc/xiaoya -p 5678:80 -p 2345:2345 -p 2346:2346 --restart=unless-stopped --name=xiaoya monlor/xiaoya:latest -``` - -进入容器执行命令,开始安装 - -``` -xiaoya.sh -``` - -## 参考 - -https://raw.githubusercontent.com/DDS-Derek/xiaoya-alist/master/all_in_one.sh \ No newline at end of file