Open wernight opened 8 years ago
It's visibly due to the reliance on some binaries as this issue is only on Alpine Linux and not on Debian based.
I'm currently not able to test it with Alpine Linux. Did you checked the dependencies?
Yes dependencies are met. The simplest to repro this bug is using Docker:
$ docker run --rm -p 8080:80 wernight/codiad:alpine
Sorry for my late reply. I tested it today with your docker image and was not able to reproduce your issue.
You're sure you're using the :alpine
tag? I don't remember upgrading it, so it should still reproduce (that is not pull or push without actually giving an error if I recall).
Okay, thanks, I missed that.
After some digging: Alpine does not provide Bash as shell.
Try to change the following in expect.sh
#!/bin/bash
to
#!/bin/sh
I was not able to test it. My alpine docker instance tells me always the following error
$ ssh -T git@github.com
ssh: Could not resolve hostname github.com: Try again
After fixing this, I'll come back to you.
It sounds like you cannot access network from within your container. That shouldn't be specific to Alpine.
To install bash just do: apk add --update bash
Le mar. 17 janv. 2017 à 16:18, Andr3as notifications@github.com a écrit :
Okay, thanks, I missed that.
After some digging: Alpine does not provide Bash as shell. Try to change the following in expect.sh https://github.com/Andr3as/Codiad-CodeGit/blob/master/scripts/expect.sh
!/bin/bash
to
!/bin/sh
I was not able to test it. My alpine docker instance tells me always the following error
$ ssh -T git@github.com ssh: Could not resolve hostname github.com: Try again
After fixing this, I'll come back to you.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Andr3as/Codiad-CodeGit/issues/36#issuecomment-273198178, or mute the thread https://github.com/notifications/unsubscribe-auth/AAI5A88R0qjznrF-K4ksEqycjW5_ecHyks5rTNvSgaJpZM4JAmlu .
At home my container works as it should 🙈.
Now I was able to test the solution from above. I worked for me both on Alpine and on Debian. Could you please verify it on your system?
Trying to do a pull/push returns:
Environment:
Running inside the Terminal plugin (or directly inside the shell as PHP's user):
git pull
also works.PHP's logs seem pretty parse about the cause of this issue. I only see: