-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docker support for upcoming v3
- Loading branch information
Showing
9 changed files
with
41 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:wily | ||
FROM ubuntu:trusty | ||
MAINTAINER Brady Wetherington <[email protected]> | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
|
@@ -12,7 +12,8 @@ php5-gd \ | |
patch \ | ||
curl \ | ||
vim \ | ||
git | ||
git \ | ||
mysql-client | ||
|
||
RUN php5enmod mcrypt | ||
RUN php5enmod gd | ||
|
@@ -28,6 +29,7 @@ RUN echo export APACHE_RUN_GROUP=staff >> /etc/apache2/envvars | |
COPY docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf | ||
|
||
#SSL | ||
RUN mkdir -p /var/lib/snipeit/ssl | ||
COPY docker/001-default-ssl.conf /etc/apache2/sites-enabled/001-default-ssl.conf | ||
#COPY docker/001-default-ssl.conf /etc/apache2/sites-available/001-default-ssl.conf | ||
|
||
|
@@ -43,13 +45,21 @@ RUN a2enmod rewrite | |
WORKDIR /var/www/html | ||
|
||
#Append to bootstrap file (less brittle than 'patch') | ||
RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php | ||
# RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php | ||
|
||
#copy all configuration files | ||
COPY docker/*.php /var/www/html/app/config/production/ | ||
# COPY docker/*.php /var/www/html/app/config/production/ | ||
COPY docker/docker.env /var/www/html/.env | ||
|
||
RUN chown -R docker /var/www/html | ||
|
||
RUN \ | ||
rm -r "/var/www/html/app/private_uploads" && ln -fs "/var/lib/snipeit/data/private_uploads" "/var/www/html/app/private_uploads" && \ | ||
rm -r "/var/www/html/public/uploads/avatars" && ln -fs "/var/lib/snipeit/data/uploads/avatars" "/var/www/html/public/uploads/avatars" && \ | ||
rm -r "/var/www/html/public/uploads/models" && ln -fs "/var/lib/snipeit/data/uploads/models" "/var/www/html/public/uploads/models" && \ | ||
rm -r "/var/www/html/public/uploads/suppliers" && ln -fs "/var/lib/snipeit/data/uploads/suppliers" "/var/www/html/public/uploads/suppliers" && \ | ||
rm -r "/var/www/html/app/storage/dumps" && ln -fs "/var/lib/snipeit/dumps" "/var/www/html/app/storage/dumps" | ||
|
||
############## DEPENDENCIES via COMPOSER ################### | ||
|
||
#global install of composer | ||
|
@@ -67,6 +77,10 @@ RUN cd /var/www/html;composer install | |
#RUN chmod +x /tmp/app_install.exp | ||
#RUN /tmp/app_install.exp | ||
|
||
############### DATA VOLUME ################# | ||
|
||
VOLUME [/var/lib/snipeit] | ||
|
||
##### START SERVER | ||
|
||
COPY docker/entrypoint.sh /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Docker Environment File | ||
|
||
#Database Variables | ||
MYSQL_ROOT_PASSWORD=supersecuresecretthing | ||
MYSQL_DATABASE=snipeit | ||
MYSQL_USER=snipeit | ||
MYSQL_PASSWORD=tinglewingler | ||
|
@@ -15,6 +16,9 @@ [email protected] | |
MAIL_ENV_PASSWORD=N7AqLufTZMULWHWYwJ0ZCw | ||
|
||
#SNIPE-IT Variables | ||
SNIPEIT_TIMEZONE=America/Los_Angeles | ||
SNIPEIT_LOCALE=es-ES | ||
SERVER_URL=https://192.168.99.100:32775 | ||
APP_ENV=develop | ||
APP_DEBUG=true | ||
APP_KEY=Y5hJeC7x1i7OxhDrvrQPlB9KvCorvRdO | ||
APP_URL=http:https://127.0.0.1:32782 | ||
APP_TIMEZONE=US/Pacific | ||
APP_LOCALE=en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.