Skip to content

Roavill2/jenkins-npm-keytar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-npm-keytar

Jenkins build agent with the ability to install the npm keytar package for credential management. Builds on jenkins-npm-agent

NOTE: This image must have the capability IPC_LOCK or run as privilaged to properly operate. This can be done on the run command by adding --cap-add ipc_lock or --privileged respectively. Not specifying this capability will result in the following messages when trying to start the gnome keyring daemon:

gnome-keyring-daemon: Operation not permitted

Usage

In general, nothing special will need to be done when connecting to the machine with the jenkins username and password.

If you have troubles accessing the keyring in the container you will most likely be seeing this error message:

** Message: Remote error from secret service: org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.Secret.Collection' on object at path /org/freedesktop/secrets/collection/login

To correct this, issue the following console command before you attempt to access the keyring:

echo 'jenkins' | gnome-keyring-daemon -r -d --unlock

If you are still experiencing the No such interface error after executing the above command and you are using this container as your base, please add the following items as the last operations in your dockerfile:

USER root
CMD ["/usr/sbin/sshd", "-D"]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 47.7%
  • Shell 36.9%
  • HCL 15.4%