forked from snipe/snipe-it
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fe00b0e
Showing
4,229 changed files
with
577,913 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.git | ||
.dockerignore | ||
app/storage/logs/* | ||
app/storage/views/* | ||
vendor/* |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# -------------------------------------------- | ||
# REQUIRED: BASIC APP SETTINGS | ||
# -------------------------------------------- | ||
APP_ENV=production | ||
APP_DEBUG=false | ||
APP_KEY=ChangeMe | ||
APP_URL=null | ||
APP_TIMEZONE='US/Pacific' | ||
APP_LOCALE=en | ||
|
||
|
||
# -------------------------------------------- | ||
# REQUIRED: DATABASE SETTINGS | ||
# -------------------------------------------- | ||
DB_CONNECTION=mysql | ||
DB_HOST=localhost | ||
DB_DATABASE=null | ||
DB_USERNAME=null | ||
DB_PASSWORD=null | ||
|
||
|
||
# -------------------------------------------- | ||
# REQUIRED: OUTGOING MAIL SERVER SETTINGS | ||
# -------------------------------------------- | ||
MAIL_DRIVER=smtp | ||
MAIL_HOST=email-smtp.us-west-2.amazonaws.com | ||
MAIL_PORT=587 | ||
MAIL_USERNAME=YOURUSERNAME | ||
MAIL_PASSWORD=YOURPASSWORD | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDR=you@example.com | ||
MAIL_FROM_NAME=Snipe-IT | ||
|
||
|
||
# -------------------------------------------- | ||
# REQUIRED: IMAGE LIBRARY | ||
# This should be gd or imagick | ||
# -------------------------------------------- | ||
IMAGE_LIB=gd | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: SESSION SETTINGS | ||
# -------------------------------------------- | ||
SESSION_LIFETIME=12000 | ||
EXPIRE_ON_CLOSE=false | ||
ENCRYPT=false | ||
COOKIE_NAME=snipeit_session | ||
COOKIE_DOMAIN=null | ||
SECURE_COOKIES=false | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: CACHE SETTINGS | ||
# -------------------------------------------- | ||
CACHE_DRIVER=file | ||
SESSION_DRIVER=file | ||
QUEUE_DRIVER=sync | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: AWS S3 SETTINGS | ||
# -------------------------------------------- | ||
AWS_SECRET=null | ||
AWS_KEY=null | ||
AWS_REGION=null | ||
AWS_BUCKET=null | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: MISC | ||
# -------------------------------------------- | ||
APP_LOG=single | ||
APP_LOCKED=false | ||
FILESYSTEM_DISK=local |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# -------------------------------------------- | ||
# REQUIRED: BASIC APP SETTINGS | ||
# -------------------------------------------- | ||
APP_ENV=testing-ci | ||
APP_DEBUG=true | ||
APP_KEY=ChangeMe | ||
APP_URL=null | ||
APP_TIMEZONE='US/Pacific' | ||
APP_LOCALE=en | ||
FILESYSTEM_DISK=local | ||
|
||
# -------------------------------------------- | ||
# REQUIRED: DATABASE SETTINGS | ||
# -------------------------------------------- | ||
DB_CONNECTION=sqlite | ||
DB_HOST=localhost | ||
DB_DATABASE=sqlite_testing.sqlite | ||
DB_USERNAME=null | ||
DB_PASSWORD=null | ||
|
||
# -------------------------------------------- | ||
# REQUIRED: OUTGOING MAIL SERVER SETTINGS | ||
# -------------------------------------------- | ||
MAIL_DRIVER=smtp | ||
MAIL_HOST=email-smtp.us-west-2.amazonaws.com | ||
MAIL_PORT=587 | ||
MAIL_USERNAME=YOURUSERNAME | ||
MAIL_PASSWORD=YOURPASSWORD | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDR=you@example.com | ||
MAIL_FROM_NAME=Snipe-IT | ||
|
||
# -------------------------------------------- | ||
# REQUIRED: IMAGE LIBRARY | ||
# This should be gd or imagick | ||
# -------------------------------------------- | ||
IMAGE_LIB=gd | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: AWS S3 SETTINGS | ||
# -------------------------------------------- | ||
AWS_SECRET=null | ||
AWS_KEY=null | ||
AWS_REGION=null | ||
AWS_BUCKET=null | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: CACHE SETTINGS | ||
# -------------------------------------------- | ||
CACHE_DRIVER=file | ||
SESSION_DRIVER=file | ||
QUEUE_DRIVER=sync | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: SESSION SETTINGS | ||
# -------------------------------------------- | ||
SESSION_LIFETIME=12000 | ||
EXPIRE_ON_CLOSE=false | ||
ENCRYPT=false | ||
COOKIE_NAME=snipeit_session | ||
COOKIE_DOMAIN=null | ||
SECURE_COOKIES=false | ||
|
||
|
||
# -------------------------------------------- | ||
# OPTIONAL: APP LOG FORMAT | ||
# -------------------------------------------- | ||
APP_LOG=single |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#### Expected Behavior (or desired behavior if a feature request) | ||
|
||
(what you expect to happen goes here) | ||
|
||
----- | ||
|
||
#### Actual Behavior | ||
|
||
(what actually happens goes here) | ||
|
||
----- | ||
|
||
#### Please confirm you have done the following before posting your bug report: | ||
|
||
- [ ] I have enabled debug mode | ||
- [ ] I have read [checked the Common Issues page](http://docs.snipeitapp.com/common-issues.html) | ||
|
||
----- | ||
#### Please provide answers to these questions before posting your bug report: | ||
|
||
- Version of Snipe-IT you're running | ||
- What OS and web server you're running Snipe-IT on | ||
- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) | ||
- If you're getting an error in your browser, include that error | ||
- What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error | ||
- If a stacktrace is provided in the error, include that too. | ||
- Any errors that appear in your browser's error console. | ||
- Confirm whether the error is [reproduceable on the demo](https://snipeitapp.com/demo). | ||
- Include any additional information you can find in `app/storage/logs` and your webserver's logs. | ||
- Include what you've done so far in the installation, and if you got any error messages along the way. | ||
- Indicate whether or not you've manually edited any data directly in the database |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/vendor | ||
/node_modules | ||
Homestead.yaml | ||
Homestead.json | ||
.env | ||
|
||
tests/_output/* | ||
.DS_Store | ||
public/uploads/models/* | ||
public/uploads/avatars/* | ||
public/uploads/suppliers/* | ||
public/uploads/assets/* | ||
public/uploads/*.gif | ||
public/uploads/*.jpg | ||
public/uploads/*.png | ||
public/uploads/*.tif | ||
public/uploads/*.svg | ||
storage/app/private_uploads/users/* | ||
phpDocumentor.phar | ||
output | ||
tests/_support/_generated/* | ||
|
||
|
||
/bootstrap/compiled.php | ||
composer.phar | ||
/app/config/database.php | ||
/app/config/mail.php | ||
/app/database/*.sqlite | ||
/app/storage/meta/services.json | ||
/app/config/*/mail.php | ||
/app/config/*/session.php | ||
/app/config/*/database.php | ||
/app/config/*/app.php | ||
/app/config/*/ldap.php | ||
public/packages/* | ||
/app/storage/views/* | ||
/app/storage/logs/* | ||
/app/storage/debugbar/ | ||
/bin/ | ||
.idea | ||
crowdin.yaml | ||
public/uploads/logo.gif | ||
public/uploads/logo.png | ||
.siteflow | ||
public/assets/.siteflow | ||
app/config/local/session.php | ||
.couscous | ||
app/storage/dumps/* | ||
tests/_data/scenarios |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
addons: | ||
hosts: | ||
- localhost | ||
sudo: false | ||
|
||
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints | ||
language: php | ||
|
||
# list any PHP version you want to test against | ||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
|
||
# optionally specify a list of environments, for example to test different RDBMS | ||
env: | ||
- DB=sqlite | ||
|
||
# execute any number of scripts before the test run, custom env's are available as variables | ||
before_script: | ||
# - php -S localhost:8000 & | ||
- phantomjs --webdriver=4444 & | ||
- sleep 10 | ||
- touch database/testing.sqlite | ||
- composer self-update | ||
- composer install -n --prefer-source | ||
- cp .env.testing .env | ||
- chmod -R 777 storage | ||
- php artisan migrate --database=sqlite_testing --force | ||
- ./vendor/bin/codecept build | ||
- php artisan key:generate | ||
- php artisan db:seed --database=sqlite_testing --force | ||
- php artisan admin:create --first_name=Alison --last_name=Foobar --email=me@example.com --username=snipe --password=password | ||
- php artisan serve --port=8000 --host=localhost & | ||
- sleep 5 | ||
- pip install --user codecov | ||
- sleep 5 | ||
|
||
|
||
|
||
# omitting "script:" will default to phpunit | ||
# use the $DB env variable to determine the phpunit.xml to use | ||
# script: ./vendor/bin/codecept run --env testing-ci <-- this doesn't work | ||
# script: ./vendor/bin/codecept run unit | ||
script: ./vendor/bin/codecept run | ||
|
||
after_success: | ||
- codecov | ||
|
||
after_failure: | ||
- cat tests/_output/AccessoriesCept.fail.html | ||
# - curl http://localhost:4444 | ||
- curl http://localhost:8000 | ||
# configure notifications (email, IRC, campfire etc) | ||
notifications: | ||
email: false | ||
slack: | ||
secure: vv9we1RxB9RsrMbomSdq6D7vz/okobw87pEkgIZjB+hj1QpQ2by90gsPsOa+NgsJEFaEP7e4KlT6SH8kK+zhbmuKaUd3d1//XdcancE22LZXi6tkiB5yuR/Jhhb1LLDqyGJTB4D92hMnnCPiUjpxNA3r437ttNeYRdYIEEP3drA= | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/5e136eb0c1965f3918d0 | ||
on_success: change # options: [always|never|change] default: always | ||
on_failure: change # options: [always|never|change] default: always | ||
on_start: false # default: false |
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
FROM ubuntu | ||
MAINTAINER Brady Wetherington <uberbrady@gmail.com> | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
apache2-bin \ | ||
libapache2-mod-php5 \ | ||
php5-curl \ | ||
php5-ldap \ | ||
php5-mysql \ | ||
php5-mcrypt \ | ||
php5-gd \ | ||
patch \ | ||
curl \ | ||
vim \ | ||
git | ||
|
||
RUN php5enmod mcrypt | ||
RUN php5enmod gd | ||
|
||
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php5/apache2/php.ini | ||
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php5/cli/php.ini | ||
|
||
RUN useradd --uid 1000 --gid 50 docker | ||
|
||
RUN echo export APACHE_RUN_USER=docker >> /etc/apache2/envvars | ||
RUN echo export APACHE_RUN_GROUP=staff >> /etc/apache2/envvars | ||
|
||
COPY docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf | ||
|
||
#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 | ||
|
||
RUN a2enmod ssl | ||
#RUN a2ensite 001-default-ssl.conf | ||
|
||
COPY . /var/www/html | ||
|
||
RUN a2enmod rewrite | ||
|
||
############ INITIAL APPLICATION SETUP ##################### | ||
|
||
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 | ||
|
||
#copy all configuration files | ||
COPY docker/*.php /var/www/html/app/config/production/ | ||
|
||
RUN chown -R docker /var/www/html | ||
|
||
############## DEPENDENCIES via COMPOSER ################### | ||
|
||
#global install of composer | ||
RUN cd /tmp;curl -sS https://getcomposer.org/installer | php;mv /tmp/composer.phar /usr/local/bin/composer | ||
|
||
# Get dependencies | ||
RUN cd /var/www/html;composer install | ||
|
||
############### APPLICATION INSTALL/INIT ################# | ||
|
||
#RUN php artisan app:install | ||
# too interactive! Try something else | ||
|
||
#COPY docker/app_install.exp /tmp/app_install.exp | ||
#RUN chmod +x /tmp/app_install.exp | ||
#RUN /tmp/app_install.exp | ||
|
||
##### START SERVER | ||
|
||
COPY docker/entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 |
Oops, something went wrong.