WILT: Docker + artifactory authentication

Quick one.

  • Put this in ~/.docker/config.json to keep it well separate from the git repository itself
  • Artifactory provides its own secure password to add to your username.
    1. Log in to Artifactory
    2. Go to Welcome (top right) > Edit Profile > Administration
    3. Grab the Encrypted password contents
  • Set the auth bit as per:

    "auths": {
        "<ArtifactoryURL>": {
            "auth": "<base64Encoded(username:encryptedpassword)>"
        }
    },
    
  • That should let you log in as you when running docker-compose up --build etc.