2024-04-29 02:07:50 +08:00
|
|
|
### gitea 搭建
|
2023-11-13 22:37:27 +08:00
|
|
|
|
2024-04-29 02:07:50 +08:00
|
|
|
#### 创建容器
|
2023-11-13 22:37:27 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
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
|
2024-01-22 18:24:59 +08:00
|
|
|
wget -O gitea https://dl.gitea.com/gitea/1.21.1/gitea-1.21.1-linux-amd64
|
2023-11-13 22:37:27 +08:00
|
|
|
chmod +x gitea
|
|
|
|
./gitea web
|
|
|
|
```
|