添加gitea服务器搭建方法
This commit is contained in:
parent
7c99d56524
commit
b0a434352d
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"DP1363F.C": "cpp"
|
||||
}
|
||||
}
|
13
GIT/仓库迁移.md
Normal file
13
GIT/仓库迁移.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 仓库迁移
|
||||
|
||||
* 从原仓库地址克隆一份裸版本库
|
||||
|
||||
```
|
||||
git clone --bare https://gitee.com/oldxxx/oldxxx.git
|
||||
```
|
||||
|
||||
* 原仓库所有分支同步新仓库
|
||||
|
||||
```
|
||||
git push --mirro https://gitee.com/newxxx/newxxx.git
|
||||
```
|
|
@ -16,7 +16,12 @@ git clone https://git-master.quectel.com/smart/rk3568_ubuntu_r60_v1.3.2.git
|
|||
``` -->
|
||||
|
||||
```
|
||||
git clone http://192.168.1.223:3000/hehaoyang/rk3568_ubuntu_r60_v1.3.2.git
|
||||
git clone http://192.168.1.223:3000/hehaoyang/quectel_rk3568_ubuntu_r60_v1.3.2.git
|
||||
|
||||
cd quectel_rk3568_ubuntu_r60_v1.3.2
|
||||
chmod 777 -R yocto/packages/
|
||||
chmod 777 -R buildroot/dl/
|
||||
|
||||
# 切换分支
|
||||
```
|
||||
|
||||
|
@ -32,7 +37,7 @@ sudo dpkg -i qemu-user-static_7.2+dfsg-5ubuntu2.2_amd64.deb
|
|||
```
|
||||
docker load -i smartlinux-docker-ubuntu2004_v1.2.tar.gz
|
||||
|
||||
docker run --privileged -v /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/:/home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/ -it 0bf5597a5df5 /bin/bash
|
||||
docker run --privileged -v /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/:/home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/ -it 0bf5597a5df5 /bin/bash
|
||||
```
|
||||
|
||||
### 编译
|
||||
|
@ -41,7 +46,7 @@ apt-get update
|
|||
apt-get install -y rsyslog curl libxslt1-dev asciidoc
|
||||
cd /home/hehaoyang/works
|
||||
usermod -u 1001 quectel
|
||||
cd /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/
|
||||
cd /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/
|
||||
chmod 664 ./*
|
||||
chmod 755 postinst_intercept
|
||||
cd ../../../../
|
||||
|
@ -49,9 +54,11 @@ chown -v -R quectel /home/hehaoyang/works/quectel/
|
|||
|
||||
su quectel
|
||||
|
||||
git config --global --add safe.directory /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2
|
||||
git config --global --add safe.directory /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2
|
||||
|
||||
source build-quec.sh
|
||||
envsetup_yocto
|
||||
rebake qti-ubuntu-robotics-image
|
||||
build-all-image-yocto
|
||||
|
||||
# source build-quec.sh
|
||||
|
|
14
Ubuntu/gitea搭建.md
Normal file
14
Ubuntu/gitea搭建.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# gitea 搭建
|
||||
|
||||
## 创建容器
|
||||
|
||||
```
|
||||
docker run --privileged --mount type=bind,source=/home/hehaoyang/works/gitea,target=/home/hehaoyang/workspace --name="gitea" -d -i -t -p 3000:3000 ubuntu_18_04
|
||||
docker start gitea
|
||||
docker attach gitea
|
||||
sudo apt install git wget -y
|
||||
cd workspace/gitea
|
||||
wget -O gitea https://dl.gitea.com/gitea/1.19/gitea-1.19-linux-amd64
|
||||
chmod +x gitea
|
||||
./gitea web
|
||||
```
|
Loading…
Reference in New Issue
Block a user