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
11db638a
Commit
11db638a
authored
May 03, 2017
by
Cameron Carney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage is now consistent
parent
c662a524
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
17 deletions
+26
-17
Dockerfile
Dockerfile
+2
-0
ENVIRONMENT.txt
ENVIRONMENT.txt
+0
-0
docker-compose.yml
docker-compose.yml
+1
-6
manifest/entrypoint.sh
manifest/entrypoint.sh
+21
-11
manifest/etc/nginx/modules/nodaemon.conf
manifest/etc/nginx/modules/nodaemon.conf
+2
-0
No files found.
Dockerfile
View file @
11db638a
...
@@ -23,8 +23,10 @@ RUN curl -Lo "${PANEL_VERSION}.tar.gz" https://github.com/Pterodactyl/Panel/arch
...
@@ -23,8 +23,10 @@ RUN curl -Lo "${PANEL_VERSION}.tar.gz" https://github.com/Pterodactyl/Panel/arch
&&
tar
--strip-components
=
1
-xzvf
${
PANEL_VERSION
}
.tar.gz
\
&&
tar
--strip-components
=
1
-xzvf
${
PANEL_VERSION
}
.tar.gz
\
&&
rm
"
${
PANEL_VERSION
}
.tar.gz"
\
&&
rm
"
${
PANEL_VERSION
}
.tar.gz"
\
&&
chmod
-R
777 storage/
*
bootstrap/cache
\
&&
chmod
-R
777 storage/
*
bootstrap/cache
\
&&
cp
./storage storage.template
-rp
\
&&
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
\
&&
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
\
&&
composer
install
--ansi
--no-dev
\
&&
composer
install
--ansi
--no-dev
\
&&
mv
./storage storage.template
\
&&
chown
nginx:nginx
*
-R
&&
chown
nginx:nginx
*
-R
COPY
./manifest /
COPY
./manifest /
...
...
ENVIRONMENT.txt
0 → 100644
View file @
11db638a
docker-compose.yml
View file @
11db638a
...
@@ -48,7 +48,6 @@ services:
...
@@ -48,7 +48,6 @@ services:
-
SSL=false
-
SSL=false
-
SSL_CERT=/certs/live/localhost/fullchain.pem
-
SSL_CERT=/certs/live/localhost/fullchain.pem
-
SSL_CERT_KEY=/certs/live/localhost/privkey.pem
-
SSL_CERT_KEY=/certs/live/localhost/privkey.pem
-
SSL_LE_WEBROOT=/certs/.webroot/
# Webroot for Let's Encrypt
# Panel Variables, These are only needed when doing initial setup.
# Panel Variables, These are only needed when doing initial setup.
# When doing migration, the container will attempt to get the environment
# When doing migration, the container will attempt to get the environment
...
@@ -69,11 +68,7 @@ services:
...
@@ -69,11 +68,7 @@ services:
-
MAIL_DRIVER=mail
-
MAIL_DRIVER=mail
-
MAIL_EMAIL=admin@localhost
-
MAIL_EMAIL=admin@localhost
-
MAIL_FROM_NAME=Test Panel
-
MAIL_FROM_NAME=Test Panel
image
:
quay.io/ccarney/pterodactyl-panel:testing
-
USER_EMAIL=admin@pterodactyl.io
-
USER_PASS=PlsCh@ng3M3
-
USER_IS_ADMIN=true
image
:
quay.io/ccarney/pterodactyl-panel:v0.6.0-rc.1
ports
:
ports
:
-
80:80
-
80:80
-
443:443
-
443:443
...
...
manifest/entrypoint.sh
View file @
11db638a
...
@@ -32,10 +32,16 @@ function init {
...
@@ -32,10 +32,16 @@ function init {
initConfig
initConfig
}
}
# Build the config only
function
initConfig
{
function
initConfig
{
# Might looks like overkill, however we should optimize and clear the config cache
php artisan optimize
# Create the storage directory
php artisan config:cache
if
[
!
-d
/data/storage
]
;
then
cp
./storage.template /data/storage
-pr
fi
rm
-rf
./storage
ln
-s
/data/storage ./storage
# Always destroy .env on startup
# Always destroy .env on startup
rm
.env
-rf
rm
.env
-rf
...
@@ -55,17 +61,21 @@ function initConfig {
...
@@ -55,17 +61,21 @@ function initConfig {
# Updates a configuration using variables from the .env file and shell variables
# Updates a configuration using variables from the .env file and shell variables
function
updateConfiguration
{
function
updateConfiguration
{
# Might looks like overkill, however we should optimize and clear the config cache
php artisan optimize
php artisan config:cache
php artisan pterodactyl:env
-n
\
php artisan pterodactyl:env
-n
\
--url
=
${
PANEL_URL
}
\
--url
=
"
${
PANEL_URL
}
"
\
--dbhost
=
${
DB_HOST
}
\
--dbhost
=
"
${
DB_HOST
}
"
\
--dbport
=
${
DB_PORT
}
\
--dbport
=
"
${
DB_PORT
}
"
\
--dbname
=
${
DB_DATABASE
}
\
--dbname
=
"
${
DB_DATABASE
}
"
\
--dbuser
=
${
DB_USERNAME
}
\
--dbuser
=
"
${
DB_USERNAME
}
"
\
--dbpass
=
${
DB_PASSWORD
}
\
--dbpass
=
"
${
DB_PASSWORD
}
"
\
--driver
=
${
CACHE_DRIVER
}
\
--driver
=
"
${
CACHE_DRIVER
}
"
\
--session-driver
=
database
\
--session-driver
=
database
\
--queue-driver
=
database
\
--queue-driver
=
database
\
--timezone
=
${
TIMEZONE
}
--timezone
=
"
${
TIMEZONE
}
"
php artisan pterodactyl:mail
-n
\
php artisan pterodactyl:mail
-n
\
--driver
=
"
${
MAIL_DRIVER
}
"
\
--driver
=
"
${
MAIL_DRIVER
}
"
\
...
...
manifest/etc/nginx/modules/nodaemon.conf
0 → 100644
View file @
11db638a
# Prevents nginx from going into the background
daemon
off
;
\ No newline at end of file
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