Browse Source

精简代码

liuyuqi-dellpc 8 months ago
parent
commit
adfb90d10b
87 changed files with 561 additions and 800 deletions
  1. 19 1
      .github/pull_request_template.md
  2. 23 0
      .github/workflows/close_issues.yml
  3. 18 0
      .github/workflows/codespell.yml
  4. 24 0
      .vuepress/config.ts
  5. 62 0
      .vuepress/locales/en.ts
  6. 20 0
      .vuepress/locales/index.ts
  7. 62 0
      .vuepress/locales/zh_CN.ts
  8. 0 77
      R/aa.Rmd
  9. 4 1
      ai/.github/workflows/main.yml
  10. 9 7
      android/.github/workflows/main.yml
  11. 0 28
      android/android-dev-eclipse/README.md
  12. 1 1
      android/android-dev-eclipse/docker-compose.debug.yml
  13. 1 1
      android/android-dev-eclipse/docker-compose.yml
  14. 0 9
      android/android-dev-eclipse/tools/build_project.sh
  15. 0 13
      android/android-dev-studio/.dockerignore
  16. 0 27
      android/android-dev-studio/Dockerfile
  17. 0 28
      android/android-dev-studio/README.md
  18. 0 8
      android/android-dev-studio/docker-compose.debug.yml
  19. 0 5
      android/android-dev-studio/docker-compose.yml
  20. 0 9
      android/android-dev-studio/tools/build_project.sh
  21. 0 29
      android/android-eclipse/ Dockerfile
  22. 0 25
      android/android-eclipse/.github/workflows/main.yml
  23. 0 13
      android/android-source/.dockerignore
  24. 0 49
      android/android-source/README.md
  25. 0 8
      android/android-source/docker-compose.debug.yml
  26. 3 0
      android/android-source/docker-compose.yml
  27. 0 5
      android/android-source/tools/build_src.sh
  28. 0 16
      android/android-source/tools/download_android_repo.sh
  29. 4 1
      docker/.github/workflows/main.yml
  30. 3 3
      docker/.github/workflows/vue_deploy.yml
  31. 0 30
      docker/db/mongo/docker-compose.debug.yml
  32. 7 0
      docker/db/mysql/docker-compose.debug.yml
  33. 0 0
      docker/db/mysql/my.cnf
  34. 0 19
      docker/db/postgresql/docker-compose.yml
  35. 1 0
      docker/db/redis/docker-compose.debug.yml
  36. 0 0
      docker/rstudio/start.sh
  37. 0 4
      docs/.vuepress/config.js
  38. 97 0
      docs/dev/android.md
  39. 25 0
      docs/dev/java.md
  40. 27 1
      docs/dev/nodejs.md
  41. 28 0
      docs/index.md
  42. 0 11
      docs/package.json
  43. 1 1
      dotnet/.github/workflows/main.yml
  44. 3 3
      dotnet/.github/workflows/msbuild.yml
  45. 2 2
      dotnet/.github/workflows/push_to_docker.yml
  46. 2 2
      dotnet/docker-compose.debug.yml
  47. 1 1
      flutter/.github/workflows/android-build.yml
  48. 10 2
      flutter/.github/workflows/gh-pages.yml
  49. 1 1
      flutter/.github/workflows/ios-build.yml
  50. 1 1
      flutter/.github/workflows/ios-sign-file.yml
  51. 1 1
      flutter/.github/workflows/main.yml
  52. 4 4
      flutter/.github/workflows/pc-build.yml
  53. 1 1
      flutter/.ide/Dockerfile
  54. 6 1
      flutter/.ide/Dockerfile-Allinone-flutter
  55. 0 72
      flutter/build.sh
  56. 0 25
      go/.dockerignore
  57. 2 2
      go/.github/workflows/main.yml
  58. 0 29
      go/README.md
  59. 0 18
      go/docker-compose.debug.yml
  60. 1 1
      ios/.github/workflows/build.yml
  61. 0 25
      java/.dockerignore
  62. 1 1
      java/.github/workflows/main.yml
  63. 0 29
      java/README.md
  64. 6 1
      java/docker-compose.debug.yml
  65. 16 0
      java/docker-compose.yml
  66. 1 1
      nodejs/.github/react/.github/workflows/main.yml
  67. 2 2
      nodejs/.github/react/.github/workflows/react_go.yml
  68. 1 1
      nodejs/.github/workflows/main.yml
  69. 0 38
      nodejs/README.md
  70. 1 1
      others/.github/workflows/dl_youtube.yml
  71. 3 2
      others/.github/workflows/genshin.yml
  72. 1 1
      others/.github/workflows/test.yml
  73. 18 0
      package.json
  74. 0 24
      php/.dockerignore
  75. 1 1
      php/.github/workflows/main.yml
  76. 0 20
      php/deploy/docker-compose.yml
  77. 13 4
      python/.github/workflows/autoci.yml
  78. 1 1
      python/.github/workflows/publish.yml
  79. 2 2
      python/.github/workflows/publish2.yml
  80. 1 1
      python/.github/workflows/pyinstall_package.yml
  81. 2 2
      python/.github/workflows/pylint.yml
  82. 0 27
      python/README.md
  83. 0 13
      python/docker-compose.debug.yml
  84. 10 2
      python/docker-compose.yml
  85. 3 1
      ruby/Dockerfile
  86. 1 1
      ruby/build.yml
  87. 3 3
      rust/docker-compose.debug.yml

+ 19 - 1
.github/pull_request_template.md

@@ -1 +1,19 @@
-This PR fixes #
+## Describe your changes
+
+## Issue ticket number and link
+
+## Checklist before requesting a review
+- [ ] I have performed a self-review of my code.
+- [ ] If it is a core feature, I have added thorough tests.
+- [ ] I have added thorough documentation for my code.
+- [ ] I have tagged PR with relevant project labels. I acknowledge that a PR without labels may be dismissed.
+- [ ] If this PR addresses a bug, I have provided both a screenshot/video of the original bug and the working solution.
+
+## Demo
+<!-- Screenshots or video of new or updated code changes !-->
+
+### Steps to Reproduce
+<!-- Steps to reproduce demo !-->
+
+## Notes
+<!-- Any other relevant information to include about PR !-->

+ 23 - 0
.github/workflows/close_issues.yml

@@ -20,3 +20,26 @@ jobs:
           days-before-pr-stale: -1
           days-before-pr-close: -1
           repo-token: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Close issues without label or comment
+        uses: actions/github-script@v3
+        with:
+          github-token: ${{secrets.GITHUB_TOKEN}}
+          script: |
+            const repo = context.repo;
+            let page = 1;
+            let issues = [];
+            while (true) {
+              const result = await github.issues.listForRepo({...repo, per_page: 100, page: page});
+              if (result.data.length === 0) break;
+              issues = issues.concat(result.data);
+              page += 1;
+            }
+            for (let { number } of issues) {
+              const issueData = await github.issues.get({...repo, issue_number: number});
+              const comments = await github.issues.listComments({...repo, issue_number: number});
+              if (issueData.data.labels.length === 0 && comments.data.length < 1) {
+                await github.issues.update({...repo, issue_number: number, state: 'closed'});
+                await github.issues.createComment({...repo, issue_number: number, body: 'Issue closed as it does not have any labels or comments.'});
+              }
+            }

+ 18 - 0
.github/workflows/codespell.yml

@@ -0,0 +1,18 @@
+name: Codespell
+
+on:
+  push:
+    branches: [main]
+  pull_request:
+    branches: [main]
+
+jobs:
+  codespell:
+    name: Check for spelling errors
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Codespell
+        uses: codespell-project/actions-codespell@v2

+ 24 - 0
.vuepress/config.ts

@@ -0,0 +1,24 @@
+import { defineConfig, SiteConfig } from 'vitepress'
+import locales from './locales'
+import { readdir, writeFile } from 'fs/promises'
+import { resolve } from 'path'
+
+export default defineConfig({
+    title: 'flutter_docs',
+    locales: locales.locales,
+    sitemap: {
+        hostname: 'https://flutter_docs.yoqi.me'
+    },
+    buildEnd: async (config: SiteConfig) => {
+        const templateDir = resolve(config.outDir, 'templates');
+        const templateList = resolve(templateDir, "index.json");
+        let files = [];
+        try {
+            files = await readdir(templateDir);
+            files = files.filter(file => !file.startsWith('.'));
+        } catch (e) {
+            // ignore
+        }
+        await writeFile(templateList, JSON.stringify(files));
+    }
+})

+ 62 - 0
.vuepress/locales/en.ts

@@ -0,0 +1,62 @@
+import { createRequire } from 'module'
+import { defineConfig } from 'vitepress'
+
+const require = createRequire(import.meta.url)
+const pkg = require('vitepress/package.json')
+
+export default defineConfig({
+  lang: 'en-US',
+  description: 'A kernel-based root solution for Android GKI devices.',
+
+  themeConfig: {
+    nav: nav(),
+
+    lastUpdatedText: 'last Updated',
+
+    sidebar: {
+      '/guide/': sidebarGuide()
+    },
+
+    socialLinks: [
+      { icon: 'github', link: 'https://github.com/tiann/KernelSU' }
+    ],
+
+    footer: {
+        message: 'Released under the GPL3 License.',
+        copyright: 'Copyright © 2022-present KernelSU Developers'
+    },
+
+    editLink: {
+        pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
+        text: 'Edit this page on GitHub'
+    }
+  }
+})
+
+function nav() {
+  return [
+    { text: 'Guide', link: '/guide/what-is-kernelsu' },
+  ]
+}
+
+function sidebarGuide() {
+  return [
+    {
+        text: 'Guide',
+        items: [
+          { text: 'What is KernelSU?', link: '/guide/what-is-kernelsu' },
+          { text: 'Difference with Magisk', link: '/guide/difference-with-magisk' },
+          { text: 'Installation', link: '/guide/installation' },
+          { text: 'How to build?', link: '/guide/how-to-build' },
+          { text: 'Intergrate for non-GKI devices', link: '/guide/how-to-integrate-for-non-gki'},
+          { text: 'Unofficially supported devices', link: '/guide/unofficially-support-devices.md' },
+          { text: 'Module Guide', link: '/guide/module.md' },
+          { text: 'Module WebUI', link: '/guide/module-webui.md' },
+          { text: 'App Profile', link: '/guide/app-profile.md' },
+          { text: 'Rescue from bootloop', link: '/guide/rescue-from-bootloop.md' },
+          { text: 'FAQ', link: '/guide/faq' },
+          { text: 'Hidden features', link: '/guide/hidden-features' },
+        ]
+    }
+  ]
+}

+ 20 - 0
.vuepress/locales/index.ts

@@ -0,0 +1,20 @@
+import { defineConfig } from 'vitepress'
+import en from './en'
+import zh_CN from './zh_CN'
+
+export default defineConfig({
+  locales: {
+    root: {
+      label: 'English',
+      lang: en.lang,
+      themeConfig: en.themeConfig,
+      description: en.description
+    },
+    zh_CN: {
+      label: '简体中文',
+      lang: zh_CN.lang,
+      themeConfig: zh_CN.themeConfig,
+      description: zh_CN.description
+    },
+  }
+})

+ 62 - 0
.vuepress/locales/zh_CN.ts

@@ -0,0 +1,62 @@
+import { createRequire } from 'module'
+import { defineConfig } from 'vitepress'
+
+const require = createRequire(import.meta.url)
+const pkg = require('vitepress/package.json')
+
+export default defineConfig({
+  lang: 'zh-CN',
+  description: '一个基于内核,为安卓 GKI 准备的 root 方案。',
+
+  themeConfig: {
+    nav: nav(),
+
+    lastUpdatedText: '最后更新',
+
+    sidebar: {
+      '/zh_CN/guide/': sidebarGuide()
+    },
+
+    socialLinks: [
+      { icon: 'github', link: 'https://github.com/tiann/KernelSU' }
+    ],
+
+    footer: {
+      message: '在 GPL3 许可证下发布。',
+      copyright: 'Copyright © 2022-现在 KernelSU 开发者'
+    },
+
+    editLink: {
+      pattern: 'https://github.com/tiann/KernelSU/edit/main/website/docs/:path',
+      text: '在 GitHub 中编辑本页'
+    }
+  }
+})
+
+function nav() {
+  return [
+    { text: '指南', link: '/zh_CN/guide/what-is-kernelsu' },
+  ]
+}
+
+function sidebarGuide() {
+  return [
+    {
+      text: 'Guide',
+      items: [
+        { text: '什么是 KernelSU?', link: '/zh_CN/guide/what-is-kernelsu' },
+        { text: 'KernelSU 模块与 Magisk 的差异', link: '/zh_CN/guide/difference-with-magisk' },
+        { text: '安装', link: '/zh_CN/guide/installation' },
+        { text: '如何构建?', link: '/zh_CN/guide/how-to-build' },
+        { text: '如何为非GKI设备集成 KernelSU', link: '/zh_CN/guide/how-to-integrate-for-non-gki' },
+        { text: '非官方支持设备', link: '/zh_CN/guide/unofficially-support-devices.md' },
+        { text: '模块开发指南', link: '/zh_CN/guide/module.md' },
+        { text: '模块 Web 界面', link: '/zh_CN/guide/module-webui.md' },
+        { text: 'App Profile', link: '/zh_CN/guide/app-profile.md' },
+        { text: '救砖', link: '/zh_CN/guide/rescue-from-bootloop.md' },
+        { text: '常见问题', link: '/zh_CN/guide/faq' },
+        { text: '隐藏功能', link: '/zh_CN/guide/hidden-features' },
+      ]
+    }
+  ]
+}

+ 0 - 77
R/aa.Rmd

@@ -1,77 +0,0 @@
----
-title: "R Notebook"
-output: html_notebook
----
-
-## 环境预处理
-
-```{r}
-
-rm(list = ls())
-
-getOption("repos")
-options(repos = c(CRAN = "https://mirrors.ustc.edu.cn/CRAN/"))
-
-if (!requireNamespace("RMediation", quietly = TRUE)) {
-    install.packages("RMediation")
-}
-
-```
-
-## 数据导入
-
-导入 usedvariable.sav数据,注意编码。
-
-```{r}
-
-setwd("F:/workspace/VS/github-actions-creator/R")
-
-
-library(haven)
-file_path <- "usedvariable.sav"
-base_data <- read_sav(file_path, encoding = "GBK")
-
-head(your_data, 10)
-
-```
-
-## bootstrapping 估计
-
-```{r}
-
-current_data = 
-  
-library(RMediation)
-
-# 定义中介模型
-model <- lm(Y ~ X + M, data = your_data)
-
-# 运行蒙特卡洛法进行 Bootstrap
-# 这里设置了2000次 Bootstrap 重采样
-bootstrap_result <- mediate(model, treat = "X", mediator = "M", sims = 2000)
-
-# 定义中介模型
-# model 是一个 lm 对象,表示你的模型
-mediation_model <- mediate(model, treat = "X", mediator = "M", outcome = "O", sims = 2000)
-
-# 输出 Bootstrap 中介效应的置信区间
-summary(bootstrap_result)
-
-
-```
-
-## 附录
-
-`mediate()` 函数是 RMediation 软件包中用于执行中介分析的函数。它允许您评估中介变量对处理变量和结果变量之间关系的影响,通过蒙特卡洛模拟来计算中介效应的置信区间。以下是该函数的主要参数及其说明:
-
-### 参数:
-
--   `model`:一个包含处理、中介和结果变量的线性回归模型(例如,使用 `lm()` 函数拟合的模型对象)。
--   `treat`:处理变量的名称。
--   `mediator`:中介变量的名称。
--   `outcome`:结果变量的名称。
--   `sims`:Bootstrap 重采样的次数,用于计算中介效应的置信区间。
-
-### 返回值:
-
-`mediate()` 函数返回一个对象,其中包含中介效应的估计值、标准误差、置信区间等统计信息。

+ 4 - 1
ai/.github/workflows/main.yml

@@ -4,7 +4,10 @@ jobs:
   build:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          
     - name: test build-Build and run dev container task
       uses: devcontainers/ci@v0.2
       with:

+ 9 - 7
android/.github/workflows/main.yml

@@ -14,8 +14,10 @@ jobs:
     env:
       SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
     steps:
-      - uses: actions/checkout@v2
-
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          
       - name: set up JDK 1.8
         uses: actions/setup-java@v2
         with:
@@ -31,11 +33,11 @@ jobs:
       - name: Gradle cache
         id: cache
         uses: actions/cache@v2
-          with:
-            path: ~/.gradle/caches
-            key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
-            restore-keys: |
-              ${{ runner.os }}-gradle-
+        with:
+          path: ~/.gradle/caches
+          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
+          restore-keys: |
+            ${{ runner.os }}-gradle-
 
       - name: Enable KVM group perms
         run: |

+ 0 - 28
android/android-dev-eclipse/README.md

@@ -1,28 +0,0 @@
-## docker-android
-
-
-| images     | desc | other |
-| -------- | ---- | ---- |
-| android-dev |   基于Ubuntu的Android编译环境。   |      |
-| android-source     |  基于Ubuntu的安卓系统源码编译。    |      |
-|          |      |      |
-
-## usage
-
-1. 启动docker环境
-
-```
-docker-compose up -d
-```
-
-2. 进入容器编译项目
-
-```
-aapt package -f \
--M AndroidManifest.xml \ 
--I "$ANDROID_HOME/platforms/android-N/android.jar" \
--S res/ \
--J gen/ \
--m \
-
-```

+ 1 - 1
android/android-dev-eclipse/docker-compose.debug.yml

@@ -2,7 +2,7 @@ version: '2.1'
 
 services:
   docker-android-sdk:
-    image: docker-android-sdk
+    image: jianboy/docker-android-sdk:latest
     build:
       context: .
       dockerfile: Dockerfile

+ 1 - 1
android/android-dev-eclipse/docker-compose.yml

@@ -2,4 +2,4 @@ version: '2.1'
 
 services:
   docker-android-sdk:
-    image: docker-android-sdk
+    image: jianboy/docker-android-sdk:latest

+ 0 - 9
android/android-dev-eclipse/tools/build_project.sh

@@ -1,9 +0,0 @@
-
-
-aapt package -f \
--M AndroidManifest.xml \ 
--I "$ANDROID_HOME/platforms/android-N/android.jar" \
--S res/ \
--J gen/ \
--m \
-

+ 0 - 13
android/android-dev-studio/.dockerignore

@@ -1,13 +0,0 @@
-node_modules
-npm-debug.log
-Dockerfile*
-docker-compose*
-.dockerignore
-.git
-.gitignore
-.env
-*/bin
-*/obj
-README.md
-LICENSE
-.vscode

+ 0 - 27
android/android-dev-studio/Dockerfile

@@ -1,27 +0,0 @@
-FROM ubuntu:18.10
-
-ENV ANDROID_COMPILE_SDK 25
-ENV VERSION_SDK_TOOLS 3859397
-ENV ANDROID_HOME "/sdk"
-ENV PATH "${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools"
-
-RUN sed -i "s|http://archive.ubuntu.com|http://mirrors.aliyun.com|g" /etc/apt/sources.list && apt-get -y update
-
-RUN apt-get install -qqy --no-install-recommends \
-    curl unzip lib32stdc++6 lib32z1 lib32ncurses5 lib32gcc1 lib32stdc++6 libc6-i386 html2text openjdk-8-jdk \
-    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
-# download android-sdk
-RUN curl -s -o sdk-tools.zip https://dl.google.com/android/repository/sdk-tools-linux-${VERSION_SDK_TOOLS}.zip && \
-    unzip /sdk-tools.zip -d /sdk && rm -v /sdk-tools.zip
-
-RUN mkdir -p $ANDROID_HOME/licenses/ && \
-    echo "8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > $ANDROID_HOME/licenses/android-sdk-license && \
-    echo "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_HOME/licenses/android-sdk-preview-license
-
-# Upadte sdkmanager
-RUN mkdir -p /root/.android && \
-    touch /root/.android/repositories.cfg && \
-    sdkmanager --update
-
-CMD ["/bin/bash" ,"-c" ,"while true;do echo hello docker;sleep 1;done"]

+ 0 - 28
android/android-dev-studio/README.md

@@ -1,28 +0,0 @@
-## docker-android
-
-
-| images     | desc | other |
-| -------- | ---- | ---- |
-| android-dev |   基于Ubuntu的Android编译环境。   |      |
-| android-source     |  基于Ubuntu的安卓系统源码编译。    |      |
-|          |      |      |
-
-## usage
-
-1. 启动docker环境
-
-```
-docker-compose up -d
-```
-
-2. 进入容器编译项目
-
-```
-aapt package -f \
--M AndroidManifest.xml \ 
--I "$ANDROID_HOME/platforms/android-N/android.jar" \
--S res/ \
--J gen/ \
--m \
-
-```

+ 0 - 8
android/android-dev-studio/docker-compose.debug.yml

@@ -1,8 +0,0 @@
-version: '2.1'
-
-services:
-  docker-android-sdk:
-    image: docker-android-sdk
-    build:
-      context: .
-      dockerfile: Dockerfile

+ 0 - 5
android/android-dev-studio/docker-compose.yml

@@ -1,5 +0,0 @@
-version: '2.1'
-
-services:
-  docker-android-sdk:
-    image: docker-android-sdk

+ 0 - 9
android/android-dev-studio/tools/build_project.sh

@@ -1,9 +0,0 @@
-
-
-aapt package -f \
--M AndroidManifest.xml \ 
--I "$ANDROID_HOME/platforms/android-N/android.jar" \
--S res/ \
--J gen/ \
--m \
-

+ 0 - 29
android/android-eclipse/ Dockerfile

@@ -1,29 +0,0 @@
-FROM ubuntu:18.10
-
-ENV ANDROID_COMPILE_SDK 25
-ENV VERSION_SDK_TOOLS 3859397
-ENV ANDROID_HOME "/sdk"
-ENV PATH "${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools"
-
-RUN sed -i "s|http://archive.ubuntu.com|http://mirrors.aliyun.com|g" /etc/apt/sources.list && apt-get -y update
-
-RUN apt-get install -qqy --no-install-recommends \
-    curl unzip lib32stdc++6 lib32z1 lib32ncurses5 lib32gcc1 lib32stdc++6 libc6-i386 html2text openjdk-8-jdk \
-    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
-# download android-sdk
-RUN curl -s -o sdk-tools.zip https://dl.google.com/android/repository/sdk-tools-linux-${VERSION_SDK_TOOLS}.zip && \
-    unzip /sdk-tools.zip -d /sdk && rm -v /sdk-tools.zip
-
-RUN mkdir -p $ANDROID_HOME/licenses/ && \
-    echo "8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e" > $ANDROID_HOME/licenses/android-sdk-license && \
-    echo "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_HOME/licenses/android-sdk-preview-license
-
-# Upadte sdkmanager
-RUN mkdir -p /root/.android && \
-    touch /root/.android/repositories.cfg && \
-    sdkmanager --update
-
-CMD ["/bin/bash" ,"-c" ,"while true;do echo hello docker;sleep 1;done"]
-
-

+ 0 - 25
android/android-eclipse/.github/workflows/main.yml

@@ -1,25 +0,0 @@
-
-name: Android CI
-
-on:
-  push:
-    branches: [ as ]
-  pull_request:
-    branches: [ as ]
-
-jobs:
-  build:
-
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v2
-      
-      - name: set up JDK 1.8
-        uses: actions/setup-java@v2
-        with:
-          java-version: 1.8
-          distribution: 'adopt'
-    
-  #     - name: Build Debug APK
-  #       run:

+ 0 - 13
android/android-source/.dockerignore

@@ -1,13 +0,0 @@
-node_modules
-npm-debug.log
-Dockerfile*
-docker-compose*
-.dockerignore
-.git
-.gitignore
-.env
-*/bin
-*/obj
-README.md
-LICENSE
-.vscode

+ 0 - 49
android/android-source/README.md

@@ -1,49 +0,0 @@
-## android-source
-
-android 系统源码编译,android源码特别大,所以不要放到镜像中打包,所以本质上本镜像就是一个 Ubuntu附带gcc等编译工具而已。
-
-**系统要求**
-
-* docker中Ubuntu18
-* 内存16G
-* 磁盘200G SSD
-
-## 使用
-
-1、启动编译系统(略),下面通过docker-compose启动。
-
-```
-docker run --name aosp6 -it android-source /bin/bash
-
-```
-
-2、下载源码,启动编译系统
-
-下载源码可能耗时一两天,大概50G,解压80G,在aosp还原则会120G左右。
-
-```
-sh tools/download_android_repo.sh
-```
-
-这个可以直接插上已经下载好Android系统源码的磁盘,然后把指定目录挂载到docker精选即可。
-
-```
-cd xx/aosp
-docker-composer up -d
-```
-
-3、编译源码
-
-```
-sh tools/build_src.sh
-
-```
-
-4、测试
-
-编译后,在 build会有对象的系统镜像文件,最好真机中刷机体验。或者虚拟机中更加镜像创建,这个时候就需要可视化环境,也就不能在docker中跑了,windows系统中安装好emulator,不是某某模拟器,某某模拟器自带镜像:
-
-```
-emulator -kernel ./kernel/goldfish-android-3.4/arch/x86/boot/zImage &
-```
-

+ 0 - 8
android/android-source/docker-compose.debug.yml

@@ -1,8 +0,0 @@
-version: '2.1'
-
-services:
-  docker-android-sdk:
-    image: docker-android-sdk
-    build:
-      context: .
-      dockerfile: Dockerfile

+ 3 - 0
android/android-source/docker-compose.yml

@@ -5,3 +5,6 @@ services:
     image: android-source
     volumes:
       - .:/root/aosp
+    build:
+      context: .
+      dockerfile: Dockerfile

+ 0 - 5
android/android-source/tools/build_src.sh

@@ -1,5 +0,0 @@
-
-source build/envsetup.sh
-export USER=$(whoami)
-lunch aosp_hammerhead-eng
-make -j16

+ 0 - 16
android/android-source/tools/download_android_repo.sh

@@ -1,16 +0,0 @@
-#!bin/sh
-
-mkdir ~/bin
-PATH=~/bin:$PATH
-
-curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
-chmod a+x ~/bin/repo
-
-# 创建一个空目录用来保存android源代码
-mkdir ~/aosp
-cd ~/aosp
-
-# 指定从清华的镜像,只下6.0.1版本Android 
-repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-6.0.1_r46
-#同步源码树,并发设置为8,不要太大
-repo sync -j8

+ 4 - 1
docker/.github/workflows/main.yml

@@ -9,7 +9,10 @@ jobs:
   build:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+          
       - name: Set up JDK 11
  # 这里使用java11的环境, 其他项目在github action中找到对应的语言环境就行
         uses: actions/setup-java@v2

+ 3 - 3
docker/.github/workflows/vue_deploy.yml

@@ -26,7 +26,7 @@ jobs:
           node-version: [12.x]
     
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: User Node.js ${{natrix.node-version}}
         users: actions/setup=node@v1
@@ -48,7 +48,7 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - uses: actions/download-artifact@v2
         with:
@@ -66,7 +66,7 @@ jobs:
     needs: [docker_image]
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
       - run: |
       docker login -u ${{secrets.DOCKER_HUB_NAME}} -p ${{secrets.DOCKER_HUB_PASSWORD}}
       docker-compose -f docker-compose.yml up -d

+ 0 - 30
docker/db/mongo/docker-compose.debug.yml

@@ -1,30 +0,0 @@
-version: '3.4'
-
-services:
-
-  mongo:
-    image: mongo:latest
-    container_name: infisical-dev-mongo
-    restart: always
-    # env_file: .env
-    environment:
-      - MONGO_INITDB_ROOT_USERNAME=root
-      - MONGO_INITDB_ROOT_PASSWORD=example
-    volumes:
-      - mongo-data:/data/db
-    networks:
-      - infisical-dev
-    ports:
-      - "27017:27017"
-    logging:
-        driver: 'json-file'
-        options:
-            max-size: '30m'
-            max-file: '1'
-            
-volumes:
-  mongo-data:
-
-networks:
-  infisical-dev:
-    driver: bridge

+ 7 - 0
docker/db/mysql/docker-compose.debug.yml

@@ -3,6 +3,8 @@ version: '3.4'
 services:
 
   postgres:
+    # image: 'registry.cn-hangzhou.aliyuncs.com/kennylee/postgresql:12.4'
+    container_name: db_postgres
     image: postgres:16.0
     environment:
       POSTGRES_DB: chat
@@ -15,6 +17,11 @@ services:
     restart: unless-stopped
     networks:
       - app-network
+    logging:
+      driver: 'json-file'
+      options:
+        max-size: '12m'
+        max-file: '5'
 
   mariadb:
     container_name: mariadb_container

+ 0 - 0
docker/db/mysql/my.cnf


+ 0 - 19
docker/db/postgresql/docker-compose.yml

@@ -1,19 +0,0 @@
-version: '2'
-
-services:
-  postgresql:
-    image: 'registry.cn-hangzhou.aliyuncs.com/kennylee/postgresql:12.4'
-    container_name: "postgresql"
-    ports:
-      - '5432:5432'
-    volumes:
-      - './data/data:/bitnami/postgresql'
-      - './data/conf:/bitnami/postgresql/conf/'
-    environment:
-      - POSTGRESQL_PASSWORD=password123456
-    restart: on-failure
-    logging:
-      driver: 'json-file'
-      options:
-        max-size: '12m'
-        max-file: '5'

+ 1 - 0
docker/db/redis/docker-compose.debug.yml

@@ -19,6 +19,7 @@ services:
       options:
         max-size: '30m'
         max-file: '1'
+        
   redis-commander:
     container_name: infisical-dev-redis-commander
     image: rediscommander/redis-commander:latest

+ 0 - 0
docker/rstudio/start.sh


+ 0 - 4
docs/.vuepress/config.js

@@ -1,4 +0,0 @@
-// config.js
-module.exports = {
-    theme: 'vdoing'
-}

+ 97 - 0
docs/dev/android.md

@@ -15,3 +15,100 @@
 docker-compose up -d
 ```
 
+2. 进入容器编译项目
+
+```
+aapt package -f \
+-M AndroidManifest.xml \ 
+-I "$ANDROID_HOME/platforms/android-N/android.jar" \
+-S res/ \
+-J gen/ \
+-m \
+
+```
+
+
+## android-source
+
+android 系统源码编译,android源码特别大,所以不要放到镜像中打包,所以本质上本镜像就是一个 Ubuntu附带gcc等编译工具而已。
+
+**系统要求**
+
+* docker中Ubuntu18
+* 内存16G
+* 磁盘200G SSD
+
+## 使用
+
+1、启动编译系统(略),下面通过docker-compose启动。
+
+```
+docker run --name aosp6 -it android-source /bin/bash
+
+```
+
+2、下载源码,启动编译系统
+
+下载源码可能耗时一两天,大概50G,解压80G,在aosp还原则会120G左右。
+
+```
+sh tools/download_android_repo.sh
+```
+
+这个可以直接插上已经下载好Android系统源码的磁盘,然后把指定目录挂载到docker精选即可。
+
+```
+cd xx/aosp
+docker-composer up -d
+```
+
+3、编译源码
+
+```
+sh tools/build_src.sh
+
+```
+
+4、测试
+
+编译后,在 build会有对象的系统镜像文件,最好真机中刷机体验。或者虚拟机中更加镜像创建,这个时候就需要可视化环境,也就不能在docker中跑了,windows系统中安装好emulator,不是某某模拟器,某某模拟器自带镜像:
+
+```
+emulator -kernel ./kernel/goldfish-android-3.4/arch/x86/boot/zImage &
+```
+
+
+
+## android 源码构建
+
+**下载源码**
+
+采用repo工具同步多个git项目:
+
+```
+
+mkdir ~/bin
+PATH=~/bin:$PATH
+
+curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
+chmod a+x ~/bin/repo
+
+# 创建一个空目录用来保存android源代码
+mkdir ~/aosp
+cd ~/aosp
+
+# 指定从清华的镜像,只下6.0.1版本Android 
+repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-6.0.1_r46
+#同步源码树,并发设置为8,不要太大
+repo sync -j8
+```
+
+**构建源码**
+
+```
+
+source build/envsetup.sh
+export USER=$(whoami)
+lunch aosp_hammerhead-eng
+make -j16
+```

+ 25 - 0
docs/dev/java.md

@@ -1,6 +1,31 @@
 # Java
 
+Dockerfile-build 包含 maven,gradle,ant,java 等工具。
 
+Gradle本地库 `/home/gradle/.gradle`
+Maven本地仓库挂载 `/var/maven/repository`
+
+## Uage
+
+install java, gradle, maven, ant, etc.
+
+java version:
+- 8
+- 11
+- 14
+- 15
+- 16
+- 17
+
+gradle version:
+- 6.8.3
+- 7.0.2
+
+maven version:
+- 3.6.3
+
+ant version:
+- 1.10.9
 
 
 ### 集成部署

+ 27 - 1
docs/dev/nodejs.md

@@ -6,7 +6,7 @@ nodejs 开发,包括vue,react,angular,node服务端,桌面开发等
 如,项目需要在 node14 环境下开发,可以使用以下方式:
 
 ```
-docker run --rm -it -v /workspace:/app node:14 /bin/bash
+docker run --rm -it -w /app -v $(pwd):/app node:16 /bin/bash
 
 ```
 
@@ -56,3 +56,29 @@ git clone https://gitee.com/dromara/mayfly-go
 vscode://vscode-remote/ssh-remote+coding-ci-fc8-1hilhaeop-001%2344201d6d-d571-47fc-9836-7520ca2a61d7-imo@ci.coding.net:2201/workspace/
 
 ```
+
+
+
+
+```
+# 构建镜像
+docker build -t jianboy/node-build:20 .
+
+docker build -t jianboy/dev-allinone:1.0.1 .
+
+# 构建项目
+git clone https://gitee.com/dromara/mayfly-go
+docker run -it --rm -v /workspace:/workspaces jianboy/node-build:20
+
+yarn build
+
+
+docker build -t sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.4 .
+
+
+docker build -t sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.5-flutter -f '.ide/Dockerfile-allinone-flutter'.
+
+
+vscode://vscode-remote/ssh-remote+coding-ci-fc8-1hilhaeop-001%2344201d6d-d571-47fc-9836-7520ca2a61d7-imo@ci.coding.net:2201/workspace/
+
+```

+ 28 - 0
docs/index.md

@@ -0,0 +1,28 @@
+---
+layout: home
+title: A kernel-based root solution for Android
+
+hero:
+  name: KernelSU
+  text: A kernel-based root solution for Android
+  tagline: ""
+  image:
+    src: /logo.png
+    alt: KernelSU
+  actions:
+    - theme: brand
+      text: Get Started
+      link: /guide/what-is-kernelsu
+    - theme: alt
+      text: View on GitHub
+      link: https://github.com/tiann/KernelSU
+
+features:
+  - title: Kernel-based
+    details: As the name suggests, KernelSU works under the Linux kernel giving it more control over userspace applications.
+  - title: Root Access Control
+    details: Only permitted apps may access or see `su`, all other apps are not aware of this.
+  - title: Customizable Root Privileges
+    details: KernelSU allows customization of `su`'s uid, gid, groups, capabilities, and SELinux rules, locking up root privileges.
+  - title: Modules
+    details: Modules may modify /system systemlessly using overlayfs enabling great power.

+ 0 - 11
docs/package.json

@@ -1,11 +0,0 @@
-{
-  "name": "docs",
-  "version": "1.0.1",
-  "description": "总结 github action, gitlab ci/cd, gitpod 等",
-  "main": "index.js",
-  "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
-  },
-  "author": "",
-  "license": "ISC"
-}

+ 1 - 1
dotnet/.github/workflows/main.yml

@@ -11,7 +11,7 @@ jobs:
       runs-on: ubuntu-latest
 
       steps:
-        - uses: actions/checkout@v2
+        - uses: actions/checkout@v4
 
         - name: Setup .NET Core SDK
           uses: actions/setup-dotnet@v1

+ 3 - 3
dotnet/.github/workflows/msbuild.yml

@@ -5,7 +5,7 @@ jobs:
     runs-on: windows-latest
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
       
     - name: Add msbuild to PATH
       uses: microsoft/setup-msbuild@v1
@@ -38,7 +38,7 @@ jobs:
     runs-on: windows-latest
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
       
     - name: Add msbuild to PATH
       uses: microsoft/setup-msbuild@v1
@@ -71,7 +71,7 @@ jobs:
     # runs-on: windows-latest
 
     # steps:
-    # - uses: actions/checkout@v2
+    # - uses: actions/checkout@v4
       
     # - name: Add msbuild to PATH
       # uses: microsoft/setup-msbuild@v1

+ 2 - 2
dotnet/.github/workflows/push_to_docker.yml

@@ -20,7 +20,7 @@ jobs:
         node-version: [12.x]
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
     - name: Use Node.js ${{ matrix.node-version }}
       uses: actions/setup-node@v1
       with:
@@ -37,7 +37,7 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
     - name: Setup .NET Core
       uses: actions/setup-dotnet@v1
       with:

+ 2 - 2
dotnet/docker-compose.debug.yml

@@ -1,8 +1,8 @@
 version: '3.4'
 
 services:
-  githubactionscreator:
-    image: githubactionscreator
+  dotnet:
+    image: jianbot/dotnet:latest
     build:
       context: .
       dockerfile: ./Dockerfile

+ 1 - 1
flutter/.github/workflows/android-build.yml

@@ -13,7 +13,7 @@ jobs:
         os: [ubuntu-latest]
     runs-on: ${{matrix.os}}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: Setup Java JDK
         uses: actions/setup-java@v2

+ 10 - 2
flutter/.github/workflows/gh-pages.yml

@@ -9,6 +9,14 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
+
       - uses: subosito/flutter-action@v1
-      - uses: erickzanardo/flutter-gh-pages@v3
+
+      # - uses: erickzanardo/flutter-gh-pages@v3
+      - name: Deploy to GitHub Pages
+        uses: JamesIves/github-pages-deploy-action@v4.6.1
+        with:
+          branch: gh-pages
+          folder: docsite/_site
+          clean: true

+ 1 - 1
flutter/.github/workflows/ios-build.yml

@@ -15,7 +15,7 @@ jobs:
       XC_WORKSPACE: ${{ 'MyApp.xcworkspace' }}
       XC_SCHEME: ${{ 'MyApp' }}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: Setup Java JDK
         uses: actions/setup-java@v2

+ 1 - 1
flutter/.github/workflows/ios-sign-file.yml

@@ -11,7 +11,7 @@ jobs:
         os: [ macos-latest]
     runs-on: ${{matrix.os}}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: Build sign ile
         run: |

+ 1 - 1
flutter/.github/workflows/main.yml

@@ -11,7 +11,7 @@ jobs:
         os: [ubuntu-latest, windows-latest, macos-latest]
     runs-on: ${{matrix.os}}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: Setup Java JDK
         uses: actions/setup-java@v2

+ 4 - 4
flutter/.github/workflows/pc-build.yml

@@ -14,7 +14,7 @@ jobs:
       GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
     steps:
-      - uses: actions/checkout@v2.3.4
+      - uses: actions/checkout@v4.3.4
 
       - name: Setup Flutter SDK
         uses: subosito/flutter-action@v1.5.3
@@ -44,7 +44,7 @@ jobs:
       GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
     steps:
-      - uses: actions/checkout@v2.3.4
+      - uses: actions/checkout@v4.3.4
 
       - name: Setup Flutter SDK
         uses: subosito/flutter-action@v1.5.3
@@ -74,7 +74,7 @@ jobs:
       GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
     steps:
-      - uses: actions/checkout@v2.3.4
+      - uses: actions/checkout@v4.3.4
 
       - name: Setup Flutter SDK
         uses: subosito/flutter-action@v1.5.3
@@ -99,7 +99,7 @@ jobs:
   #   needs: [flutter_test]
   #   runs-on: ubuntu-latest
   #   steps:
-  #     - uses: actions/checkout@v2
+  #     - uses: actions/checkout@v4
   #     - uses: actions/setup-java@v1
   #       with:
   #         java-version: "12.x"

+ 1 - 1
flutter/.ide/Dockerfile

@@ -1 +1 @@
-FROM sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.11-flutter
+FROM sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.12-flutter

+ 6 - 1
flutter/.ide/Dockerfile-Allinone-flutter

@@ -111,6 +111,8 @@ ENV PYTHON_BUILD_MIRROR_URL_SKIP_CHECKSUM=1
 ENV PYTHON_BUILD_MIRROR_URL=https://mirrors.huaweicloud.com/python/
 # RUN pyenv install ${PYTHON_VERSION} &&  pyenv global ${PYTHON_VERSION}
 
+RUN pip install jupyter jupyterlab jupyter_contrib_nbextensions
+
 # install R
 RUN apt-get update && apt-get install -y \
     r-base r-base-dev
@@ -125,6 +127,7 @@ ENV RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
 ENV RUSTUP_DIST_ROOT=https://mirrors.ustc.edu.cn/rust-static
 
 RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
+ENV PATH="$HOME/.cargo/bin:$PATH"
 
 # # install .net core 6.0
 # RUN wget http://ftp.us.debian.org/debian/pool/main/i/icu/libicu67_67.1-1_amd64.deb && \
@@ -209,7 +212,9 @@ RUN curl -fsSL https://code-server.dev/install.sh | sh &&\
     code-server --install-extension vscjava.vscode-spring-initializr &&\
     echo done
 
-# code-server --install-extension ms-python.vscode-pylance &&\
+# install manual
+# docker run -it --rm -v /workspace:/workspaces sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.11-flutter /bin/bash
+RUN code-server --install-extension ms-python.vscode-pylance-2024.6.103.vsix
 # code-server --install-extension ms-dotnettools.csharp &&\
 COPY ./frp /opt/frp
 

+ 0 - 72
flutter/build.sh

@@ -1,72 +0,0 @@
-#!/bin/bash
-# @Contact :   liuyuqi.gov@msn.cn
-# @Time    :   2023/03/19 19:11:52
-# @License :   (C)Copyright 2022 liuyuqi.
-# @Desc    :   build apk
-###############################################################################
-source /etc/profile
-
-export JAVA_HOME=/usr/local/openjdk-11
-# export JAVA_HOME=/root/.sdkman/candidates/java/21.0.1-ms/
-# source "$HOME/.sdkman/bin/sdkman-init.sh"
-# sdk list
-# sdk install 8.0.392-librca
-# sdk default 8.0.392-librca
-
-# flutter
-export PUB_HOSTED_URL=https://pub.flutter-io.cn
-export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
-
-# cd /opt/flutter
-# git checkout 2.0.5 
-# git checkout 3.7.9 
-# git checkout 3.13.8
-# flutter doctor
-
-# cd /workspace/flutter_you
-# flutter build apk
-# flutter build apk --debug
-# flutter pub get
-
-# android
-# cd /workspace/packagehunter
-# chmod +x gradlew
-# ./gradlew assembleDebug
-# ./gradlew cleanBuildCache
-
-# aapt package -f \
-# -M AndroidManifest.xml \ 
-# -I "$ANDROID_HOME/platforms/android-N/android.jar" \
-# -S res/ \
-# -J gen/ \
-# -m \
-
-# java
-# mvn clean package -Dmaven.test.skip=true
-
-# node
-# cd 
-# yarn && yarn build
-# yarn && yarn dev
-
-# go
-# cd 
-# go build
-
-# python
-# pip install -r requirements.txt
-# python main.py
-
-# docker
-cd /workspace/blog
-docker compose -f "docker-compose.debug.yml" down 
-docker compose -f "docker-compose.debug.yml" up -d --build
-docker compose  -f "docker-compose.debug.yml" up -d --build node_container
-# docker exec -it java_container /bin/sh
-docker exec -it node_container /bin/bash
-
-cd /app/qihang.ecom.erp/framework
-mvn package && mvn install
-
-cd /app/qihang.ecom.erp/ecerp-api
-mvn spring-boot:run

+ 0 - 25
go/.dockerignore

@@ -1,25 +0,0 @@
-**/.classpath
-**/.dockerignore
-**/.env
-**/.git
-**/.gitignore
-**/.project
-**/.settings
-**/.toolstarget
-**/.vs
-**/.vscode
-**/*.*proj.user
-**/*.dbmdl
-**/*.jfm
-**/bin
-**/charts
-**/docker-compose*
-**/compose*
-**/Dockerfile*
-**/node_modules
-**/npm-debug.log
-**/obj
-**/secrets.dev.yaml
-**/values.dev.yaml
-LICENSE
-README.md

+ 2 - 2
go/.github/workflows/main.yml

@@ -11,7 +11,7 @@ jobs:
     runs-on: [ ubuntu-latest ]
     if: github.ref=='refs/heads/master' || github.ref=='refs/heads/main' || starts-with(github.ref, 'refs/tags/')
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
       - uses: actions/setup-go@v1
       - name: Test
         run: |
@@ -44,7 +44,7 @@ jobs:
         id: go
 
       - name: Check out code into the Go module directory
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: cache
         id: cache

+ 0 - 29
go/README.md

@@ -1,29 +0,0 @@
-# go 构建
-
-```
-# 构建镜像
-docker build -t jianboy/go-build:1.20 .
-docker run -it --rm -v /workspace/caddy:/workspaces jianboy/go-build:1.20
-
-alias go='docker run -it --rm -v /workspace/caddy:/workspaces jianboy/go-build:1.20'
-
-
-# 构建项目
-git clone https://github.com/caddyserver/caddy
-docker run -it --rm -v /workspace:/workspaces jianboy/go-build:1.20
-cd caddy/cmd/caddy/
-go build -o caddy
-
-GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o caddy
-
-docker build -t jianboy/go-build:1.21 .
-
-git clone https://gitee.com/dromara/mayfly-go
-docker run -it --rm -v /workspace/mayfly-go/server:/workspaces jianboy/go-build:1.21
-
-go mod download
-GO111MODULE=on CGO_ENABLED=0 GOOS=linux \
-    go build -a \
-    -o mayfly-go main.go
-
-```

+ 0 - 18
go/docker-compose.debug.yml

@@ -1,18 +0,0 @@
-version: '3.4'
-
-services:
-  githubactionscreator:
-    image: githubactionscreator
-    build:
-      context: .
-      dockerfile: ./Dockerfile
-    environment:
-      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
-    ports:
-      - 3000:3000
-      - 5005:5005
-    logging:
-      driver: 'json-file'
-      options:
-        max-size: '10m'
-        max-file: '1'

+ 1 - 1
ios/.github/workflows/build.yml

@@ -14,7 +14,7 @@ jobs:
     runs-on: macOS-latest
     steps:
       - name: Check out branch
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Swift, Objective-C - Carthage
         uses: actions/cache@v2

+ 0 - 25
java/.dockerignore

@@ -1,25 +0,0 @@
-**/.classpath
-**/.dockerignore
-**/.env
-**/.git
-**/.gitignore
-**/.project
-**/.settings
-**/.toolstarget
-**/.vs
-**/.vscode
-**/*.*proj.user
-**/*.dbmdl
-**/*.jfm
-**/bin
-**/charts
-**/docker-compose*
-**/compose*
-**/Dockerfile*
-**/node_modules
-**/npm-debug.log
-**/obj
-**/secrets.dev.yaml
-**/values.dev.yaml
-LICENSE
-README.md

+ 1 - 1
java/.github/workflows/main.yml

@@ -13,7 +13,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Check out code
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Set up JDK 1.8
         uses: actions/setup-java@v2

+ 0 - 29
java/README.md

@@ -1,29 +0,0 @@
-# Java
-
-Dockerfile-build 包含 maven,gradle,ant,java 等工具。
-
-Gradle本地库 `/home/gradle/.gradle`
-Maven本地仓库挂载 `/var/maven/repository`
-
-## Uage
-
-install java, gradle, maven, ant, etc.
-
-java version:
-- 8
-- 11
-- 14
-- 15
-- 16
-- 17
-
-gradle version:
-- 6.8.3
-- 7.0.2
-
-maven version:
-- 3.6.3
-
-ant version:
-- 1.10.9
-

+ 6 - 1
java/docker-compose.debug.yml

@@ -11,4 +11,9 @@ services:
     ports:
       - 3000:3000
       - 5005:5005
-    command: ["/bin/sh", "-c", "while true; do sleep 1000; done"]
+    command: ["/bin/sh", "-c", "while true; do sleep 1000; done"]
+    logging:
+      driver: 'json-file'
+      options:
+        max-size: '10m'
+        max-file: '1'

+ 16 - 0
java/docker-compose.yml

@@ -35,6 +35,22 @@ services:
     environment:
       - H2_OPTIONS=-ifNotExists
 
+  adminer:
+    image: adminer:latest
+    ports:
+      - 8080:8080
+  
+  sqlserver:
+    container_name: db_sqlserver
+    # image: mcr.microsoft.com/mssql/server:2019-latest
+    image: microsoft/mssql-server-linux:2017-latest
+    environment:
+      - ACCEPT_EULA=Y
+      - SA_PASSWORD=Aa_12345678
+      - MSSQL_SA_PASSWORD=Aa_12345678
+    ports:
+      - 1433:1433
+
 networks:
   default:
     external:

+ 1 - 1
nodejs/.github/react/.github/workflows/main.yml

@@ -16,7 +16,7 @@ jobs:
     steps:
 
     - name: Check out branch
-      uses: actions/checkout@v2
+      uses: actions/checkout@v4
 
     - name: Use Node.js ${{ matrix.node-version }}
       uses: actions/setup-node@v1

+ 2 - 2
nodejs/.github/react/.github/workflows/react_go.yml

@@ -24,7 +24,7 @@ jobs:
     steps:
 
     - name: Check out branch
-      uses: actions/checkout@v2
+      uses: actions/checkout@v4
 
     - name: Use Node.js ${{ matrix.node-version }}
       uses: actions/setup-node@v1
@@ -49,7 +49,7 @@ jobs:
       id: go
 
     - name: Check out branch
-      uses: actions/checkout@v2
+      uses: actions/checkout@v4
 
     - name: Download dependencies
       run: |

+ 1 - 1
nodejs/.github/workflows/main.yml

@@ -14,7 +14,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Check out branch
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Get npm cache directory
         id: npm-cache-dir

+ 0 - 38
nodejs/README.md

@@ -1,38 +0,0 @@
-# nodejs
-
-## Dockerfile
-
-常见的vue等前后端分离项目,buider层构建,再用base层运行。排除不必要的构建环境。
-
-## Dockerfile-front-backend
-
-前后端都是nodejs项目,且前后端都编译运行。
-
-* 前端编译生成放入./public目录
-* 后端tsup编译生成放入./build目录
-* 运行 esno ./build/index.js启动nodejs项目
-
-
-
-```
-# 构建镜像
-docker build -t jianboy/node-build:20 .
-
-docker build -t jianboy/dev-allinone:1.0.1 .
-
-# 构建项目
-git clone https://gitee.com/dromara/mayfly-go
-docker run -it --rm -v /workspace:/workspaces jianboy/node-build:20
-
-yarn build
-
-
-docker build -t sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.4 .
-
-
-docker build -t sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.5-flutter -f '.ide/Dockerfile-allinone-flutter'.
-
-
-vscode://vscode-remote/ssh-remote+coding-ci-fc8-1hilhaeop-001%2344201d6d-d571-47fc-9836-7520ca2a61d7-imo@ci.coding.net:2201/workspace/
-
-```

+ 1 - 1
others/.github/workflows/dl_youtube.yml

@@ -7,7 +7,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Clone repository
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: download video
         run: |

+ 3 - 2
others/.github/workflows/genshin.yml

@@ -1,6 +1,7 @@
 name: "Genshin Impact Helper"
 
 on:
+# workflow_dispatch 手动点击 run 触发
   workflow_dispatch:
   schedule:
     - cron: "0 22 * * *"
@@ -10,10 +11,10 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       - name: Set up python
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: 3.8
 

+ 1 - 1
others/.github/workflows/test.yml

@@ -39,7 +39,7 @@ jobs:
       report_on: "routes,lib"
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
 
       # 输出环境变量
       - run: echo $CI

+ 18 - 0
package.json

@@ -0,0 +1,18 @@
+{
+  "name": "flutter_docs",
+  "version": "1.0.1",
+  "description": "总结 github action, gitlab ci/cd, gitpod 等",
+  "main": "index.js",
+  "devDependencies": {
+    "vitepress": "^1.3.0",
+    "vue": "^3.4.27"
+  },
+  "scripts": {
+    "docs:dev": "vitepress dev docs",
+    "docs:build": "vitepress build docs",
+    "docs:preview": "vitepress preview docs"
+  },
+  "type": "module",
+  "author": "",
+  "license": "ISC"
+}

+ 0 - 24
php/.dockerignore

@@ -1,24 +0,0 @@
-**/.classpath
-**/.dockerignore
-**/.env
-**/.git
-**/.gitignore
-**/.project
-**/.settings
-**/.toolstarget
-**/.vs
-**/.vscode
-**/*.*proj.user
-**/*.dbmdl
-**/*.jfm
-**/bin
-**/charts
-**/docker-compose*
-**/compose*
-**/Dockerfile*
-**/node_modules
-**/npm-debug.log
-**/obj
-**/secrets.dev.yaml
-**/values.dev.yaml
-README.md

+ 1 - 1
php/.github/workflows/main.yml

@@ -14,7 +14,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Check out branch
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Get Composer Cache Directory
         id: composer-cache

+ 0 - 20
php/deploy/docker-compose.yml

@@ -1,20 +0,0 @@
-version: '3.4'
-
-services:
-  app:
-    image: githubactionscreator
-    build:
-      context: .
-      dockerfile: ./Dockerfile
-  
-  nginx:
-    image: imageName
-  
-  redis:
-    image: imageName
-  
-  mysql:
-    image: imageName
-  
-  php:
-    image: imageName

+ 13 - 4
python/.github/workflows/autoci.yml

@@ -8,6 +8,10 @@ on:
   schedule:
   - cron: "0 2 * * 1-5"
 
+env:
+  POETRY_VERSION: 1.8.3
+  PYTHON_VERSION: "3.12"
+
 jobs:
   build:
     strategy:
@@ -23,13 +27,18 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
         
-      - name: Set up Python 3.8
+      - name: Set up Python
         id: setup-python
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
+        with:
+          python-version: ${{ env.PYTHON_VERSION }}
+
+      - name: Install Poetry ${{ env.POETRY_VERSION }}
+        uses: abatilo/actions-poetry@v3.0.0
         with:
-          python-version: 3.8
+          poetry-version: ${{ env.POETRY_VERSION }}
 
       - uses: actions/cache@v2
         with:

+ 1 - 1
python/.github/workflows/publish.yml

@@ -22,7 +22,7 @@ jobs:
           ref: ${{ github.head_ref }}
 
       - name: 🐍 Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
 

+ 2 - 2
python/.github/workflows/publish2.yml

@@ -8,9 +8,9 @@ jobs:
     if: startsWith(github.event.ref, 'refs/tags')
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
       - name: Set up Python 3.8
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: 3.8
       - name: Upgrade pip

+ 1 - 1
python/.github/workflows/pyinstall_package.yml

@@ -25,7 +25,7 @@ jobs:
           echo "::set-output name=date::$(date +%Y%m%d)"
 
       - name: Set Up Python
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v5
         with:
           python-version: '3.9'
           cache: pip

+ 2 - 2
python/.github/workflows/pylint.yml

@@ -11,10 +11,10 @@ jobs:
         python-version: [3.8]
 
     steps:
-    - uses: actions/checkout@v2
+    - uses: actions/checkout@v4
     
     - name: Set up Python ${{ matrix.python-version }}
-      uses: actions/setup-python@v4
+      uses: actions/setup-python@v5
       with:
         python-version: ${{ matrix.python-version }}
 

+ 0 - 27
python/README.md

@@ -1,27 +0,0 @@
-# python
-
-
-# Deploy
-
-
-部署的方法很多
-
-## 前后端分别运行
-
-开发模式下可以这样做
-
-## nginx + 前后分离
-
-前端静态打包dist,nginx指定root目录即可,对于/api 请求,反向代理转发到 proxy_pass http://127.0.0.1:9999;
-
-## 前端打包 dist,放到后端 dist 目录
-
-前后端合并,适合打包成二进制交付部署
-
-## docker 部署
-
-基于 nginx + 前后分离 模式,后端打包 jiamboy/fastapi 镜像,镜像中安装 nginx,多阶段构建镜像,把前端dist复制到后端镜像。启动命令:先启动nginx(后台自动运行),然后启动python app.py
-
-## docker-compose 部署
-
-前端 + nginx 启动一个容器,后端 python.py 启动一个容器,数据库,redis等分别启动一个容器。

+ 0 - 13
python/docker-compose.debug.yml

@@ -1,13 +0,0 @@
-version: '3.4'
-
-services:
-  githubactionscreator:
-    image: githubactionscreator
-    build:
-      context: .
-      dockerfile: ./Dockerfile
-    environment:
-      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
-    ports:
-      - 3000:3000
-      - 5005:5005

+ 10 - 2
python/docker-compose.yml

@@ -56,7 +56,7 @@ services:
 
   mongo:
     container_name: infisical-mongo
-    image: mongo
+    image: mongo:latest
     restart: always
     env_file: .env
     environment:
@@ -66,7 +66,14 @@ services:
       - mongo-data:/data/db
     networks:
       - infisical
-
+    ports:
+      - "27017:27017"
+    logging:
+        driver: 'json-file'
+        options:
+            max-size: '30m'
+            max-file: '1'
+            
 volumes:
   mongo-data:
     driver: local
@@ -75,3 +82,4 @@ volumes:
 
 networks:
   infisical:
+    driver: bridge

+ 3 - 1
ruby/Dockerfile

@@ -14,4 +14,6 @@ RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
 
 # EXPOSE 8080
 # VOLUME [ "/data" ]
-CMD [ "/bin/bash" ]
+CMD [ "/bin/bash" ]
+
+#ruby script/rails server -p8081 webrick -e production -d

+ 1 - 1
ruby/build.yml

@@ -15,7 +15,7 @@ jobs:
     
     steps:
     - name: Check out branch
-      uses: actions/checkout@v2
+      uses: actions/checkout@v4
 
     - name: Cache RubyGems
       uses: actions/cache@v2

+ 3 - 3
rust/docker-compose.debug.yml

@@ -1,7 +1,8 @@
 version: '3.4'
 
 services:
-  githubactionscreator:
+  rust-devcontainer:
+    container_name: rust-devcontainer
     image: jianboy/rust:latest
     build:
       context: .
@@ -9,7 +10,6 @@ services:
     environment:
       JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
     ports:
-      - 3000:3000
-      - 5005:5005
+      - 8080:8080