-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
laradock how to use gitlab webhook? #1360
Comments
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi again 👋 we would like to inform you that this issue has been automatically |
Problem still exist! When I run with Symfony process component bash script with "git" - I see an error : "git not found". While Symfony process my user = "www-data" and group = "www-data" But it's strange, because when I go to workspace container with user "www-data" git command exists in /usr/bin/git... Somehow from Symfony process or from Artisan::call "git" not exists... But user the same! =( |
I'm having the same issue, it's something with the php-fpm If you look inside the PHP-FPM container How can I add git to PHP-FPM? Or how can I make git visible (its visible from other containers in laradock)? |
I just figured it out.... There are multiple gits in those containers. I was setting the permissions on the wrong ones. You need to run the following command in your php-fpm container: Get inside of your container like this: docker-compose exec --user=root php-fpm bash And run the following command: apt-get update && apt-get install -y git I haven't figured out how to automate this via the Dockerfile though. I tried adding RUN apt-get update && apt-get install -y git This command installs git and I can use git during the docker-compose build, but it doesn't stick after the build. Edit: Style and grammar. |
Info:
$ docker --version
): 17.12.0-ce, build c97c6d6$ git rev-parse HEAD
): 0077de2Issue:
I want to use a webhook to auto deploy, then i do:
First, run docker up:
docker-compose up -d nginx redis mysql
Second, add webhook in my gitlab project
point to laravel website http://example.com/deploy/
Third, laravel add router and Controller
And it doesn't work, the command 'git pull' no run.
I found some error on container php-fpm
[22-Jan-2018 07:46:46] WARNING: [pool www] child 7 said into stderr: "sh: 1: /usr/bin/git: not found"
Expected behavior:
What shoud i do in laradock ?
Git has install in laradock_workspace_1, Should i install it again?
The text was updated successfully, but these errors were encountered: