Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
8f6e9bd7
Commit
8f6e9bd7
authored
2 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
fixed sigquit signal for fpm container
parent
41e0ad41
No related branches found
Branches containing commit
No related tags found
1 merge request
!1995
Resolve "Make MetaGer Pods shutdown gracefully"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/fpm/entrypoint/entrypoint_development.sh
+11
-2
11 additions, 2 deletions
build/fpm/entrypoint/entrypoint_development.sh
build/fpm/entrypoint/entrypoint_production.sh
+11
-2
11 additions, 2 deletions
build/fpm/entrypoint/entrypoint_production.sh
with
22 additions
and
4 deletions
build/fpm/entrypoint/entrypoint_development.sh
+
11
−
2
View file @
8f6e9bd7
#!/bin/sh
#!/bin/
ba
sh
set
-e
_trap
()
{
echo
"Stopping FPM"
kill
-s
SIGQUIT
$FPM_PID
}
trap
_trap SIGQUIT
validate_laravel
if
[
!
-f
.env
]
;
...
...
@@ -22,4 +29,6 @@ php artisan db:seed
php artisan ide-helper:generate
php artisan ide-helper:meta
docker-php-entrypoint php-fpm
\ No newline at end of file
docker-php-entrypoint php-fpm &
FPM_PID
=
$!
wait
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build/fpm/entrypoint/entrypoint_production.sh
+
11
−
2
View file @
8f6e9bd7
#!/bin/sh
#!/bin/
ba
sh
set
-e
_trap
()
{
echo
"Stopping FPM"
kill
-s
SIGQUIT
$FPM_PID
}
trap
_trap SIGQUIT
validate_laravel
# Production version will have the .env file mounted at /home/metager/.env
...
...
@@ -19,4 +26,6 @@ php artisan route:trans:cache
php artisan spam:load
php artisan load:affiliate-blacklist
docker-php-entrypoint php-fpm
\ No newline at end of file
docker-php-entrypoint php-fpm &
FPM_PID
=
$!
wait
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment