I'm trying to get
svn to save my https username+password to ~/.subversion from within an automated script. I can pass creds on the command-line but I do not want to be prompted about whether to save the password unencrypted. Unfortunately this does not create ~/.subversion/:
svn --non-interactive --trust-server-cert --username myusername --password secret co https://private.example.com/src/repo/
FYI I'm trying to do this for a Dockerfile that invokes a
bower install with a
bower.json that references a password-protected svn repo. Unfortunately there's no way to pass the svn credentials to
bower via command-line or environment.
I am currently working around it by running svn interactively and letting it create ~/.subversion, then zipping up that entire directory and
ADDing it in the Dockerfile. I guess I could look at the file formats in ~/.subversion and create it with a script, but would rather let svn do it.