After setting up the repositories, validate them.

Verify the Local Repository through TDNF

Configure the new repository on Photon OS and add photon-updates-internal.repo and photon-release-internal.repo to /etc/yum.repos.d/:
cat /etc/yum.repos.d/photon-updates-internal.repo 
[photon-updates-internal]
name=VMware Photon Linux $releasever ($basearch) Updates Internal 
baseurl=https://<replace-with-custom-FQDN>/updates/photon-updates/ 
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True

cat /etc/yum.repos.d/photon-release-internal.repo 
[photon-release-internal]
name=VMware Photon Linux $releasever ($basearch) Release Internal 
baseurl=https://<replace-with-custom-FQDN>/release/photon/ 
gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
gpgcheck=1
enabled=1
skip_if_unavailable=True
TDNF displays the following output:
#tdnf makecache
Metadata cache created.   3578    100%


#tdnf repolist
    repo id                repo   name                			    status    
photon-updates-internal VMware Photon Linux 3.0 (x86_64) Updates Internal  enabled
photon-release-internal VMware Photon Linux 3.0 (x86_64) Release Internal  enabled

Verify Harbor and Photon Repositories

There are three methods for validating the repository on the air-gapped server:

Method 1 - Using a browser: Access the repositories from a remote client that has access to the air-gapped server through a proxy. Or, through a client that is located on the same network. Open the Web browser and enter the FQDN name and IP address of the air-gapped server. You can also access the following Photon OS repositories through the Web browser:
  • Update repository: https://<replace-with-custom-FQDN>/updates/photon-updates/.
  • Release repository: https://<replace-with-custom-FQDN>/release/photon/.
Note: For an optimal experience, use the Firefox browser or the Chrome browser.
Method 2 - Accessing Through TDNF:
  1. Deploy another Photon OS in the air-gapped environment.
  2. Move all the repository files that are under /etc/yum.repos.d/ to a different folder. For example, move all the repository files to /root and create two repository files targeting the air-gapped server:
    //Repo of photon updates
    #vim /etc/yum.repos.d/ag-photon-updates.repo 
    [ag-photon-updates]
    name=Airgap Photon Updates Repo
    baseurl=https://<replace-with-custom-FQDN>/ updates/photon-updates/
    gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
    gpgcheck=1
    enabled=1
    skip_if_unavailable=True
    
    //Repo of photon release
    #vim /etc/yum.repos.d/ag-photon-release.repo 
    [ag-photon-release]
    name=Airgap Photon Release Repo
    baseurl=https://<replace-with-custom-FQDN>/release/photon-release/
    gpgkey=file:///etc/pki/rpm-gpg/VMWARE-RPM-GPG-KEY
    gpgcheck=1
    enabled=1
    skip_if_unavailable=True
    
  3. Save both the files and use TDNF to update them:
    #tdnf makecache
    #tdnf update
    
Method 3 - Accessing through Docker: From the deployed Photon OS virtual machine, log in to the air-gapped server and use the docker pull command:
#docker login <replace-with-custom-FQDN>:8043/registry
#docker pull <replace-with-custom-FQDN>:8043/registry/dougbtv/whereabouts:v0.4

The image pulls from the air-gapped server to the local repository.