Gitea kasutamine: erinevus redaktsioonide vahel
Allikas: Imre kasutab arvutit
Mine navigeerimisribaleMine otsikasti
| (ei näidata sama kasutaja 8 vahepealset redaktsiooni) | |||
| 23. rida: | 23. rida: | ||
- USER_UID=1000 |
- USER_UID=1000 |
||
- USER_GID=1000 |
- USER_GID=1000 |
||
| − | - TZ=Europe/ |
+ | - TZ=Europe/Tallinn |
volumes: |
volumes: |
||
| 52. rida: | 52. rida: | ||
root@dh-minio-01:/srv/gitea/dc# docker compose -f docker-compose-gitea.yaml up -d |
root@dh-minio-01:/srv/gitea/dc# docker compose -f docker-compose-gitea.yaml up -d |
||
</pre> |
</pre> |
||
| − | |||
| − | Tulemusena saab läheneda ... |
||
Veebikoht paistab selline |
Veebikoht paistab selline |
||
| + | [[Fail:20260603-gitea-01.png|900px]] |
||
| − | TODO |
||
kus |
kus |
||
* TODO |
* TODO |
||
| + | |||
| + | admin kaustaja tekitamine |
||
| + | |||
| + | [[Fail:20260603-gitea-02.png|900px]] |
||
===Kasutamine=== |
===Kasutamine=== |
||
| − | + | oxidized kasutaja tekitamine |
|
| + | [[Fail:20260603-gitea-03.png|900px]] |
||
| − | TODO |
||
| − | + | oxidized/devices-backups repo tekitamine |
|
| + | [[Fail:20260603-gitea-04.png|900px]] |
||
| − | TODO |
||
| + | |||
| + | ssh võtme kasutajaga seostamine, võti tekitatakse oxidized osakonnas |
||
| + | |||
| + | [[Fail:20260603-gitea-05.png|900px]] |
||
| + | |||
| + | Kasutamine käsurealt |
||
<pre> |
<pre> |
||
| 89. rida: | 97. rida: | ||
git push -u origin master |
git push -u origin master |
||
</pre> |
</pre> |
||
| − | |||
| − | SSH võtmete paigutamine |
||
| − | |||
| − | TODO |
||
===Kasulikud lisamaterjalid=== |
===Kasulikud lisamaterjalid=== |
||
* https://unixhost.pro/blog/2023/03/installing-and-configuring-gitea-in-a-docker-container-a-guide-for-developers-and-devops-specialists/ |
* https://unixhost.pro/blog/2023/03/installing-and-configuring-gitea-in-a-docker-container-a-guide-for-developers-and-devops-specialists/ |
||
| + | * [[:Oxidized kasutamine]] |
||
Viimane redaktsioon: 4. juuni 2026, kell 03:43
Sissejuhatus
TODO
Tööpõhimõte
TODO
Paigaldamine
Docker compose, https://docs.gitea.com/installation/install-with-docker
# cat /srv/gitea/dc/docker-compose-gitea.yaml
name: p_gitea
services:
svc_gitea:
image: gitea/gitea:latest
container_name: cn_gitea
restart: always
environment:
- USER_UID=1000
- USER_GID=1000
- TZ=Europe/Tallinn
volumes:
- /srv/gitea/volume/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
networks:
- nw_gitea
networks:
nw_gitea:
name: nw_gitea
driver: bridge
kus
- vaikimisi kasutab gitea sqlite3 andmebaasi
Käivitamine
root@dh-minio-01:/srv/gitea/dc# docker compose -f docker-compose-gitea.yaml up -d
Veebikoht paistab selline
kus
- TODO
admin kaustaja tekitamine
Kasutamine
oxidized kasutaja tekitamine
oxidized/devices-backups repo tekitamine
ssh võtme kasutajaga seostamine, võti tekitatakse oxidized osakonnas
Kasutamine käsurealt
git@192.168.10.163:oxidized/devices-backups.git Creating a new repository on the command line touch README.md git init git add README.md git commit -m "first commit" git remote add origin git@192.168.10.163:oxidized/devices-backups.git git push -u origin master Pushing an existing repository from the command line git remote add origin git@192.168.10.163:oxidized/devices-backups.git git push -u origin master