Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Dec 30, 2024
1 parent 31d563e commit f811c5b
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 46 deletions.
15 changes: 15 additions & 0 deletions sapi/docker/gitea/README.md
Original file line number Diff line number Diff line change
@@ -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
42 changes: 42 additions & 0 deletions sapi/docker/gitea/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
79 changes: 33 additions & 46 deletions sapi/quickstart/clean-folder-for-extra-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash


__DIR__=$(
cd "$(dirname "$0")"
pwd
Expand All @@ -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 ''


0 comments on commit f811c5b

Please sign in to comment.