diff --git a/sapi/docker/gitea/README.md b/sapi/docker/gitea/README.md new file mode 100644 index 0000000000..bf11a9eb21 --- /dev/null +++ b/sapi/docker/gitea/README.md @@ -0,0 +1,15 @@ + + +install gitea with docker + +https://docs.gitea.com/zh-cn/installation/install-with-docker + + + +k8s 使用的端口 + +https://kubernetes.io/zh-cn/docs/reference/networking/ports-and-protocols/ + +不带选择器的服务 +Services without selectors +https://kubernetes.io/docs/concepts/services-networking/service/#services-without-selectors \ No newline at end of file diff --git a/sapi/docker/gitea/docker-compose.yml b/sapi/docker/gitea/docker-compose.yml new file mode 100644 index 0000000000..cf62375aab --- /dev/null +++ b/sapi/docker/gitea/docker-compose.yml @@ -0,0 +1,42 @@ +version: "3" + +networks: + gitea: + external: false + +services: + server: + image: docker.io/gitea/gitea:1.22.6 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=gitea + restart: always + networks: + - gitea + volumes: + - ./gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "33001:3000" + - "33002:22" + depends_on: + - db + + db: + image: docker.io/library/postgres:17 + restart: always + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + networks: + - gitea + volumes: + - ./postgres:/var/lib/postgresql/data \ No newline at end of file diff --git a/sapi/quickstart/clean-folder-for-extra-build.sh b/sapi/quickstart/clean-folder-for-extra-build.sh index 8e751e9047..6082d024a5 100644 --- a/sapi/quickstart/clean-folder-for-extra-build.sh +++ b/sapi/quickstart/clean-folder-for-extra-build.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash - __DIR__=$( cd "$(dirname "$0")" pwd @@ -14,96 +13,84 @@ cd ${__PROJECT__} GIT_BRANCH=$(git branch | grep '* ' | awk '{print $2}') echo "current git branch : "$GIT_BRANCH -if [ $GIT_BRANCH = 'new_dev' ] ;then - echo ' Deleting folder is not allow in this branch : ' $GIT_BRANCH ; +if [ $GIT_BRANCH = 'new_dev' ]; then + echo ' Deleting folder is not allow in this branch : ' $GIT_BRANCH exit 0 fi echo '正在执行删除无关的文件或者文件夹' -cd ${__DIR__}/linux/ - +cd ${__PROJECT__}/sapi/quickstart/linux/ test -d SDS && rm -rf SDS test -d kubernetes && rm -rf kubernetes test -d qemu && rm -rf qemu test -d SDN && rm -rf SDN cd ${__PROJECT__}/ - test -f sync-source-code.php && rm -f sync-source-code.php cd ${__PROJECT__}/sapi/ - test -d build-dependencies-container && rm -rf build-dependencies-container - test -d tools && rm -rf tools cd ${__PROJECT__}/sapi/src/builder/ - test -d library_shared && rm -rf library_shared cd ${__PROJECT__}/sapi/src/ - test -d library_builder && rm -rf library_builder cd ${__PROJECT__}/sapi/docker/ - test -d database && rm -rf database - test -d database-ui && rm -rf database-ui - test -d elasticsearch && rm -rf elasticsearch - test -d grafana && rm -rf grafana - test -d minio && rm -rf minio - test -d mysql && rm -rf mysql - test -d neo4j && rm -rf neo4j - test -d nginx && rm -rf nginx - test -d postgis && rm -rf postgis - test -d rabbitmq && rm -rf rabbitmq - test -d redis && rm -rf redis - +test -d gitea && rm -rf gitea cd ${__PROJECT__}/.github/workflows -test -f ceph.yml && rm -rf ceph.yml -test -f kubernetes.yml && rm -rf kubernetes.yml -test -f ovn.yml && rm -rf ovn.yml -test -f ovn.yml && rm -rf ovn.yml +test -f ceph.yml && rm -rf ceph.yml +test -f kubernetes.yml && rm -rf kubernetes.yml +test -f ovn.yml && rm -rf ovn.yml +test -f build-debian-builder-container.sh && rm -rf build-debian-builder-container.sh +test -f download-webrtc.yml && rm -rf download-webrtc.yml +test -f windows-native-2022.yml && rm -rf windows-native-2022.yml +test -f windows-native-vs2019.ymll && rm -rf windows-native-vs2019.yml +test -f windows-native-vs2022.yml && rm -rf windows-native-vs2022.yml cd ${__PROJECT__}/sapi/quickstart test -d swoole-install && rm -rf swoole-install +cd ${__PROJECT__}/sapi/quickstart/windows/ +test -d msys2-build && rm -rf msys2-build +test -d native-build && rm -rf native-build + cd ${__PROJECT__} -test -f setup-aria2-runtime.sh && rm -rf setup-aria2-runtime.sh -test -f setup-coturn-runtime.sh && rm -rf setup-coturn-runtime.sh -test -f setup-ffmpeg-runtime.sh && rm -rf setup-ffmpeg-runtime.sh +test -f setup-aria2-runtime.sh && rm -rf setup-aria2-runtime.sh +test -f setup-coturn-runtime.sh && rm -rf setup-coturn-runtime.sh +test -f setup-ffmpeg-runtime.sh && rm -rf setup-ffmpeg-runtime.sh test -f setup-go-runtime.sh && rm -rf setup-go-runtime.sh -test -f setup-nginx-runtime.sh && rm -rf setup-nginx-runtime.sh -test -f setup-nodejs-runtime.sh && rm -rf setup-nodejs-runtime.sh -test -f setup-php-cli-runtime.sh && rm -rf setup-php-cli-runtime.sh -test -f setup-php-fpm-runtime.sh && rm -rf setup-php-fpm-runtime.sh -test -f setup-privoxy-runtime.sh && rm -rf setup-privoxy-runtime.sh -test -f setup-socat-runtime.sh && rm -rf setup-socat-runtime.sh -test -f setup-supervisord.sh && rm -rf setup-supervisord.sh -test -f setup-swoole-cli-pre-runtime.sh && rm -rf setup-swoole-cli-pre-runtime.sh -test -f setup-webBenchmark-runtime.sh && rm -rf setup-webBenchmark-runtime.sh -test -f setup-swow-cli-runtime.sh && rm -rf setup-swow-cli-runtime.sh -test -f setup-php-fpm-7.4-runtime.sh && rm -rf setup-php-fpm-7.4-runtime.sh -test -f setup-swoole-cli-runtime.sh && rm -rf setup-swoole-cli-runtime.sh -test -f setup-php-cli-7.4-runtime.sh && rm -rf setup-php-cli-7.4-runtime.sh -test -f setup-php-cli-7.3-runtime.sh && rm -rf setup-php-cli-7.3-runtime.sh - +test -f setup-nginx-runtime.sh && rm -rf setup-nginx-runtime.sh +test -f setup-nodejs-runtime.sh && rm -rf setup-nodejs-runtime.sh +test -f setup-php-cli-runtime.sh && rm -rf setup-php-cli-runtime.sh +test -f setup-php-fpm-runtime.sh && rm -rf setup-php-fpm-runtime.sh +test -f setup-privoxy-runtime.sh && rm -rf setup-privoxy-runtime.sh +test -f setup-socat-runtime.sh && rm -rf setup-socat-runtime.sh +test -f setup-supervisord.sh && rm -rf setup-supervisord.sh +test -f setup-swoole-cli-pre-runtime.sh && rm -rf setup-swoole-cli-pre-runtime.sh +test -f setup-webBenchmark-runtime.sh && rm -rf setup-webBenchmark-runtime.sh +test -f setup-swow-cli-runtime.sh && rm -rf setup-swow-cli-runtime.sh +test -f setup-php-fpm-7.4-runtime.sh && rm -rf setup-php-fpm-7.4-runtime.sh +test -f setup-swoole-cli-runtime.sh && rm -rf setup-swoole-cli-runtime.sh +test -f setup-php-cli-7.4-runtime.sh && rm -rf setup-php-cli-7.4-runtime.sh +test -f setup-php-cli-7.3-runtime.sh && rm -rf setup-php-cli-7.3-runtime.sh cd ${__PROJECT__} echo '删除完毕' echo '' - -