Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
external-header-nav
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure Repository Credentials

date_range 15-Oct-23

SUMMARY Read this topic to understand how to configure the enterprise-hub.juniper.net repository credentials for JCNR installation.

Use this procedure to configure your repository login credentials in your manifests.

  1. Install docker if you don't already have docker installed.
  2. Log in to the Juniper Networks repository where you pull the container images.
    content_copy zoom_out_map
    docker login enterprise-hub.juniper.net

    Enter your login credentials when prompted.

    Once you've logged in, your credentials are automatically stored in ~/.docker/config.json. (If you installed docker using snap, then the credentials are stored in the ~/snap/docker directory hierarchy.)

  3. Encode your credentials in base64 and store the resulting string.
    content_copy zoom_out_map
    ENCODED_CREDS=$(base64 -w 0 config.json)
    Take a look at the encoded credentials.
    content_copy zoom_out_map
    echo $ENCODED_CREDS
  4. Navigate to Juniper_Cloud_Native_Router_<release-number>/helmchart directory. Replace the credentials placeholder in the manifest with the encoded credentials.
    The manifests have a <base64-encoded-credential> credentials placeholder. Simply replace the placeholder with the encoded credentials in all manifests.
    content_copy zoom_out_map
    sed -i s/'<base64-encoded-credential>'/$ENCODED_CREDS/ values.yaml
    Double check by searching for the encoded credentials in the manifests.
    content_copy zoom_out_map
    grep $ENCODED_CREDS values.yaml
    You should see the encoded credentials in the manifests.
external-footer-nav