Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-pterodactyl-legacy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-pterodactyl-legacy
Commits
995ec220
Commit
995ec220
authored
Apr 30, 2018
by
Cameron Carney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed dependency on supervisor
parent
56fb199b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
48 deletions
+7
-48
manifest/panel/Dockerfile
manifest/panel/Dockerfile
+2
-2
manifest/panel/entrypoint.sh
manifest/panel/entrypoint.sh
+5
-9
manifest/panel/etc/supervisor.d/runtime-files/crond.ini
manifest/panel/etc/supervisor.d/runtime-files/crond.ini
+0
-7
manifest/panel/etc/supervisor.d/runtime-files/nginx.ini
manifest/panel/etc/supervisor.d/runtime-files/nginx.ini
+0
-12
manifest/panel/etc/supervisor.d/runtime-files/php-fpm.ini
manifest/panel/etc/supervisor.d/runtime-files/php-fpm.ini
+0
-5
manifest/panel/etc/supervisor.d/runtime-files/pterodactyl-workers.ini
...el/etc/supervisor.d/runtime-files/pterodactyl-workers.ini
+0
-9
manifest/panel/etc/supervisord.conf
manifest/panel/etc/supervisord.conf
+0
-4
No files found.
manifest/panel/Dockerfile
View file @
995ec220
...
...
@@ -10,7 +10,7 @@ WORKDIR /var/www/html
RUN
\
apk
--update
add curl gettext nginx php7 php7 php7-bcmath php7-common php7-dom php7-fpm php7-gd
\
php7-memcached php7-mbstring php7-openssl php7-pdo php7-phar php7-json php7-pdo_mysql
\
php7-session php7-simplexml php7-tokenizer php7-ctype php7-zlib php7-zip
supervisor
\
php7-session php7-simplexml php7-tokenizer php7-ctype php7-zlib php7-zip
tini
\
&& mkdir -p /var/www/html /run/nginx
RUN
\
...
...
@@ -32,6 +32,6 @@ VOLUME [ "/data" ]
# Expose HTTP and HTTPS ports
EXPOSE
80 443
ENTRYPOINT
[ "/
bin/ash
", "/entrypoint.sh" ]
ENTRYPOINT
[ "/
sbin/tini", "--
", "/entrypoint.sh" ]
CMD
[ "p:start" ]
manifest/panel/entrypoint.sh
View file @
995ec220
...
...
@@ -80,21 +80,17 @@ function startServer {
cat
/etc/nginx/templates/http.conf
>
/etc/nginx/conf.d/default.conf
fi
# Copy service files to runtime files
rm
-rf
/var/run/supervisor.d/
mkdir
/var/run/supervisor.d/
# Determine if workers should be enabled or not
if
[
"
${
DISABLE_WORKERS
}
"
!=
"true"
]
;
then
cp
/etc/supervisor.d/runtime-files/
*
/var/run/supervisor.d/
/usr/sbin/crond
-f
-l
0 &
php /var/www/html/artisan queue:work database
--queue
=
high,standard,low
--sleep
=
3
--tries
=
3 &
else
echo
"[Warning] Disabling Workers (pteroq & cron); It is recommended to keep these enabled unless you know what you are doing."
cp
/etc/supervisor.d/runtime-files/nginx.ini
\
/etc/supervisor.d/runtime-files/php-fpm.ini
\
/var/run/supervisor.d/
fi
exec
supervisord
--nodaemon
-c
/etc/supervisord.conf
/usr/sbin/php-fpm7
--nodaemonize
-c
/etc/php7 &
exec
/usr/sbin/nginx
-g
"daemon off;"
}
## Start ##
...
...
manifest/panel/etc/supervisor.d/runtime-files/crond.ini
deleted
100644 → 0
View file @
56fb199b
[program:cron]
command
=
/usr/sbin/crond -f -l 0
autostart
=
true
autorestart
=
true
priority
=
10
stdout_events_enabled
=
true
stderr_events_enabled
=
true
\ No newline at end of file
manifest/panel/etc/supervisor.d/runtime-files/nginx.ini
deleted
100644 → 0
View file @
56fb199b
[program:nginx]
command
=
/usr/sbin/nginx -g "daemon off;"
autostart
=
true
autorestart
=
true
priority
=
10
stdout_events_enabled
=
true
stderr_events_enabled
=
true
stdout_logfile
=
/dev/stdout
stdout_logfile_maxbytes
=
0
stderr_logfile
=
/dev/stderr
stderr_logfile_maxbytes
=
0
\ No newline at end of file
manifest/panel/etc/supervisor.d/runtime-files/php-fpm.ini
deleted
100644 → 0
View file @
56fb199b
[program:php-fpm]
command
=
/usr/sbin/php-fpm7 --nodaemonize -c /etc/php7
autostart
=
true
autorestart
=
true
priority
=
5
manifest/panel/etc/supervisor.d/runtime-files/pterodactyl-workers.ini
deleted
100644 → 0
View file @
56fb199b
[program:pterodactyl-worker]
process_name
=
%(program_name)s_%(process_num)02d
command
=
php /var/www/html/artisan queue:work database --queue=high,standard,low --sleep=3 --tries=3
autostart
=
true
autorestart
=
true
user
=
nginx
numprocs
=
2
redirect_stderr
=
true
stdout_logfile
=
/var/www/html/storage/logs/queue-worker.log
\ No newline at end of file
manifest/panel/etc/supervisord.conf
deleted
100644 → 0
View file @
56fb199b
[
supervisord
]
[
include
]
files
= /
var
/
run
/
supervisor
.
d
/*.
ini
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment