-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for Developers using IDE #13
Comments
What I have done in the past and how I test PRs is changing the composer.json file and adding this. Just like a "vcs" but with type git you can specify the branch name as a "reference". This can also be a git tag value.
https://github.com/jhu-idc/idc-isle-dc/blob/development/codebase/composer.json#L82-L93 |
Sorry I think I miscommunicated. I was successful at checking out the feature branch of my code (though not with git history). My question is:
|
from the Tech call, someone (won't say who) mentioned that to do it in the IDE, Annie mentioned that theres a command to copy files out of docker, which could work instead! |
There are two
The setup script detects the host OS and copies the appropriate file. Lines 124 to 128 in a4e7021
This should allow you to use your GitHub SSH key, assuming you added it to your SSH-Agent. |
Composer is capable of doing this: https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository. Alternatively, you can bind mount a local repository into the container. https://docs.docker.com/storage/bind-mounts/ This is how the configuration changes get persisted to the host machine's hard disk. |
Also, I should say there really isn't a reason to get things out of Docker. You can just work inside the container as if it were a VM, and use git inside of it. The only concern is that you could accidentally destroy the container with your changes inside of it. If that is a concern for you, then I would suggest bind mounts. |
@nigelgbanks Git works fine on my mac. But it doesn't in the IDE. First, every time I restart the docker containers i have to tell it my email and name. And when i was ready to push to github, it gave me a popup with a one-time code that i was supposed to navigate to Github and paste in. There was no place to paste it in on Github. When I clicked the "Copy and navigate to Github" button, It did not take me to github (i.e. nothing appeared to happen). Then the IDE froze after 5 minutes and needed to be restarted. #22 Then, after refreshing the browser, |
You'll need to use |
I've just tested and this is indeed broken in the latest Docker for Mac though: docker/for-mac#7204 |
Hmm, I really don't like the workarounds for this issue... might be that we just recommend folks mount their |
I just a lot of time developing code on my feature branch in the IDE, only to realize that I don't know how to get my changes out of docker and back into Github.
What I did:
What should I have done:
???
The text was updated successfully, but these errors were encountered: