Menu

#17 how to access git projects?

workingwiki
open
None
5
2013-05-07
2010-12-13
Lee Worden
No

I tried uploading some code to github and pointing PE at it using a pe-git: uri, but it didn't work because I would have to set up a keypair for the apache user and I'm wary. So then I cloned the repo to a directory in my home directory - first of all pe-git:/home/wonder/net-dyn-github doesn't work - I think it tries to use /home/wonder/.git - then pe-git:/home/wonder/net-dyn-github/ looks for the right thing but can't access it - because apache can't execute /home/wonder?
Finally I moved it to pe-git:/usr/local/src/net-dyn-github/ and this seems to work.

I need to clarify what are workable ways to access external repositories.

Related

Bugs: #422

Discussion

  • Lee Worden

    Lee Worden - 2010-12-20

    ok, I got this working now, by doing the following:

    wonder$ sudo -u apache -i
    apache$ ssh-keygen -t rsa -C "projectengine"  # create an RSA keypair for SSH to use
    # save the keypair as ~/.ssh/projectengine_rsa, not the default id_rsa.
    # this is so it won't be used by default if ever ssh is invoked as apache, only for github.
    apache$ ssh-keygen -p
    # set the projectengine keypair to have no passphrase
    
    # now go onto http://github.com, create an account for "projectengine-at-yushan-mcmaster-ca"
    # and associate the public key in projectengine_rsa.pub with this account
    # I gave it an email address connected to my gmail account, and an easy password which I will
    # record at the lab wiki, just in case.
    
    apache$ vi ~/.ssh/config # and enter the following lines:
    Host *github.com
    IdentityFile ~/.ssh/projectengine_rsa
    
    # this tells it to use the projectengine keypair only when contacting sites in the github.com domain.
    
    apache$ ssh git@github.com # test that it recognizes us
    
    # now copy apache's .ssh/ directory to all the cluster nodes.
    
    # this actually works!  PE is able to pull directly from pe-git:git@github.com:worden-lee/net-dyn.git
    # into a project directory.
    # I hope it isn't a terrible security flaw.
    

    lw

     

    Last edit: Lee Worden 2012-11-02
  • Lee Worden

    Lee Worden - 2011-06-29

    I have now done this for lalashan as well. Details are on the main page of the lab wiki.

     
  • Lee Worden

    Lee Worden - 2012-03-01

    The email addresses associated with these github account are worden.lee+projectengine.lalashan@gmail.com and worden.lee+projectengine.yushan@gmail.com, for the record.

     

Anonymous
Anonymous

Add attachments
Cancel