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:

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