Administration and Deployment

Installing and maintaining your SAS environment
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
analyser_xyz
Fluorite | Level 6

Dear Expert,

 

In SASStudio, I tried to clone git repo by invoking git command via x statement, but return 'git command not found error', seems SAS will search the git command on the compute server that current SAS session connecting to. I connected to compute server pod shell, but it even have no dnf command, so how to install git on compute server? 

 

the code:

data _null_;

x "git clone giturl localdir";

run;

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
analyser_xyz
Fluorite | Level 6

Ok, found a indirectly way to do so, just build a static git command under the NFS folder /data/sascode which can be accessed by computer server as mapped folder /sascode, then this git command can be executed on compute server now:

analyser_xyz_0-1736426623217.png

 

 

static built git command is the key, it does not need the third party components which are not available on compute server.

View solution in original post

6 REPLIES 6
analyser_xyz
Fluorite | Level 6
Thanks, but how git_clone() support depth option likes git command? git clone --depth 1 giturl
analyser_xyz
Fluorite | Level 6

Hope Viya will provide a simple way to let user install other software that can be invoked by x statement.

gwootton
SAS Super FREQ
You cannot install new software packages in the compute server container, but as andreas_lds mentioned SAS has built in git integration functions you can use. SAS Studio also has git functionality in the UI that makes use of these functions.

https://go.documentation.sas.com/doc/en/webeditorcdc/5.2/webeditorug/n0vksc2mc4hpypn1q87623fbxp55.ht...

Alternatively, you could clone the repository outside of the container and mount that repository into the container as a volume.
--
Greg Wootton | Principal Systems Technical Support Engineer
analyser_xyz
Fluorite | Level 6

Thanks, yes, but where can I add --depth or other git option with this way?

analyser_xyz
Fluorite | Level 6

Ok, found a indirectly way to do so, just build a static git command under the NFS folder /data/sascode which can be accessed by computer server as mapped folder /sascode, then this git command can be executed on compute server now:

analyser_xyz_0-1736426623217.png

 

 

static built git command is the key, it does not need the third party components which are not available on compute server.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 739 views
  • 3 likes
  • 3 in conversation