Date: Thu, 28 Mar 2024 14:11:49 +0000 (UTC) Message-ID: <2070213070.355.1711635109779@confluence.devops.pub.tds.tieto.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_354_1329788976.1711635109779" ------=_Part_354_1329788976.1711635109779 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
It is NOT possible to mount Artifactory repositories as network drives i= n Windows due to unsupported commands, more information at https://www.jfrog.com/confluence/display/RTF/Using= +WebDAV
However, you can utilise for example https://cyberduck.io/ = ;opensource for working with files in Artifactory repositories.
Either ask your project administrators to provide you with service accou= nt credentials or set it as described at Project Detail#ServiceAccount
Details and credentials in this example are:
Repo UR= L: https://artifactory.shared.tds.CUSTOMERX.COM/artifactory/myrepoxxxname/ username: srv123abc password: SomEv3ryNic=E2=82=ACPassWORD:) mount point: /MyRepoMountPoint script and service name: myreporemount
mkdir -= p /MyRepoMountPoint chown srv123abc:srv123abc -R /MyRepoMountPoint/
CentOS
yum ins= tall davfs2 -y
Ubuntu
apt-get= install davfs2 -y #Answer NO to unprivileged mouting of webdav mount points
In case you are working in the environment with network proxies required= to access the internet, you might need to disable proxies for davfs.
Simply add following at the end of /etc/davfs2/davfs2.conf<= /strong> file:
use_pro= xy 0
Edit /etc/davfs2/secrets file:
https:/= /artifactory.shared.tds.CUSTOMERX.COM/artifactory/myrepoxxxname/ "srv123abc= " "SomEv3ryNic=E2=82=ACPassWORD:)"
Edit /etc/fstab file
#https:= //artifactory.shared.tds.CUSTOMERX.COM/artifactory/myrepoxxxname/ /MyRepoMo= untPoint davfs user,auto,_netdev,nosuid,file_mode=3D664,dir_mode=3D775,gid= =3Dusers,uid=3Dsrv123abc 0 0 https://artifactory.shared.tds.CUSTOMERX.COM/artifactory/myrepoxxxname/ /My= RepoMountPoint davfs user,auto,_netdev,nosuid,file_mode=3D664,dir_mode=3D77= 5,gid=3Dsrv123abc,uid=3Dsrv123abc 0 0
mount -= av
The response should be like:
#root@j= enkinsdev:~# mount -av #/ : ignored #/MyRepoMountPoint: successfully mounted
Create the following re-mount script and service for automatic start
MOUNT_P= OINT=3D/MyRepoMountPoint; echo "set -ex; mount -a; ls -la $MOUNT_POINT; tou= ch $MOUNT_POINT/tst; sleep 10; rm -f $MOUNT_POINT/tst; ls -la $MOUNT_POINT"= > /usr/local/bin/myreporemount chmod +x /usr/local/bin/myreporemount myreporemount echo "[Unit] Description=3DRefresh of Artifactory repository repo mount point Wants=3Dnetwork-online.target After=3Dnetwork-online.target [Service] Type=3Doneshot ExecStart=3D-/usr/local/bin/myreporemount [Install] WantedBy=3Dmulti-user.target" > /etc/systemd/system/myreporemount.servic= e systemctl enable myreporemount systemctl restart myreporemount systemctl status myreporemount
What does it do:
Inspired by: