Jump to: navigation, search

Difference between revisions of "StarlingX/Developer Guide/Regional Mirror"

(User Access)
(User Access)
Line 19: Line 19:
user@workstation:~/starlingx/mirror$ ls CentOS/
user@workstation:~$ cd ~/starlingx/mirror/CentOS/stx-r1/CentOS/pike/
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

Revision as of 16:19, 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 in the server hosting the Reference Mirror are:

  • Manage user access through user authentication, e.g. SSH key.
  • Create the base mirror directory. e.g. using existing stx-tools scripts.
  • Create automated updates based on new packages from mirror download process.
  • Enable your preferred protocol for user to transfer and synchronize with the Reference Mirror e.g. rsync.

User Access

1. Authenticate to the reference mirror server, e.g. upload your SSH key.
2. Go to your local path to host your local mirror directory:

user@workstation:~$ cd ~/starlingx/mirror/CentOS/stx-r1/CentOS/pike/

3. Synchronize your local mirror with the reference 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/ .

Once completed the directory structure should look like:

user@workstation:~/starlingx/mirror/regional/pike$ tree -L 1 .
├── Binary
├── downloads
└── Source

3 directories