Difference between revisions of "StarlingX/Developer Guide/Regional Mirror"
< StarlingX | Developer Guide
(→User Access) |
(→User Access) |
||
Line 14: | Line 14: | ||
===User Access=== | ===User Access=== | ||
− | Upload your public key to your reference mirror server. <br> | + | 1. Upload your public key to your reference mirror server. <br> |
− | + | 2. Go to your defined regional mirror local directory based on a previously mirror directory created: | |
− | Go to your defined regional mirror local directory based on a previously mirror directory created: | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 26: | Line 25: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | 3. Synchronize the remote mirror with your local mirror e.g. rsync: | |
<pre><nowiki> | <pre><nowiki> |
Revision as of 16:01, 4 October 2018
Regional Mirror
Regional mirror will give us a Reference Mirror that can use to avoid downloading all packages from the Internet
Reference Mirror
Our Regional Office needs to create a Reference Mirror which will perform a regular (daily?) automated download using existing methods. The high level overview of activities to perform:
- Create the base mirror directory.
- Create automated update based on new packages from mirror download process.
- Manage user access.
User Access
1. Upload your public key to your reference mirror server.
2. Go to your defined regional mirror local directory based on a previously mirror directory created:
user@workstation:~/starlingx/mirror$ ls CentOS/ stx-r1 tis-installer user@workstation:~/starlingx/mirror$ cd CentOS/stx-r1/CentOS/pike/ user@workstation:~/starlingx/mirror/CentOS/stx-r1/CentOS/pike$ ls Binary downloads Source
3. Synchronize the remote mirror with your local mirror e.g. rsync:
user@workstation:~/starlingx/mirror/CentOS/stx-r1/CentOS/pike$ rsync -e "ssh -i /home/user/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" -avF mirror@starlingx-hub.zpn.intel.com:/mirror/mirror/ . user@workstation:~/starlingx/mirror/CentOS/stx-r1/CentOS/pike$ ls Binary downloads Source
Once completed the directory structure should look like:
user@workstation:~/starlingx/mirror/regional/pike$ tree -L 1 . . ├── Binary ├── downloads └── Source 3 directories