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.- Log in to Artifactory
- Go to Welcome (top right) > Edit Profile > Administration
- 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.