From 930595a62fa38769781d65889611a9973c825d31 Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:57:13 -0700 Subject: [PATCH 1/8] New translations 00-gh_cli_installation.md (Ukrainian) --- docs/gemstones/git/00-gh_cli_installation.uk.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/gemstones/git/00-gh_cli_installation.uk.md b/docs/gemstones/git/00-gh_cli_installation.uk.md index c019c23b6d..47fd586976 100644 --- a/docs/gemstones/git/00-gh_cli_installation.uk.md +++ b/docs/gemstones/git/00-gh_cli_installation.uk.md @@ -1,6 +1,7 @@ --- title: Встановлення та налаштування GitHub CLI на Rocky Linux author: Wale Soyinka +Contributor: Ganna Zhyrnova tags: - GitHub CLI - gh @@ -10,7 +11,7 @@ tags: ## Вступ -Цей дорогоцінний камінь охоплює встановлення та базове налаштування інструменту GitHub CLI (gh) у системі Rocky Linux. Цей інструмент дозволяє користувачам взаємодіяти зі сховищами GitHub безпосередньо з командного рядка. +Цей Gemstone охоплює встановлення та базове налаштування інструменту GitHub CLI (gh) у системі Rocky Linux. Цей інструмент дозволяє користувачам взаємодіяти зі сховищами GitHub безпосередньо з командного рядка. ## Опис проблеми From 25c29d3e80c7cedbf07ba9f930a4a34fcfabdda5 Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:57:20 -0700 Subject: [PATCH 2/8] New translations fork_and_branch_workflow.md (Ukrainian) --- docs/gemstones/git/fork_and_branch_workflow.uk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gemstones/git/fork_and_branch_workflow.uk.md b/docs/gemstones/git/fork_and_branch_workflow.uk.md index 52ffa43c39..e5eb713d1f 100644 --- a/docs/gemstones/git/fork_and_branch_workflow.uk.md +++ b/docs/gemstones/git/fork_and_branch_workflow.uk.md @@ -1,7 +1,7 @@ --- title: Fork and Branch Git workflow author: Wale Soyinka -contributors: null +contributors: Ganna Zhyrnova tags: - GitHub - git From 59a0fd74f6b0fb773912cc75851087645500e46a Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:57:21 -0700 Subject: [PATCH 3/8] New translations git_remote_add.md (Ukrainian) --- docs/gemstones/git/git_remote_add.uk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gemstones/git/git_remote_add.uk.md b/docs/gemstones/git/git_remote_add.uk.md index 3a9e0e5187..538405630f 100644 --- a/docs/gemstones/git/git_remote_add.uk.md +++ b/docs/gemstones/git/git_remote_add.uk.md @@ -1,7 +1,7 @@ --- title: Додавання віддаленого репозиторію за допомогою git CLI author: Wale Soyinka -contributors: null +contributors: Ganna Zhyrnova tags: - GitHub - git From 9eb6d4c1e5fb0a25902cab897218710872de6aa0 Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:44:01 -0700 Subject: [PATCH 4/8] New translations index.md (French) --- docs/books/index.fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/index.fr.md b/docs/books/index.fr.md index 1c6f01e968..ca87b27962 100644 --- a/docs/books/index.fr.md +++ b/docs/books/index.fr.md @@ -59,6 +59,6 @@ Nos livres au format PDF peuvent être téléchargés pour une lecture hors-lign * [Italien](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.it.pdf) * [Ukrainien](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.uk.pdf) -### Sed, Awk, Grep: TheTreeSwordsmen +### Sed, Awk, Grep: TheThreeSwordsmen * [Anglais](https://rocky-linux.github.io/documentation/Sed_Awk_Grep_TheTreeSwordsmen.pdf) From 3a906be8baa04b68dee5b5a79a5a772b0d4575f7 Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Thu, 14 Mar 2024 03:16:33 -0700 Subject: [PATCH 5/8] New translations feature_branch_workflow.md (Ukrainian) --- docs/gemstones/git/feature_branch_workflow.uk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gemstones/git/feature_branch_workflow.uk.md b/docs/gemstones/git/feature_branch_workflow.uk.md index e03a0363ba..1d0bae9dd7 100644 --- a/docs/gemstones/git/feature_branch_workflow.uk.md +++ b/docs/gemstones/git/feature_branch_workflow.uk.md @@ -1,7 +1,7 @@ --- title: Робочий процес розгалуження функції в Git author: Wale Soyinka -contributors: null +contributors: Ganna Zhyrnova tags: - git - Функціональний робочий процес відділення From 6eac945797f967518c32ea274659dc035249d504 Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Thu, 14 Mar 2024 05:29:28 -0700 Subject: [PATCH 6/8] New translations index.md (French) --- docs/books/index.fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/index.fr.md b/docs/books/index.fr.md index ca87b27962..e0b43b9554 100644 --- a/docs/books/index.fr.md +++ b/docs/books/index.fr.md @@ -59,6 +59,6 @@ Nos livres au format PDF peuvent être téléchargés pour une lecture hors-lign * [Italien](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.it.pdf) * [Ukrainien](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.uk.pdf) -### Sed, Awk, Grep: TheThreeSwordsmen +### The Three Swordsmen * [Anglais](https://rocky-linux.github.io/documentation/Sed_Awk_Grep_TheTreeSwordsmen.pdf) From bc96260d4f4e2f9696adcfdd47e98f3b6c6a4ebd Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Thu, 14 Mar 2024 05:29:30 -0700 Subject: [PATCH 7/8] New translations index.md (German) --- docs/books/index.de.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/books/index.de.md b/docs/books/index.de.md index bb267466dc..5aaf09a4d1 100644 --- a/docs/books/index.de.md +++ b/docs/books/index.de.md @@ -59,6 +59,6 @@ Unsere Bücher als stehen als PDF zum herunterladen zur Verfügung. * [Italienisch](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.it.pdf) * [Ukrainisch](https://rocky-linux.github.io/documentation/learning_rsync_rocky_linux.uk.pdf) -### Sed, Awk, Grep: TheTreeSwordsmen +### The Three Swordsmen * [Englisch](https://rocky-linux.github.io/documentation/Sed_Awk_Grep_TheTreeSwordsmen.pdf) From ceebe34254f63fb93495a340fb3655a22ca3148c Mon Sep 17 00:00:00 2001 From: Rocky Linux Automation <75949597+rockylinux-auto@users.noreply.github.com> Date: Thu, 14 Mar 2024 05:29:36 -0700 Subject: [PATCH 8/8] New translations setup_local_repo.md (French) --- docs/gemstones/setup_local_repo.fr.md | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/gemstones/setup_local_repo.fr.md diff --git a/docs/gemstones/setup_local_repo.fr.md b/docs/gemstones/setup_local_repo.fr.md new file mode 100644 index 0000000000..db7ba97a3d --- /dev/null +++ b/docs/gemstones/setup_local_repo.fr.md @@ -0,0 +1,50 @@ +--- +title: Mise en place des dépôts locaux de Rocky +author: codedude +contributors: Steven Spencer +update: 2021-12-09 +--- + +# Introduction + +Parfois, vous avez besoin d'avoir des dépôts Rocky locaux pour construire des machines virtuelles, des environnements de laboratoire, etc. Ça peut également aider à économiser de la bande passante si c'est une préoccupation. Cet article vous guidera à travers l'utilisation de `rsync` pour copier les dépôts Rocky sur un serveur web local. La construction d'un serveur web est hors du sujet de cet article succin. + +## Prérequis + +* Un serveur web + +## Exemple de Code + +``` +#!/bin/bash +repos_base_dir="/web/path" + +# Start sync if base repo directory exist +if [[ -d "$repos_base_dir" ]] ; then + # Start Sync + rsync -avSHP --progress --delete --exclude-from=/opt/scripts/excludes.txt rsync://ord.mirror.rackspace.com/rocky "$repos_base_dir" --delete-excluded + # Download Rocky 8 repository key + if [[ -e /web/path/RPM-GPG-KEY-rockyofficial ]]; then + exit + else + wget -P $repos_base_dir https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-rockyofficial + fi +fi +``` + +## Détails de la procédure + +Ce script shell simple utilise `rsync` pour extraire les fichiers de dépôt depuis le miroir le plus proche. Il utilise également l'option "exclude" qui est définie dans un fichier texte sous la forme de mots-clés qui ne devraient pas être inclus. Les exclusions sont adéquates si vous avez un espace disque limité ou si vous ne voulez pas tout pour une raison quelconque. Nous pouvons utiliser l'étoile `*` comme caractère générique. Faites attention en utilisant `*/ng` car il exclura tout ce qui correspond à ces caractères. Cf. l'exemple ci-dessous : + +``` +*/source* +*/debug* +*/images* +*/Devel* +8/* +8.4-RC1/* +8.4-RC1 +``` + +# Conclusion +Un script simple qui peut aider à économiser la bande passante ou rendre la construction d'un environnement de laboratoire un peu plus facile.