├── public
├── favicon.ico
├── robots.txt
└── .htaccess
├── app
├── Listeners
│ ├── .gitkeep
│ └── TestEventListener.php
├── Events
│ ├── Event.php
│ ├── TestEvent.php
│ └── OtherTestEvent.php
├── Http
│ ├── Requests
│ │ ├── Request.php
│ │ ├── PostStoreRequest.php
│ │ └── PostUpdateRequest.php
│ ├── Controllers
│ │ ├── Controller.php
│ │ ├── WelcomeController.php
│ │ └── Auth
│ │ │ ├── ResetPasswordController.php
│ │ │ ├── ForgotPasswordController.php
│ │ │ └── LoginController.php
│ ├── Middleware
│ │ ├── VerifyCsrfToken.php
│ │ ├── RedirectIfAuthenticated.php
│ │ └── Authenticate.php
│ └── Kernel.php
├── Test
│ ├── StringConverter.php
│ ├── ToLowercase.php
│ ├── ToUppercase.php
│ └── Repeat.php
├── Post.php
├── Validation
│ └── CustomValidator.php
├── Jobs
│ └── Job.php
├── Providers
│ ├── ConfigServiceProvider.php
│ ├── EventServiceProvider.php
│ ├── RouteServiceProvider.php
│ └── AppServiceProvider.php
├── Console
│ ├── Kernel.php
│ └── Commands
│ │ ├── Inspire.php
│ │ └── CreateUser.php
└── User.php
├── database
├── seeds
│ ├── .gitkeep
│ ├── DatabaseSeeder.php
│ └── UserTableSeeder.php
├── migrations
│ ├── .gitkeep
│ ├── 2014_10_25_122420_create_posts_table.php
│ ├── 2014_10_12_100000_create_password_resets_table.php
│ └── 2014_10_12_000000_create_users_table.php
├── .gitignore
└── factories
│ └── ModelFactory.php
├── laradock
├── logs
│ ├── nginx
│ │ ├── .gitkeep
│ │ └── error.log
│ └── apache2
│ │ └── .gitkeep
├── certbot
│ ├── letsencrypt
│ │ ├── .gitkeep
│ │ └── .well-known
│ │ │ └── .gitkeep
│ ├── run-certbot.sh
│ └── Dockerfile
├── logstash
│ ├── pipeline
│ │ └── .gitkeep
│ ├── config
│ │ └── logstash.yml
│ └── Dockerfile
├── jupyterhub
│ ├── userlist
│ ├── start.sh
│ ├── start-notebook.sh
│ ├── Dockerfile
│ └── start-singleuser.sh
├── DOCUMENTATION
│ ├── static
│ │ ├── CNAME
│ │ ├── ads.txt
│ │ └── custom-style.css
│ └── themes
│ │ └── hugo-material-docs
│ │ ├── layouts
│ │ ├── 404.html
│ │ ├── shortcodes
│ │ │ ├── note.html
│ │ │ └── warning.html
│ │ └── partials
│ │ │ ├── nav_link.html
│ │ │ └── nav.html
│ │ ├── archetypes
│ │ └── default.md
│ │ ├── static
│ │ ├── fonts
│ │ │ ├── icon.eot
│ │ │ ├── icon.ttf
│ │ │ └── icon.woff
│ │ ├── images
│ │ │ ├── logo.png
│ │ │ ├── favicon.ico
│ │ │ ├── favicons
│ │ │ │ ├── favicon.ico
│ │ │ │ ├── apple-icon.png
│ │ │ │ ├── favicon-16x16.png
│ │ │ │ ├── favicon-32x32.png
│ │ │ │ ├── favicon-96x96.png
│ │ │ │ ├── ms-icon-70x70.png
│ │ │ │ ├── ms-icon-144x144.png
│ │ │ │ ├── ms-icon-150x150.png
│ │ │ │ ├── ms-icon-310x310.png
│ │ │ │ ├── android-icon-36x36.png
│ │ │ │ ├── android-icon-48x48.png
│ │ │ │ ├── android-icon-72x72.png
│ │ │ │ ├── android-icon-96x96.png
│ │ │ │ ├── apple-icon-114x114.png
│ │ │ │ ├── apple-icon-120x120.png
│ │ │ │ ├── apple-icon-144x144.png
│ │ │ │ ├── apple-icon-152x152.png
│ │ │ │ ├── apple-icon-180x180.png
│ │ │ │ ├── apple-icon-57x57.png
│ │ │ │ ├── apple-icon-60x60.png
│ │ │ │ ├── apple-icon-72x72.png
│ │ │ │ ├── apple-icon-76x76.png
│ │ │ │ ├── android-icon-144x144.png
│ │ │ │ ├── android-icon-192x192.png
│ │ │ │ ├── apple-icon-precomposed.png
│ │ │ │ ├── browserconfig.xml
│ │ │ │ └── manifest.json
│ │ │ ├── laradock-full-logo.jpg
│ │ │ └── photos
│ │ │ │ ├── KiTTY
│ │ │ │ ├── Window.png
│ │ │ │ ├── Session.png
│ │ │ │ ├── Terminal.png
│ │ │ │ ├── Connection.png
│ │ │ │ ├── ConnectionData.png
│ │ │ │ ├── ConnectionSSH.png
│ │ │ │ ├── TerminalShell.png
│ │ │ │ ├── TerminalKeyboard.png
│ │ │ │ ├── WindowAppearance.png
│ │ │ │ └── ConnectionSSHAuth.png
│ │ │ │ ├── PHPStorm
│ │ │ │ ├── RemoteHost.png
│ │ │ │ ├── DebugRemoteOn.png
│ │ │ │ ├── Settings
│ │ │ │ │ ├── hosts.png
│ │ │ │ │ ├── LangsPHPDebug.png
│ │ │ │ │ ├── LangsPHPPHPUnit.png
│ │ │ │ │ ├── LangsPHPServers.png
│ │ │ │ │ ├── LangsPHPInterpreters.png
│ │ │ │ │ ├── WindowsHyperVManager.png
│ │ │ │ │ ├── BuildDeploymentDebugger.png
│ │ │ │ │ ├── BuildDeploymentConnection.png
│ │ │ │ │ ├── WindowsFirewallAllowedApps.png
│ │ │ │ │ ├── BuildDeploymentConnectionMappings.png
│ │ │ │ │ ├── EditRunConfigurationRemoteWebDebug.png
│ │ │ │ │ └── EditRunConfigurationRemoteExampleTestDebug.png
│ │ │ │ ├── RemoteDebuggingSuccess.png
│ │ │ │ ├── RemoteTestDebuggingSuccess.png
│ │ │ │ ├── RemoteWebDebuggingSuccess.png
│ │ │ │ └── linux
│ │ │ │ │ └── configuration
│ │ │ │ │ ├── debugConfiguration.png
│ │ │ │ │ └── serverConfiguration.png
│ │ │ │ └── SimpleHostsEditor
│ │ │ │ └── AddHost_laravel.png
│ │ └── stylesheets
│ │ │ └── temporary.css
│ │ ├── theme.toml
│ │ ├── CHANGELOG.md
│ │ └── LICENSE.md
├── aws-eb-cli
│ ├── .gitignore
│ └── Dockerfile
├── traefik
│ ├── data
│ │ └── .gitignore
│ └── Dockerfile
├── nginx
│ ├── sites
│ │ ├── .gitignore
│ │ ├── default.conf
│ │ ├── app.conf.example
│ │ ├── laravel.conf.example
│ │ └── symfony.conf.example
│ ├── ssl
│ │ └── .gitignore
│ ├── logrotate
│ │ └── nginx
│ ├── startup.sh
│ └── Dockerfile
├── php-worker
│ ├── supervisord.d
│ │ ├── .gitignore
│ │ ├── laravel-worker.conf.example
│ │ └── laravel-scheduler.conf.example
│ └── supervisord.conf
├── laravel-horizon
│ ├── supervisord.d
│ │ ├── .gitignore
│ │ └── laravel-horizon.conf.example
│ └── supervisord.conf
├── mysql
│ ├── docker-entrypoint-initdb.d
│ │ ├── .gitignore
│ │ └── createdb.sql.example
│ ├── my.cnf
│ └── Dockerfile
├── caddy
│ ├── caddy
│ │ ├── authlist.conf
│ │ └── Caddyfile
│ └── Dockerfile
├── couchdb
│ └── Dockerfile
├── mariadb
│ ├── docker-entrypoint-initdb.d
│ │ ├── .gitignore
│ │ └── createdb.sql.example
│ ├── my.cnf
│ └── Dockerfile
├── percona
│ ├── docker-entrypoint-initdb.d
│ │ ├── .gitignore
│ │ └── createdb.sql.example
│ ├── Dockerfile
│ └── my.cnf
├── php-fpm
│ ├── phalcon.ini
│ ├── aerospike.ini
│ ├── xhprof.ini
│ ├── opcache.ini
│ ├── laravel.ini
│ └── xdebug.ini
├── apache2
│ ├── vhost.conf
│ ├── sites
│ │ ├── .gitignore
│ │ ├── default.apache.conf
│ │ └── sample.conf.example
│ └── Dockerfile
├── grafana
│ └── Dockerfile
├── graylog
│ └── Dockerfile
├── jenkins
│ ├── tests
│ │ ├── plugins
│ │ │ ├── plugins.txt
│ │ │ └── Dockerfile
│ │ ├── upgrade-plugins
│ │ │ └── Dockerfile
│ │ ├── install-plugins
│ │ │ ├── Dockerfile
│ │ │ └── update
│ │ │ │ └── Dockerfile
│ │ └── functions.bats
│ ├── .gitmodules
│ ├── init.groovy
│ ├── docker-compose.yml
│ ├── jenkins_home
│ │ └── .gitignore
│ ├── CONTRIBUTING.md
│ ├── .github
│ │ └── ISSUE_TEMPLATE.md
│ ├── Jenkinsfile
│ ├── update-official-library.sh
│ └── jenkins.sh
├── workspace
│ ├── composer.json
│ ├── crontab
│ │ └── laradock
│ ├── aerospike.ini
│ ├── auth.json
│ ├── xdebug.ini
│ ├── insecure_id_rsa.pub
│ └── mc
│ │ └── config.json
├── thumbor
│ └── Dockerfile
├── ide-webide
│ └── Dockerfile
├── docker-registry
│ └── Dockerfile
├── gitlab
│ └── Dockerfile
├── portainer
│ └── Dockerfile
├── sonarqube
│ └── Dockerfile
├── manticore
│ ├── Dockerfile
│ └── config
│ │ └── sphinx.conf
├── mongo-webui
│ └── Dockerfile
├── aerospike
│ └── Dockerfile
├── redis-webui
│ └── Dockerfile
├── redis-cluster
│ └── Dockerfile
├── kibana
│ └── Dockerfile
├── docker-web-ui
│ └── Dockerfile
├── CONTRIBUTING.md
├── maildev
│ └── Dockerfile
├── postgres
│ ├── Dockerfile
│ └── docker-entrypoint-initdb.d
│ │ ├── .gitignore
│ │ └── createdb.sh.example
├── haproxy
│ └── Dockerfile
├── selenium
│ └── Dockerfile
├── elasticsearch
│ └── Dockerfile
├── ide-codiad
│ └── Dockerfile
├── .vscode
│ └── settings.json
├── mailhog
│ └── Dockerfile
├── memcached
│ └── Dockerfile
├── minio
│ └── Dockerfile
├── neo4j
│ └── Dockerfile
├── docker-compose.sync.yml
├── mosquitto
│ └── Dockerfile
├── postgres-postgis
│ └── Dockerfile
├── CODE_OF_CONDUCT.md
├── cassandra
│ └── Dockerfile
├── gearman
│ └── Dockerfile
├── beanstalkd
│ └── Dockerfile
├── ide-theia
│ └── Dockerfile
├── rabbitmq
│ └── Dockerfile
├── zookeeper
│ └── Dockerfile
├── .editorconfig
├── mongo
│ └── Dockerfile
├── mssql
│ └── Dockerfile
├── laravel-echo-server
│ ├── package.json
│ ├── laravel-echo-server.json
│ └── Dockerfile
├── .devcontainer
│ └── devcontainer.example.json
├── ipython
│ ├── ipcontroller-engine.json
│ ├── ipcontroller-client.json
│ ├── Dockerfile.controller
│ └── Dockerfile.engine
├── redis
│ └── Dockerfile
├── ide-icecoder
│ └── Dockerfile
├── rethinkdb
│ └── Dockerfile
├── phpmyadmin
│ └── Dockerfile
├── varnish
│ ├── Dockerfile
│ └── start.sh
├── docker-sync.yml
├── beanstalkd-console
│ └── Dockerfile
├── hhvm
│ ├── server.ini
│ └── Dockerfile
├── LICENSE
├── adminer
│ └── Dockerfile
└── solr
│ └── Dockerfile
├── .gitattributes
├── resources
├── views
│ ├── vendor
│ │ └── .gitkeep
│ ├── flash.blade.php
│ ├── auth
│ │ └── emails
│ │ │ └── password.blade.php
│ ├── service-container.blade.php
│ ├── form.blade.php
│ ├── home.blade.php
│ ├── special-characters.blade.php
│ ├── hello.blade.php
│ ├── users
│ │ ├── show.blade.php
│ │ └── edit.blade.php
│ ├── posts
│ │ ├── create.blade.php
│ │ ├── show.blade.php
│ │ ├── edit.blade.php
│ │ └── index.blade.php
│ ├── errors
│ │ └── 503.blade.php
│ ├── welcome.blade.php
│ └── layouts
│ │ └── scaffold.blade.php
├── assets
│ └── less
│ │ ├── bootstrap
│ │ ├── mixins
│ │ │ ├── center-block.less
│ │ │ ├── text-emphasis.less
│ │ │ ├── size.less
│ │ │ ├── background-variant.less
│ │ │ ├── opacity.less
│ │ │ ├── text-overflow.less
│ │ │ ├── tab-focus.less
│ │ │ ├── labels.less
│ │ │ ├── resize.less
│ │ │ ├── progress-bar.less
│ │ │ ├── nav-divider.less
│ │ │ ├── reset-filter.less
│ │ │ ├── alerts.less
│ │ │ ├── nav-vertical-align.less
│ │ │ ├── responsive-visibility.less
│ │ │ ├── pagination.less
│ │ │ ├── border-radius.less
│ │ │ ├── panels.less
│ │ │ ├── list-group.less
│ │ │ ├── hide-text.less
│ │ │ ├── clearfix.less
│ │ │ ├── table-row.less
│ │ │ ├── image.less
│ │ │ └── buttons.less
│ │ ├── wells.less
│ │ ├── breadcrumbs.less
│ │ ├── responsive-embed.less
│ │ ├── close.less
│ │ ├── media.less
│ │ ├── component-animations.less
│ │ ├── thumbnails.less
│ │ ├── utilities.less
│ │ ├── pager.less
│ │ ├── jumbotron.less
│ │ ├── mixins.less
│ │ ├── bootstrap.less
│ │ ├── labels.less
│ │ └── badges.less
│ │ └── app.less
└── lang
│ └── en
│ ├── pagination.php
│ └── passwords.php
├── storage
├── .gitignore
├── app
│ └── .gitignore
├── logs
│ └── .gitignore
└── framework
│ ├── cache
│ └── .gitignore
│ ├── views
│ └── .gitignore
│ ├── sessions
│ └── .gitignore
│ └── .gitignore
├── bootstrap
├── cache
│ └── .gitignore
└── autoload.php
├── tests
├── _data
│ ├── dump.sql
│ └── logo.jpg
├── api
│ └── _bootstrap.php
├── unit
│ ├── _bootstrap.php
│ └── UserTest.php
├── seeder
│ ├── _bootstrap.php
│ └── DatabaseSeederCest.php
├── _bootstrap.php
├── unit.suite.yml
├── functional
│ ├── IndexCept.php
│ ├── FlashCept.php
│ ├── _bootstrap.php
│ ├── BackCept.php
│ ├── UploadedFilesCept.php
│ ├── SpecialCharactersCept.php
│ ├── FormCept.php
│ ├── ArtisanCest.php
│ ├── HelpersCest.php
│ ├── RegisterCept.php
│ ├── SessionCest.php
│ ├── ApplicationHandlerCept.php
│ ├── LoginCept.php
│ ├── EditProfileCept.php
│ ├── CustomValidationCest.php
│ ├── ModelFactoryCest.php
│ ├── RoutesCest.php
│ ├── InternalDomainsCest.php
│ ├── FormErrorsCest.php
│ └── ServiceContainerCest.php
├── _support
│ ├── Helper
│ │ ├── Api.php
│ │ ├── Unit.php
│ │ ├── Functional.php
│ │ └── Seeder.php
│ ├── UnitTester.php
│ ├── ApiTester.php
│ ├── SeederTester.php
│ └── FunctionalTester.php
├── api.suite.yml
├── functional.suite.yml
└── seeder.suite.yml
├── .env.example
├── .env.testing
├── package.json
├── phpspec.yml
├── .gitignore
├── after.sh
├── gulpfile.js
├── codeception.yml
├── server.php
├── phpunit.xml
├── config
├── services.php
├── view.php
└── compile.php
└── composer.json
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/Listeners/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/database/seeds/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/database/migrations/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laradock/logs/nginx/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 |
--------------------------------------------------------------------------------
/laradock/logs/apache2/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laradock/logs/nginx/error.log:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/vendor/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/storage/.gitignore:
--------------------------------------------------------------------------------
1 | laravel.log
--------------------------------------------------------------------------------
/laradock/certbot/letsencrypt/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laradock/logstash/pipeline/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laradock/jupyterhub/userlist:
--------------------------------------------------------------------------------
1 | laradock
2 |
--------------------------------------------------------------------------------
/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/static/CNAME:
--------------------------------------------------------------------------------
1 | laradock.io
--------------------------------------------------------------------------------
/laradock/aws-eb-cli/.gitignore:
--------------------------------------------------------------------------------
1 | ./ssh_keys
2 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laradock/certbot/letsencrypt/.well-known/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laradock/traefik/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
--------------------------------------------------------------------------------
/laradock/nginx/sites/.gitignore:
--------------------------------------------------------------------------------
1 | *.conf
2 | !default.conf
--------------------------------------------------------------------------------
/laradock/php-worker/supervisord.d/.gitignore:
--------------------------------------------------------------------------------
1 | *.conf
2 |
--------------------------------------------------------------------------------
/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laradock/laravel-horizon/supervisord.d/.gitignore:
--------------------------------------------------------------------------------
1 | *.conf
2 |
--------------------------------------------------------------------------------
/laradock/mysql/docker-entrypoint-initdb.d/.gitignore:
--------------------------------------------------------------------------------
1 | *.sql
2 |
--------------------------------------------------------------------------------
/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/layouts/404.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/laradock/caddy/caddy/authlist.conf:
--------------------------------------------------------------------------------
1 | basicauth / laradock laradock
2 |
--------------------------------------------------------------------------------
/laradock/couchdb/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM couchdb
2 |
3 | EXPOSE 5984
4 |
--------------------------------------------------------------------------------
/laradock/mariadb/docker-entrypoint-initdb.d/.gitignore:
--------------------------------------------------------------------------------
1 | *.sql
2 |
--------------------------------------------------------------------------------
/laradock/nginx/ssl/.gitignore:
--------------------------------------------------------------------------------
1 | *.crt
2 | *.csr
3 | *.key
4 | *.pem
--------------------------------------------------------------------------------
/laradock/percona/docker-entrypoint-initdb.d/.gitignore:
--------------------------------------------------------------------------------
1 | *.sql
2 |
--------------------------------------------------------------------------------
/resources/views/flash.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
--------------------------------------------------------------------------------
/laradock/php-fpm/phalcon.ini:
--------------------------------------------------------------------------------
1 | extension=psr.so
2 | extension=phalcon.so
--------------------------------------------------------------------------------
/laradock/apache2/vhost.conf:
--------------------------------------------------------------------------------
1 | Include /etc/apache2/sites-available/*.conf
2 |
--------------------------------------------------------------------------------
/laradock/grafana/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM grafana/grafana:latest
2 |
3 | EXPOSE 3000
--------------------------------------------------------------------------------
/laradock/graylog/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM graylog/graylog:3.0
2 |
3 | EXPOSE 9000
4 |
--------------------------------------------------------------------------------
/laradock/jenkins/tests/plugins/plugins.txt:
--------------------------------------------------------------------------------
1 | maven-plugin:2.7.1
2 | ant:1.3
3 |
--------------------------------------------------------------------------------
/tests/_data/dump.sql:
--------------------------------------------------------------------------------
1 | /* Replace this file with actual dump of your database */
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/archetypes/default.md:
--------------------------------------------------------------------------------
1 | ---
2 | ---
--------------------------------------------------------------------------------
/laradock/workspace/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "require": {
3 |
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/laradock/apache2/sites/.gitignore:
--------------------------------------------------------------------------------
1 | *.conf
2 | !default.conf
3 | !default.apache.conf
4 |
--------------------------------------------------------------------------------
/laradock/thumbor/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM apsl/thumbor
2 |
3 | CMD ["thumbor"]
4 |
5 | EXPOSE 8000
6 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/static/ads.txt:
--------------------------------------------------------------------------------
1 | google.com, pub-9826129398689742, DIRECT, f08c47fec0942fa0
2 |
--------------------------------------------------------------------------------
/app/Events/Event.php:
--------------------------------------------------------------------------------
1 | "
4 |
--------------------------------------------------------------------------------
/laradock/docker-registry/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM registry:2
2 |
3 | LABEL maintainer="ahkui "
4 |
--------------------------------------------------------------------------------
/laradock/gitlab/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM gitlab/gitlab-ce:latest
2 |
3 | LABEL maintainer="ahkui "
4 |
--------------------------------------------------------------------------------
/laradock/portainer/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM portainer/portainer
2 |
3 | LABEL maintainer="luciano@lucianojr.com.br"
4 |
--------------------------------------------------------------------------------
/laradock/sonarqube/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM sonarqube:latest
2 |
3 | LABEL maintainer="xiagw "
4 |
--------------------------------------------------------------------------------
/tests/_data/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/tests/_data/logo.jpg
--------------------------------------------------------------------------------
/tests/api/_bootstrap.php:
--------------------------------------------------------------------------------
1 | "
4 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "gulp": "^3.8.8",
4 | "laravel-elixir": "*"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/phpspec.yml:
--------------------------------------------------------------------------------
1 | suites:
2 | main:
3 | namespace: App
4 | psr4_prefix: App
5 | src_path: app
--------------------------------------------------------------------------------
/tests/seeder/_bootstrap.php:
--------------------------------------------------------------------------------
1 | "
4 |
--------------------------------------------------------------------------------
/laradock/redis-webui/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM erikdubbelboer/phpredisadmin
2 |
3 | LABEL maintainer="ahkui "
4 |
--------------------------------------------------------------------------------
/laradock/workspace/crontab/laradock:
--------------------------------------------------------------------------------
1 | * * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1
2 |
--------------------------------------------------------------------------------
/resources/views/auth/emails/password.blade.php:
--------------------------------------------------------------------------------
1 | Click here to reset your password: {{ url('password/reset/'.$token) }}
2 |
--------------------------------------------------------------------------------
/laradock/redis-cluster/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM grokzen/redis-cluster:latest
2 |
3 | LABEL maintainer="hareku "
4 |
--------------------------------------------------------------------------------
/tests/_bootstrap.php:
--------------------------------------------------------------------------------
1 | "
4 |
--------------------------------------------------------------------------------
/storage/framework/.gitignore:
--------------------------------------------------------------------------------
1 | config.php
2 | routes.php
3 | compiled.php
4 | services.json
5 | events.scanned.php
6 | routes.scanned.php
7 |
--------------------------------------------------------------------------------
/laradock/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Thank you for your consideration
2 |
3 | Checkout out our [contribution guide](http://laradock.io/contributing).
4 |
--------------------------------------------------------------------------------
/laradock/jenkins/tests/upgrade-plugins/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM bats-jenkins
2 |
3 | RUN /usr/local/bin/install-plugins.sh maven-plugin:2.13 ant:1.2
4 |
--------------------------------------------------------------------------------
/laradock/maildev/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM djfarrelly/maildev
2 |
3 | LABEL maintainer="Maxime Hélias "
4 |
5 | EXPOSE 80 25
6 |
--------------------------------------------------------------------------------
/laradock/postgres/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG POSTGRES_VERSION=alpine
2 | FROM postgres:${POSTGRES_VERSION}
3 |
4 | CMD ["postgres"]
5 |
6 | EXPOSE 5432
7 |
--------------------------------------------------------------------------------
/laradock/haproxy/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM dockercloud/haproxy:latest
2 |
3 | LABEL maintainer="ZeroC0D3 Team"
4 |
5 | EXPOSE 80
6 |
--------------------------------------------------------------------------------
/laradock/selenium/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM selenium/standalone-chrome
2 |
3 | LABEL maintainer="Edmund Luong "
4 |
5 | EXPOSE 4444
6 |
--------------------------------------------------------------------------------
/laradock/elasticsearch/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG ELK_VERSION=7.5.1
2 | FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
3 |
4 | EXPOSE 9200 9300
5 |
--------------------------------------------------------------------------------
/laradock/ide-codiad/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM linuxserver/codiad
2 |
3 | LABEL maintainer="ahkui "
4 |
5 | COPY config.php /defaults/config.php
6 |
--------------------------------------------------------------------------------
/laradock/jenkins/tests/install-plugins/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM bats-jenkins
2 |
3 | RUN /usr/local/bin/install-plugins.sh maven-plugin:2.7.1 ant:1.3 mesos:0.13.0
4 |
--------------------------------------------------------------------------------
/laradock/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "files.associations": {
3 | "env-example": "dotenv",
4 | "Dockerfile-*": "dockerfile"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/laradock/mailhog/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mailhog/mailhog
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | CMD ["Mailhog"]
6 |
7 | EXPOSE 1025 8025
8 |
--------------------------------------------------------------------------------
/laradock/memcached/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM memcached:latest
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | CMD ["memcached"]
6 |
7 | EXPOSE 11211
8 |
--------------------------------------------------------------------------------
/laradock/minio/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM minio/minio
2 |
3 | LABEL maintainer="Thor Erik Lie "
4 |
5 | ENTRYPOINT ["minio", "server", "/export"]
6 |
--------------------------------------------------------------------------------
/laradock/postgres/docker-entrypoint-initdb.d/.gitignore:
--------------------------------------------------------------------------------
1 | *.sh
2 | !init_gitlab_db.sh
3 | !init_jupyterhub_db.sh
4 | !init_sonarqube_db.sh
5 | !init_confluence_db.sh
--------------------------------------------------------------------------------
/laradock/jenkins/tests/install-plugins/update/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM bats-jenkins-install-plugins
2 |
3 | RUN /usr/local/bin/install-plugins.sh maven-plugin:2.13 ant:1.3
4 |
--------------------------------------------------------------------------------
/laradock/neo4j/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM tpires/neo4j
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | VOLUME /var/lib/neo4j/data
6 |
7 | EXPOSE 7474 1337
8 |
--------------------------------------------------------------------------------
/laradock/caddy/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM abiosoft/caddy:no-stats
2 |
3 | CMD ["--conf", "/etc/caddy/Caddyfile", "--log", "stdout", "--agree=true"]
4 |
5 | EXPOSE 80 443 2015
6 |
--------------------------------------------------------------------------------
/laradock/docker-compose.sync.yml:
--------------------------------------------------------------------------------
1 | version: '3'
2 |
3 | services:
4 |
5 | volumes:
6 | applications-sync:
7 | external:
8 | name: "applications-docker-sync"
9 |
--------------------------------------------------------------------------------
/laradock/php-fpm/aerospike.ini:
--------------------------------------------------------------------------------
1 | extension=aerospike.so
2 | aerospike.udf.lua_system_path=/usr/local/aerospike/lua
3 | aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
--------------------------------------------------------------------------------
/tests/unit.suite.yml:
--------------------------------------------------------------------------------
1 | class_name: UnitTester
2 | modules:
3 | enabled:
4 | - \Helper\Unit
5 | - Laravel5:
6 | environment_file: .env.testing
--------------------------------------------------------------------------------
/laradock/mosquitto/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM eclipse-mosquitto:latest
2 |
3 | LABEL maintainer="Luis Coutinho "
4 |
5 | COPY mosquitto.conf /mosquitto/config/
6 |
--------------------------------------------------------------------------------
/laradock/postgres-postgis/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mdillon/postgis:latest
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | CMD ["postgres"]
6 |
7 | EXPOSE 5432
8 |
--------------------------------------------------------------------------------
/laradock/workspace/aerospike.ini:
--------------------------------------------------------------------------------
1 | extension=aerospike.so
2 | aerospike.udf.lua_system_path=/usr/local/aerospike/lua
3 | aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
--------------------------------------------------------------------------------
/laradock/jenkins/tests/plugins/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM bats-jenkins
2 |
3 | COPY plugins.txt /usr/share/jenkins/ref/
4 | RUN /usr/local/bin/plugins.sh /usr/share/jenkins/ref/plugins.txt
5 |
--------------------------------------------------------------------------------
/tests/functional/IndexCept.php:
--------------------------------------------------------------------------------
1 | wantTo('open index page of site');
4 | $I->amOnPage('/');
5 | $I->see('Hello World', 'h1');
6 |
--------------------------------------------------------------------------------
/laradock/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Laradock Code of Conduct
2 |
3 | We follow the [Contributor Covenant](https://www.contributor-covenant.org/version/1/4/code-of-conduct) Code of Conduct.
4 |
--------------------------------------------------------------------------------
/laradock/logstash/config/logstash.yml:
--------------------------------------------------------------------------------
1 | http.host: "0.0.0.0"
2 |
3 | xpack.monitoring.enabled: false
4 | config.reload.automatic: true
5 | path.config: "/usr/share/logstash/pipeline"
6 |
--------------------------------------------------------------------------------
/laradock/workspace/auth.json:
--------------------------------------------------------------------------------
1 | {
2 | "http-basic": {
3 | "repo.magento.com": {
4 | "username": "",
5 | "password": ""
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/laradock/cassandra/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG CASSANDRA_VERSION=latest
2 | FROM bitnami/cassandra:${CASSANDRA_VERSION}
3 |
4 | LABEL maintainer="Stefan Neuhaus "
5 |
6 |
--------------------------------------------------------------------------------
/laradock/gearman/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG GEARMAN_VERSION=latest
2 | FROM artefactual/gearmand:${GEARMAN_VERSION}
3 |
4 | LABEL maintainer="Stefan Neuhaus "
5 |
6 |
--------------------------------------------------------------------------------
/tests/functional/FlashCept.php:
--------------------------------------------------------------------------------
1 | wantTo('see a flash message');
4 | $I->amOnPage('/flash');
5 | $I->see("It's a flash", ".flash");
6 |
--------------------------------------------------------------------------------
/laradock/beanstalkd/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alpine
2 | LABEL maintainer="Mahmoud Zalt "
3 |
4 | RUN apk add --no-cache beanstalkd
5 |
6 | EXPOSE 11300
7 | ENTRYPOINT ["/usr/bin/beanstalkd"]
8 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/center-block.less:
--------------------------------------------------------------------------------
1 | // Center-align a block level element
2 |
3 | .center-block() {
4 | display: block;
5 | margin-left: auto;
6 | margin-right: auto;
7 | }
8 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/text-emphasis.less:
--------------------------------------------------------------------------------
1 | // Typography
2 |
3 | .text-emphasis-variant(@color) {
4 | color: @color;
5 | a&:hover {
6 | color: darken(@color, 10%);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/app/Http/Requests/Request.php:
--------------------------------------------------------------------------------
1 |
2 | {{ .Get "title" }}
3 | {{ printf "%s" .Inner | markdownify }}
4 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/layouts/shortcodes/warning.html:
--------------------------------------------------------------------------------
1 |
2 |
{{ .Get "title" }}
3 |
{{ printf "%s" .Inner | markdownify }}
4 |
--------------------------------------------------------------------------------
/laradock/traefik/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM traefik:v2.2
2 |
3 | LABEL maintainer="Luis Coutinho "
4 |
5 | WORKDIR /data
6 |
7 | RUN touch acme.json
8 |
9 | RUN chmod 600 acme.json
10 |
11 | VOLUME /data
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/size.less:
--------------------------------------------------------------------------------
1 | // Sizing shortcuts
2 |
3 | .size(@width; @height) {
4 | width: @width;
5 | height: @height;
6 | }
7 |
8 | .square(@size) {
9 | .size(@size; @size);
10 | }
11 |
--------------------------------------------------------------------------------
/laradock/ide-theia/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM theiaide/theia
2 |
3 | LABEL maintainer="ahkui "
4 |
5 | USER root
6 |
7 | RUN echo 'fs.inotify.max_user_watches=524288' >> /etc/sysctl.conf
8 |
9 | USER theia
10 |
--------------------------------------------------------------------------------
/laradock/rabbitmq/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM rabbitmq:3.9-alpine
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | RUN rabbitmq-plugins enable --offline rabbitmq_management
6 |
7 | EXPOSE 4369 5671 5672 15671 15672 25672
8 |
--------------------------------------------------------------------------------
/laradock/zookeeper/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM zookeeper:latest
2 |
3 | LABEL maintainer="Hyduan "
4 |
5 | VOLUME /data
6 | VOLUME /datalog
7 |
8 | EXPOSE 2181
9 |
10 | CMD ["zkServer.sh", "start-foreground"]
11 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/background-variant.less:
--------------------------------------------------------------------------------
1 | // Contextual backgrounds
2 |
3 | .bg-variant(@color) {
4 | background-color: @color;
5 | a&:hover {
6 | background-color: darken(@color, 10%);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/opacity.less:
--------------------------------------------------------------------------------
1 | // Opacity
2 |
3 | .opacity(@opacity) {
4 | opacity: @opacity;
5 | // IE8 filter
6 | @opacity-ie: (@opacity * 100);
7 | filter: ~"alpha(opacity=@{opacity-ie})";
8 | }
9 |
--------------------------------------------------------------------------------
/laradock/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | end_of_line = lf
5 | insert_final_newline = true
6 |
7 | [*]
8 | charset = utf-8
9 |
10 | [{Dockerfile,docker-compose.yml}]
11 | indent_style = space
12 | indent_size = 2
13 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/favicon.ico
--------------------------------------------------------------------------------
/resources/assets/less/app.less:
--------------------------------------------------------------------------------
1 | @import "bootstrap/bootstrap";
2 |
3 | @btn-font-weight: 300;
4 | @font-family-sans-serif: "Roboto", Helvetica, Arial, sans-serif;
5 |
6 | body, label, .checkbox label {
7 | font-weight: 300;
8 | }
9 |
--------------------------------------------------------------------------------
/app/Test/StringConverter.php:
--------------------------------------------------------------------------------
1 | {{ $converter->convert('String To Convert') }}
7 | @stop
8 |
--------------------------------------------------------------------------------
/tests/_support/Helper/Api.php:
--------------------------------------------------------------------------------
1 | "
4 |
5 | RUN chown -R mysql:root /var/lib/mysql/
6 |
7 | COPY my.cnf /etc/mysql/conf.d/my.cnf
8 |
9 | CMD ["mysqld"]
10 |
11 | EXPOSE 3306
12 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/tab-focus.less:
--------------------------------------------------------------------------------
1 | // WebKit-style focus
2 |
3 | .tab-focus() {
4 | // Default
5 | outline: thin dotted;
6 | // WebKit
7 | outline: 5px auto -webkit-focus-ring-color;
8 | outline-offset: -2px;
9 | }
10 |
--------------------------------------------------------------------------------
/tests/_support/Helper/Unit.php:
--------------------------------------------------------------------------------
1 | wantTo('redirect back using /back route');
4 | $I->amOnPage('/');
5 | $I->amOnPage('/back');
6 | $I->expect('I am redirected back to /');
7 | $I->seeCurrentUrlEquals('/');
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/android-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/android-icon-144x144.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/android-icon-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/android-icon-192x192.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/KiTTY/TerminalKeyboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/KiTTY/TerminalKeyboard.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/KiTTY/WindowAppearance.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/KiTTY/WindowAppearance.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/DebugRemoteOn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/DebugRemoteOn.png
--------------------------------------------------------------------------------
/tests/functional.suite.yml:
--------------------------------------------------------------------------------
1 | class_name: FunctionalTester
2 | modules:
3 | enabled:
4 | - Helper\Functional
5 | - Asserts
6 | - REST:
7 | depends: Laravel5
8 | - Laravel5:
9 | environment_file: .env.testing
--------------------------------------------------------------------------------
/app/Post.php:
--------------------------------------------------------------------------------
1 | "
4 |
5 | #COPY mongo.conf /usr/local/etc/mongo/mongo.conf
6 |
7 | VOLUME /data/db /data/configdb
8 |
9 | CMD ["mongod"]
10 |
11 | EXPOSE 27017
12 |
13 |
--------------------------------------------------------------------------------
/laradock/php-fpm/xhprof.ini:
--------------------------------------------------------------------------------
1 | [xhprof]
2 | ; extension=xhprof.so
3 | extension=tideways_xhprof.so
4 | xhprof.output_dir=/var/www/xhprof
5 | ; no need to autoload, control in the program
6 | tideways.auto_prepend_library=0
7 | ; set default rate
8 | tideways.sample_rate=100
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/labels.less:
--------------------------------------------------------------------------------
1 | // Labels
2 |
3 | .label-variant(@color) {
4 | background-color: @color;
5 |
6 | &[href] {
7 | &:hover,
8 | &:focus {
9 | background-color: darken(@color, 10%);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/resize.less:
--------------------------------------------------------------------------------
1 | // Resize anything
2 |
3 | .resizable(@direction) {
4 | resize: @direction; // Options: horizontal, vertical, both
5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
6 | }
7 |
--------------------------------------------------------------------------------
/laradock/mssql/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mcr.microsoft.com/mssql/server:2017-latest-ubuntu
2 |
3 | ENV MSSQL_PID=Express
4 | ENV MSSQL_DATABASE=$MSSQL_DATABASE
5 | ENV ACCEPT_EULA=Y
6 | ENV SA_PASSWORD=$MSSQL_PASSWORD
7 |
8 | VOLUME /var/opt/mssql
9 |
10 | EXPOSE 1433
11 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/RemoteDebuggingSuccess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/RemoteDebuggingSuccess.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPDebug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPDebug.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/RemoteTestDebuggingSuccess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/RemoteTestDebuggingSuccess.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/RemoteWebDebuggingSuccess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/RemoteWebDebuggingSuccess.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPPHPUnit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPPHPUnit.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPServers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPServers.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/SimpleHostsEditor/AddHost_laravel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/SimpleHostsEditor/AddHost_laravel.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPInterpreters.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/LangsPHPInterpreters.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/WindowsHyperVManager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/WindowsHyperVManager.png
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/progress-bar.less:
--------------------------------------------------------------------------------
1 | // Progress bars
2 |
3 | .progress-bar-variant(@color) {
4 | background-color: @color;
5 |
6 | // Deprecated parent class requirement as of v3.2.0
7 | .progress-striped & {
8 | #gradient > .striped();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/tests/seeder.suite.yml:
--------------------------------------------------------------------------------
1 | class_name: SeederTester
2 | modules:
3 | enabled:
4 | - \Helper\Seeder
5 | - Asserts
6 | - Laravel5:
7 | environment_file: .env.testing
8 | run_database_seeder: true
9 | database_seeder_class: DatabaseSeeder
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/BuildDeploymentDebugger.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/BuildDeploymentDebugger.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/BuildDeploymentConnection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/BuildDeploymentConnection.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/WindowsFirewallAllowedApps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/WindowsFirewallAllowedApps.png
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/linux/configuration/debugConfiguration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/linux/configuration/debugConfiguration.png
--------------------------------------------------------------------------------
/laradock/jenkins/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "tests/test_helper/bats-support"]
2 | path = tests/test_helper/bats-support
3 | url = https://github.com/ztombol/bats-support
4 | [submodule "tests/test_helper/bats-assert"]
5 | path = tests/test_helper/bats-assert
6 | url = https://github.com/ztombol/bats-assert
7 |
--------------------------------------------------------------------------------
/laradock/php-worker/supervisord.conf:
--------------------------------------------------------------------------------
1 | [supervisord]
2 | nodaemon=true
3 | [supervisorctl]
4 | [inet_http_server]
5 | port = 127.0.0.1:9001
6 | [rpcinterface:supervisor]
7 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
8 |
9 | [include]
10 | files = supervisord.d/*.conf
--------------------------------------------------------------------------------
/laradock/php-worker/supervisord.d/laravel-worker.conf.example:
--------------------------------------------------------------------------------
1 | [program:laravel-worker]
2 | process_name=%(program_name)s_%(process_num)02d
3 | command=php /var/www/artisan queue:work --sleep=3 --tries=3 --daemon
4 | autostart=true
5 | autorestart=true
6 | numprocs=8
7 | user=laradock
8 | redirect_stderr=true
9 |
--------------------------------------------------------------------------------
/app/Test/ToLowercase.php:
--------------------------------------------------------------------------------
1 |
5 | Your message: {{ $message }}
6 |
7 |
8 |
12 | @stop
--------------------------------------------------------------------------------
/tests/functional/UploadedFilesCept.php:
--------------------------------------------------------------------------------
1 | wantTo('upload a file');
4 | $I->amOnPage(''); // Necessary to prevent LogicException with message "The page history is empty".
5 | $I->sendPOST('upload', [], ['file' => codecept_data_dir('logo.jpg')]);
6 | $I->see('Success');
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/EditRunConfigurationRemoteExampleTestDebug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CircleCI-Public/sample-php-laravel/HEAD/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/photos/PHPStorm/Settings/EditRunConfigurationRemoteExampleTestDebug.png
--------------------------------------------------------------------------------
/laradock/certbot/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM phusion/baseimage:latest
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | COPY run-certbot.sh /root/certbot/run-certbot.sh
6 |
7 | RUN apt-get update
8 | RUN apt-get install -y letsencrypt
9 |
10 | ENTRYPOINT bash -c "bash /root/certbot/run-certbot.sh && sleep infinity"
11 |
--------------------------------------------------------------------------------
/laradock/percona/my.cnf:
--------------------------------------------------------------------------------
1 | # The MySQL Client configuration file.
2 | #
3 | # For explanations see
4 | # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
5 |
6 | [mysql]
7 |
8 | [mysqld]
9 | sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
10 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/nav-divider.less:
--------------------------------------------------------------------------------
1 | // Horizontal dividers
2 | //
3 | // Dividers (basically an hr) within dropdowns and nav lists
4 |
5 | .nav-divider(@color: #e5e5e5) {
6 | height: 1px;
7 | margin: ((@line-height-computed / 2) - 1) 0;
8 | overflow: hidden;
9 | background-color: @color;
10 | }
11 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/reset-filter.less:
--------------------------------------------------------------------------------
1 | // Reset filters for IE
2 | //
3 | // When you need to remove a gradient background, do not forget to use this to reset
4 | // the IE filter for IE9 and below.
5 |
6 | .reset-filter() {
7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
8 | }
9 |
--------------------------------------------------------------------------------
/app/Validation/CustomValidator.php:
--------------------------------------------------------------------------------
1 | assertCount(1, User::all());
10 | }
11 |
12 | public function secondTest(SeederTester $I)
13 | {
14 | $I->assertCount(1, User::all());
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 | #ffffff
--------------------------------------------------------------------------------
/laradock/laravel-echo-server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel-echo-server-docker",
3 | "description": "Docker container for running laravel-echo-server",
4 | "version": "0.0.1",
5 | "license": "MIT",
6 | "dependencies": {
7 | "laravel-echo-server": "^1.5.0"
8 | },
9 | "scripts": {
10 | "start": "laravel-echo-server start"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/alerts.less:
--------------------------------------------------------------------------------
1 | // Alerts
2 |
3 | .alert-variant(@background; @border; @text-color) {
4 | background-color: @background;
5 | border-color: @border;
6 | color: @text-color;
7 |
8 | hr {
9 | border-top-color: darken(@border, 5%);
10 | }
11 | .alert-link {
12 | color: darken(@text-color, 10%);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/laradock/php-fpm/opcache.ini:
--------------------------------------------------------------------------------
1 | ; NOTE: The actual opcache.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini)
2 |
3 | opcache.enable=1
4 | opcache.memory_consumption=256
5 | opcache.use_cwd=0
6 | opcache.max_file_size=0
7 | opcache.max_accelerated_files=30000
8 | opcache.validate_timestamps=1
9 | opcache.revalidate_freq=0
10 |
--------------------------------------------------------------------------------
/tests/functional/SpecialCharactersCept.php:
--------------------------------------------------------------------------------
1 | wantTo('test for text that uses special characters');
4 |
5 | $I->amOnPage('/special-characters');
6 |
7 | $I->see('Straße', 'p.character');
8 | $I->see('Straße', 'p.html-encoded');
9 |
10 | $I->click('Straße', 'a.character');
11 | $I->click('Straße', 'a.html-encoded');
12 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 | call('UserTableSeeder');
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/laradock/mysql/my.cnf:
--------------------------------------------------------------------------------
1 | # The MySQL Client configuration file.
2 | #
3 | # For explanations see
4 | # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
5 |
6 | [mysql]
7 |
8 | [mysqld]
9 | sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
10 | character-set-server=utf8
11 | default-authentication-plugin=mysql_native_password
12 |
--------------------------------------------------------------------------------
/tests/functional/FormCept.php:
--------------------------------------------------------------------------------
1 | wantTo('submit a form');
4 | $I->amOnPage('/form');
5 | $I->fillField('message', 'My message!');
6 | $I->click('Submit');
7 |
8 | $I->see('Your message: My message!');
9 |
10 | $I->fillField('message', 'Another message!');
11 | $I->click('Submit');
12 |
13 | $I->see('Your message: Another message!');
14 |
--------------------------------------------------------------------------------
/app/Listeners/TestEventListener.php:
--------------------------------------------------------------------------------
1 | 'johndoe@example.com', 'password' => bcrypt('password')]);
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/laradock/.devcontainer/devcontainer.example.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Laradock",
3 | "dockerComposeFile": "../docker-compose.yml",
4 | "remoteUser": "laradock",
5 | "runServices": [
6 | "nginx",
7 | "postgres",
8 | "pgadmin"
9 | ],
10 | "service": "workspace",
11 | "workspaceFolder": "/var/www",
12 | "shutdownAction": "stopCompose",
13 | "postCreateCommand": "uname -a"
14 | }
15 |
--------------------------------------------------------------------------------
/laradock/jenkins/init.groovy:
--------------------------------------------------------------------------------
1 | import hudson.model.*;
2 | import jenkins.model.*;
3 |
4 |
5 | Thread.start {
6 | sleep 10000
7 | println "--> setting agent port for jnlp"
8 | def env = System.getenv()
9 | int port = env['JENKINS_SLAVE_AGENT_PORT'].toInteger()
10 | Jenkins.instance.setSlaveAgentPort(port)
11 | println "--> setting agent port for jnlp... done"
12 | }
13 |
--------------------------------------------------------------------------------
/database/seeds/UserTableSeeder.php:
--------------------------------------------------------------------------------
1 | 'johndoe@example.com', 'password' => bcrypt('password')]);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/laradock/jupyterhub/start-notebook.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Copyright (c) Jupyter Development Team.
3 | # Distributed under the terms of the Modified BSD License.
4 |
5 | set -e
6 |
7 | if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
8 | # launched by JupyterHub, use single-user entrypoint
9 | exec /usr/local/bin/start-singleuser.sh $*
10 | else
11 | . /usr/local/bin/start.sh jupyter notebook $*
12 | fi
13 |
--------------------------------------------------------------------------------
/laradock/nginx/logrotate/nginx:
--------------------------------------------------------------------------------
1 | /var/log/nginx/*.log {
2 | daily
3 | missingok
4 | rotate 32
5 | compress
6 | delaycompress
7 | nodateext
8 | notifempty
9 | create 644 www-data root
10 | sharedscripts
11 | postrotate
12 | [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
13 | endscript
14 | }
15 |
--------------------------------------------------------------------------------
/resources/views/home.blade.php:
--------------------------------------------------------------------------------
1 | @extends('app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
8 |
Home
9 |
10 |
11 | You are logged in!
12 |
13 |
14 |
15 |
16 |
17 | @endsection
18 |
--------------------------------------------------------------------------------
/after.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | cd code
6 |
7 | sudo -u vagrant -H bash -c "cp .env.testing .env; \
8 | composer install -n --prefer-dist; \
9 | if [ ! -f ~/.key_generated ]; then php artisan key:generate; touch ~/.key_generated; fi; \
10 | touch storage/database.sqlite; \
11 | touch storage/testing.sqlite; \
12 | php artisan migrate; \
13 | php artisan migrate --database=sqlite_testing;"
14 |
--------------------------------------------------------------------------------
/laradock/apache2/sites/default.apache.conf:
--------------------------------------------------------------------------------
1 |
2 | ServerName laradock.test
3 | DocumentRoot /var/www/
4 | Options Indexes FollowSymLinks
5 |
6 |
7 | AllowOverride All
8 |
9 | Allow from all
10 |
11 | = 2.4>
12 | Require all granted
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/functional/ArtisanCest.php:
--------------------------------------------------------------------------------
1 | callArtisan('create-user', ['email' => 'test@example.com', 'password' => 'password']);
9 | //
10 | // $I->seeRecord('users', ['email' => 'test@example.com']);
11 | // $I->assertEquals('User created!', $output);
12 | // }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/public/.htaccess:
--------------------------------------------------------------------------------
1 |
2 |
3 | Options -MultiViews
4 |
5 |
6 | RewriteEngine On
7 |
8 | # Redirect Trailing Slashes...
9 | RewriteRule ^(.*)/$ /$1 [L,R=301]
10 |
11 | # Handle Front Controller...
12 | RewriteCond %{REQUEST_FILENAME} !-d
13 | RewriteCond %{REQUEST_FILENAME} !-f
14 | RewriteRule ^ index.php [L]
15 |
16 |
--------------------------------------------------------------------------------
/laradock/ipython/ipcontroller-engine.json:
--------------------------------------------------------------------------------
1 | {
2 | "key": "868074dd-060311910ab3d6991611bccf",
3 | "signature_scheme": "hmac-sha256",
4 | "unpack": "json",
5 | "pack": "json",
6 | "ssh": "",
7 | "interface": "tcp://*",
8 | "location": "laradock-ipython",
9 | "iopub": 33327,
10 | "hb_ping": 33328,
11 | "hb_pong": 33329,
12 | "control": 33330,
13 | "mux": 33331,
14 | "task": 33332,
15 | "registration": 33333
16 | }
--------------------------------------------------------------------------------
/laradock/laravel-echo-server/laravel-echo-server.json:
--------------------------------------------------------------------------------
1 | {
2 | "authHost": "localhost",
3 | "authEndpoint": "/broadcasting/auth",
4 | "clients": [],
5 | "database": "redis",
6 | "databaseConfig": {
7 | "redis": {
8 | "port": "6379",
9 | "host": "redis"
10 | }
11 | },
12 | "devMode": true,
13 | "host": null,
14 | "port": "6001",
15 | "protocol": "http",
16 | "socketio": {},
17 | "sslCertPath": "",
18 | "sslKeyPath": ""
19 | }
--------------------------------------------------------------------------------
/laradock/redis/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM redis:latest
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | ## For security settings uncomment, make the dir, copy conf, and also start with the conf, to use it
6 | #RUN mkdir -p /usr/local/etc/redis
7 | #COPY redis.conf /usr/local/etc/redis/redis.conf
8 |
9 | VOLUME /data
10 |
11 | EXPOSE 6379
12 |
13 | #CMD ["redis-server", "/usr/local/etc/redis/redis.conf"]
14 | CMD ["redis-server"]
15 |
--------------------------------------------------------------------------------
/laradock/apache2/sites/sample.conf.example:
--------------------------------------------------------------------------------
1 |
2 | ServerName sample.test
3 | DocumentRoot /var/www/sample/public/
4 | Options Indexes FollowSymLinks
5 |
6 |
7 | AllowOverride All
8 |
9 | Allow from all
10 |
11 | = 2.4>
12 | Require all granted
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/laradock/ipython/ipcontroller-client.json:
--------------------------------------------------------------------------------
1 | {
2 | "key": "868074dd-060311910ab3d6991611bccf",
3 | "signature_scheme": "hmac-sha256",
4 | "unpack": "json",
5 | "pack": "json",
6 | "ssh": "",
7 | "task_scheme": "leastload",
8 | "interface": "tcp://*",
9 | "location": "laradock-ipython",
10 | "notification": 33338,
11 | "iopub": 33337,
12 | "control": 33336,
13 | "mux": 33335,
14 | "task": 33334,
15 | "registration": 33333
16 | }
--------------------------------------------------------------------------------
/laradock/jenkins/docker-compose.yml:
--------------------------------------------------------------------------------
1 | master:
2 | build: .
3 | environment:
4 | JAVA_OPTS: "-Djava.awt.headless=true"
5 | ports:
6 | - "50000:50000"
7 | # Expose Jenkins to parent on port 8090
8 | - "8090:8080"
9 | # Allow Docker In Docker
10 | privileged: true
11 | volumes:
12 | - ./jenkins_home:/var/jenkins_home
13 | # Allow Docker In Docker to use parent docker container
14 | - /var/run/docker.sock:/var/run/docker.sock
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/nav-vertical-align.less:
--------------------------------------------------------------------------------
1 | // Navbar vertical align
2 | //
3 | // Vertically center elements in the navbar.
4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
5 |
6 | .navbar-vertical-align(@element-height) {
7 | margin-top: ((@navbar-height - @element-height) / 2);
8 | margin-bottom: ((@navbar-height - @element-height) / 2);
9 | }
10 |
--------------------------------------------------------------------------------
/resources/views/special-characters.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 | Straße
5 | Straße
6 | Straße
7 | Straße
8 |
9 |
13 | @stop
14 |
--------------------------------------------------------------------------------
/tests/functional/HelpersCest.php:
--------------------------------------------------------------------------------
1 | assertEquals('http://myapp.com/posts', route('posts.index'));
9 | }
10 |
11 | public function routeAfterRequest(FunctionalTester $I)
12 | {
13 | $I->amOnRoute('posts.index');
14 | $I->assertEquals('http://myapp.com/posts', route('posts.index'));
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/responsive-visibility.less:
--------------------------------------------------------------------------------
1 | // Responsive utilities
2 |
3 | //
4 | // More easily include all the states for responsive-utilities.less.
5 | .responsive-visibility() {
6 | display: block !important;
7 | table& { display: table; }
8 | tr& { display: table-row !important; }
9 | th&,
10 | td& { display: table-cell !important; }
11 | }
12 |
13 | .responsive-invisibility() {
14 | display: none !important;
15 | }
16 |
--------------------------------------------------------------------------------
/laradock/aws-eb-cli/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:slim
2 |
3 | LABEL maintainer="melchabcede@gmail.com"
4 |
5 | RUN pip install --upgrade --no-cache-dir awsebcli
6 | RUN apt-get -yqq update && apt-get -yqq install git-all
7 |
8 | #NOTE: make sure ssh keys are added to ssh_keys folder
9 |
10 | RUN mkdir root/tmp_ssh
11 | COPY /ssh_keys/. /root/.ssh/
12 | RUN cd /root/.ssh && chmod 600 * && chmod 644 *.pub
13 |
14 | # Set default work directory
15 | WORKDIR /var/www
16 |
17 |
18 |
--------------------------------------------------------------------------------
/resources/views/hello.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 | Hello world!
5 |
6 | @if (count($errors) > 0)
7 |
8 |
9 | @foreach ($errors->all() as $error)
10 | - {{ $error }}
11 | @endforeach
12 |
13 |
14 |
15 | {{var_dump(\App\Post::all()->toArray())}}
16 |
17 | @endif
18 |
19 | @stop
20 |
--------------------------------------------------------------------------------
/tests/functional/RegisterCept.php:
--------------------------------------------------------------------------------
1 | wantTo('register a user');
4 |
5 | $I->amOnPage('/register');
6 | $I->fillField('name', 'John Doe');
7 | $I->fillField('email', 'example@example.com');
8 | $I->fillField('password', 'password');
9 | $I->fillField('password_confirmation', 'password');
10 | $I->click('button[type=submit]');
11 |
12 | $I->amOnPage('/');
13 | $I->seeRecord('users', ['email' => 'example@example.com']);
14 | $I->seeAuthentication();
15 |
--------------------------------------------------------------------------------
/laradock/laravel-echo-server/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node:alpine
2 |
3 | # Create app directory
4 | RUN mkdir -p /usr/src/app
5 | WORKDIR /usr/src/app
6 |
7 | # Install app dependencies
8 | COPY package.json /usr/src/app/
9 |
10 | RUN apk add --update \
11 | python \
12 | python-dev \
13 | py-pip \
14 | build-base
15 |
16 | RUN npm install
17 |
18 | # Bundle app source
19 | COPY laravel-echo-server.json /usr/src/app/laravel-echo-server.json
20 |
21 | EXPOSE 3000
22 | CMD [ "npm", "start", "--force" ]
23 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/layouts/partials/nav_link.html:
--------------------------------------------------------------------------------
1 | {{ $currentMenuEntry := .Scratch.Get "currentMenuEntry" }}
2 | {{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }}
3 |
4 |
5 |
6 | {{ $currentMenuEntry.Pre }}
7 | {{ $currentMenuEntry.Name }}
8 |
9 |
10 | {{ if $isCurrent }}
11 |
13 | {{ end }}
14 |
--------------------------------------------------------------------------------
/laradock/ide-icecoder/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM php:alpine
2 |
3 | LABEL maintainer="ahkui "
4 |
5 | ARG PUID=1000
6 | ENV PUID ${PUID}
7 | ARG PGID=1000
8 | ENV PGID ${PGID}
9 |
10 | RUN apk add --no-cache git
11 |
12 | RUN addgroup -g $PGID -S laradock && \
13 | adduser -u $PUID -S laradock -G laradock
14 |
15 | USER laradock
16 |
17 | RUN cd /home/laradock && git clone https://github.com/mattpass/ICEcoder.git
18 |
19 | WORKDIR /home/laradock/ICEcoder
20 |
21 | CMD ["php","-S","0.0.0.0:8080"]
22 |
--------------------------------------------------------------------------------
/laradock/php-fpm/laravel.ini:
--------------------------------------------------------------------------------
1 | date.timezone=UTC
2 | display_errors=Off
3 | log_errors=On
4 |
5 | ; Maximum amount of memory a script may consume (128MB)
6 | ; http://php.net/memory-limit
7 | memory_limit = 256M
8 | ; Maximum allowed size for uploaded files.
9 | ; http://php.net/upload-max-filesize
10 | upload_max_filesize = 20M
11 | ; Sets max size of post data allowed.
12 | ; http://php.net/post-max-size
13 | post_max_size = 20M
14 | max_execution_time=600
15 | default_socket_timeout=3600
16 | request_terminate_timeout=600
17 |
--------------------------------------------------------------------------------
/app/Test/Repeat.php:
--------------------------------------------------------------------------------
1 | times = $times;
16 | }
17 |
18 | /**
19 | * @param $string
20 | * @return string
21 | */
22 | public function convert($string)
23 | {
24 | return str_repeat($string, $this->times);
25 | }
26 | }
--------------------------------------------------------------------------------
/laradock/nginx/startup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ ! -f /etc/nginx/ssl/default.crt ]; then
4 | openssl genrsa -out "/etc/nginx/ssl/default.key" 2048
5 | openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK"
6 | openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt"
7 | fi
8 |
9 | # Start crond in background
10 | crond -l 2 -b
11 |
12 | # Start nginx in foreground
13 | nginx
14 |
--------------------------------------------------------------------------------
/laradock/jenkins/jenkins_home/.gitignore:
--------------------------------------------------------------------------------
1 | # File Patterns to Ignore
2 | logs
3 | *.log
4 | *.log.*
5 | *.swp
6 |
7 | # Ignore SSH Config
8 | .ssh/*
9 | !.ssh/known_hosts
10 |
11 | # Include job configs and ignore other data
12 | !config.xml
13 | builds
14 | lastStable
15 | lastSuccessful
16 | nextBuildNumber
17 |
18 | # Ignore expanded plugins folders because we only want jpi files
19 | plugins/*
20 | !plugins/*.jpi
21 |
22 | # Include user info
23 | !userContent/*
24 | !users/*
25 |
26 | # Ignore Directories
27 | workspace/
28 | war/
29 |
--------------------------------------------------------------------------------
/laradock/rethinkdb/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM rethinkdb:latest
2 |
3 | LABEL maintainer="Cristian Mello "
4 |
5 | VOLUME /data/rethinkdb_data
6 |
7 | #Necessary for the backup rethinkdb
8 | RUN apt-get -y update \
9 | && apt-get -y upgrade \
10 | && apt-get -y install python-pip \
11 | && pip install rethinkdb \
12 | && rm -rf /var/lib/apt/lists/*
13 |
14 | RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
15 |
16 | CMD ["rethinkdb", "--bind", "all"]
17 |
18 | EXPOSE 8080
19 |
--------------------------------------------------------------------------------
/laradock/mysql/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG MYSQL_VERSION
2 | FROM mysql:${MYSQL_VERSION}
3 |
4 | LABEL maintainer="Mahmoud Zalt "
5 |
6 | #####################################
7 | # Set Timezone
8 | #####################################
9 |
10 | ARG TZ=UTC
11 | ENV TZ ${TZ}
12 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/
13 |
14 | COPY my.cnf /etc/mysql/conf.d/my.cnf
15 |
16 | RUN chmod 0444 /etc/mysql/conf.d/my.cnf
17 |
18 | CMD ["mysqld"]
19 |
20 | EXPOSE 3306
21 |
--------------------------------------------------------------------------------
/laradock/mariadb/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG MARIADB_VERSION=latest
2 | FROM mariadb:${MARIADB_VERSION}
3 |
4 | LABEL maintainer="Mahmoud Zalt "
5 |
6 | #####################################
7 | # Set Timezone
8 | #####################################
9 |
10 | ARG TZ=UTC
11 | ENV TZ ${TZ}
12 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/
13 | COPY my.cnf /etc/mysql/conf.d/my.cnf
14 |
15 | RUN chmod -R 644 /etc/mysql/conf.d/my.cnf
16 |
17 | CMD ["mysqld"]
18 |
19 | EXPOSE 3306
20 |
--------------------------------------------------------------------------------
/tests/functional/SessionCest.php:
--------------------------------------------------------------------------------
1 | amOnPage('/session/My%20Message');
8 | $I->seeInSession('message');
9 | $I->seeInSession('message', 'My Message');
10 | }
11 |
12 | public function seeSessionHasValues(FunctionalTester $I)
13 | {
14 | $I->amOnPage('/session/My%20Message');
15 | $I->seeSessionHasValues(['message']);
16 | $I->seeSessionHasValues(['message' => 'My Message']);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/laradock/logstash/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG ELK_VERSION=7.5.1
2 | FROM docker.elastic.co/logstash/logstash:${ELK_VERSION}
3 |
4 | USER root
5 | RUN rm -f /usr/share/logstash/pipeline/logstash.conf
6 | RUN curl -L -o /usr/share/logstash/lib/mysql-connector-java-5.1.47.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar
7 | ADD ./pipeline/ /usr/share/logstash/pipeline/
8 | ADD ./config/ /usr/share/logstash/config/
9 |
10 | RUN logstash-plugin install logstash-input-jdbc
11 | RUN logstash-plugin install logstash-input-beats
12 |
13 |
--------------------------------------------------------------------------------
/laradock/phpmyadmin/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM phpmyadmin/phpmyadmin
2 |
3 | LABEL maintainer="Bo-Yi Wu "
4 |
5 | # Add volume for sessions to allow session persistence
6 | VOLUME /sessions
7 |
8 | RUN echo '' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \
9 | && echo '[PHP]' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \
10 | && echo 'post_max_size = 2G' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \
11 | && echo 'upload_max_filesize = 2G' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini
12 |
13 | # We expose phpMyAdmin on port 80
14 | EXPOSE 80
15 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | var elixir = require('laravel-elixir');
2 |
3 | /*
4 | |--------------------------------------------------------------------------
5 | | Elixir Asset Management
6 | |--------------------------------------------------------------------------
7 | |
8 | | Elixir provides a clean, fluent API for defining some basic Gulp tasks
9 | | for your Laravel application. By default, we are compiling the Less
10 | | file for our application, as well as publishing vendor resources.
11 | |
12 | */
13 |
14 | elixir(function(mix) {
15 | mix.less('app.less');
16 | });
17 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/layouts/partials/nav.html:
--------------------------------------------------------------------------------
1 | {{ $currentNode := . }}
2 |
3 | {{ range .Site.Menus.main.ByWeight }}
4 |
5 | {{ $.Scratch.Set "currentMenuEntry" . }}
6 |
7 | {{ if .HasChildren }}
8 | {{ .Name | title }}
9 |
10 | {{ range .Children }}
11 | {{ $.Scratch.Set "currentMenuEntry" . }}
12 | {{ partial "nav_link" $currentNode }}
13 | {{ end }}
14 |
15 | {{ else }}
16 | {{ partial "nav_link" $currentNode }}
17 | {{ end }}
18 |
19 | {{ end }}
20 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/pagination.less:
--------------------------------------------------------------------------------
1 | // Pagination
2 |
3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @border-radius) {
4 | > li {
5 | > a,
6 | > span {
7 | padding: @padding-vertical @padding-horizontal;
8 | font-size: @font-size;
9 | }
10 | &:first-child {
11 | > a,
12 | > span {
13 | .border-left-radius(@border-radius);
14 | }
15 | }
16 | &:last-child {
17 | > a,
18 | > span {
19 | .border-right-radius(@border-radius);
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/laradock/varnish/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM varnish:6.3
2 |
3 | # Set Environment Variables
4 | ENV DEBIAN_FRONTEND noninteractive
5 |
6 | # Setting Configurations
7 | ENV VARNISH_CONFIG /etc/varnish/default.vcl
8 | ENV CACHE_SIZE 128m
9 | ENV VARNISHD_PARAMS -p default_ttl=3600 -p default_grace=3600
10 | ENV VARNISH_PORT 6081
11 | ENV BACKEND_HOST localhost
12 | ENV BACKEND_PORT 80
13 |
14 | COPY default.vcl /etc/varnish/default.vcl
15 | COPY start.sh /etc/varnish/start.sh
16 |
17 | RUN chmod +x /etc/varnish/start.sh
18 |
19 | CMD ["/etc/varnish/start.sh"]
20 |
21 | EXPOSE 8080
22 |
--------------------------------------------------------------------------------
/tests/functional/ApplicationHandlerCept.php:
--------------------------------------------------------------------------------
1 | haveApplicationHandler(function($app) {
5 | $app->make('config')->set(['test_value' => 10]);
6 | });
7 | $I->sendGET('/test-value');
8 | $I->see('Test value is 10');
9 |
10 | $I->haveApplicationHandler(function($app) {
11 | $app->make('config')->set(['test_value' => 15]);
12 | });
13 | $I->sendGET('/test-value');
14 | $I->see('Test value is 15');
15 |
16 | $I->clearApplicationHandlers();
17 | $I->sendGET('/test-value');
18 | $I->see('Test value is 5'); // 5 is the default value
19 |
--------------------------------------------------------------------------------
/tests/unit/UserTest.php:
--------------------------------------------------------------------------------
1 | $email, 'password' => $password]);
20 |
21 | $this->tester->seeRecord('users', ['email' => $email, 'password' => $password]);
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/laradock/ipython/Dockerfile.controller:
--------------------------------------------------------------------------------
1 | FROM python:3-alpine
2 |
3 | LABEL maintainer="ahkui "
4 |
5 | USER root
6 |
7 | RUN apk add --no-cache build-base zeromq-dev
8 |
9 | RUN python -m pip --quiet --no-cache-dir install \
10 | ipyparallel
11 |
12 | RUN ipython profile create --parallel --profile=default
13 |
14 | COPY ipcontroller-client.json /root/.ipython/profile_default/security/ipcontroller-client.json
15 | COPY ipcontroller-engine.json /root/.ipython/profile_default/security/ipcontroller-engine.json
16 |
17 | CMD ["sh","-c","ipcontroller --ip=* --reuse"]
18 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/border-radius.less:
--------------------------------------------------------------------------------
1 | // Single side border-radius
2 |
3 | .border-top-radius(@radius) {
4 | border-top-right-radius: @radius;
5 | border-top-left-radius: @radius;
6 | }
7 | .border-right-radius(@radius) {
8 | border-bottom-right-radius: @radius;
9 | border-top-right-radius: @radius;
10 | }
11 | .border-bottom-radius(@radius) {
12 | border-bottom-right-radius: @radius;
13 | border-bottom-left-radius: @radius;
14 | }
15 | .border-left-radius(@radius) {
16 | border-bottom-left-radius: @radius;
17 | border-top-left-radius: @radius;
18 | }
19 |
--------------------------------------------------------------------------------
/tests/functional/LoginCept.php:
--------------------------------------------------------------------------------
1 | wantTo('login as a user');
4 |
5 | $I->haveRecord('users', [
6 | 'email' => 'john@doe.com',
7 | 'password' => bcrypt('password'),
8 | 'created_at' => new DateTime(),
9 | 'updated_at' => new DateTime(),
10 | ]);
11 |
12 | $I->amOnPage('/login');
13 | $I->fillField('email', 'john@doe.com');
14 | $I->fillField('password', 'password');
15 | $I->click('button[type=submit]');
16 |
17 | $I->seeCurrentUrlEquals('');
18 | $I->amOnPage('/posts');
19 | $I->seeAuthentication();
20 | $I->see('Logged in as john@doe.com');
--------------------------------------------------------------------------------
/laradock/docker-sync.yml:
--------------------------------------------------------------------------------
1 | version: "2"
2 |
3 | options:
4 | verbose: false
5 | syncs:
6 | applications-docker-sync: # name of the intermediary sync volume
7 | compose-dev-file-path: 'docker-compose.sync.yml' # docker-compose override file
8 |
9 | src: '${APP_CODE_PATH_HOST}' # host source directory
10 | sync_userid: 1000 # giving permissions to www-data user (as defined in nginx and php-fpm Dockerfiles)
11 | sync_strategy: '${DOCKER_SYNC_STRATEGY}' # for osx use 'native_osx', for windows use 'unison'
12 |
13 | sync_excludes: ['laradock', 'ignored_folder_example'] # ignored directories
14 |
--------------------------------------------------------------------------------
/resources/lang/en/pagination.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 | 'next' => 'Next »',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/app/Http/Requests/PostStoreRequest.php:
--------------------------------------------------------------------------------
1 | 'required',
16 | 'body' => 'required'
17 | ];
18 | }
19 |
20 | /**
21 | * Determine if the user is authorized to make this request.
22 | *
23 | * @return bool
24 | */
25 | public function authorize()
26 | {
27 | return true;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/laradock/beanstalkd-console/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM php:latest
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | RUN apt-get update && apt-get install -y curl
6 |
7 | RUN curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp
8 | RUN mv /tmp/beanstalk_console-master /source
9 |
10 | RUN apt-get remove --purge -y curl && \
11 | apt-get autoclean && \
12 | apt-get clean && \
13 | rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
14 |
15 | EXPOSE 2080
16 |
17 | CMD bash -c 'BEANSTALK_SERVERS=$BEANSTALKD_PORT_11300_TCP_ADDR:11300 php -S 0.0.0.0:2080 -t /source/public'
18 |
--------------------------------------------------------------------------------
/app/Http/Requests/PostUpdateRequest.php:
--------------------------------------------------------------------------------
1 | 'required',
16 | 'body' => 'required'
17 | ];
18 | }
19 |
20 | /**
21 | * Determine if the user is authorized to make this request.
22 | *
23 | * @return bool
24 | */
25 | public function authorize()
26 | {
27 | return true;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/app/Jobs/Job.php:
--------------------------------------------------------------------------------
1 | Show User
6 |
7 |
8 |
9 |
10 | | ID |
11 | Email |
12 | Actions |
13 |
14 |
15 |
16 |
17 |
18 | | {{ $user->id }} |
19 | {{ $user->email }} |
20 | Edit |
21 |
22 |
23 |
24 |
25 | @stop
--------------------------------------------------------------------------------
/app/Providers/ConfigServiceProvider.php:
--------------------------------------------------------------------------------
1 | 5,
20 | ]);
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/server.php:
--------------------------------------------------------------------------------
1 |
7 | */
8 |
9 | $uri = urldecode(
10 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
11 | );
12 |
13 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the
14 | // built-in PHP web server. This provides a convenient way to test a Laravel
15 | // application without having installed a "real" web server software here.
16 | if ($uri !== '/' and file_exists(__DIR__.'/public'.$uri))
17 | {
18 | return false;
19 | }
20 |
21 | require_once __DIR__.'/public/index.php';
22 |
--------------------------------------------------------------------------------
/laradock/apache2/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM webdevops/apache:ubuntu-18.04
2 |
3 | LABEL maintainer="Eric Pfeiffer "
4 |
5 | ARG PHP_UPSTREAM_CONTAINER=php-fpm
6 | ARG PHP_UPSTREAM_PORT=9000
7 | ARG PHP_UPSTREAM_TIMEOUT=60
8 | ARG DOCUMENT_ROOT=/var/www/
9 |
10 | ENV WEB_PHP_SOCKET=${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}
11 |
12 | ENV WEB_DOCUMENT_ROOT=${DOCUMENT_ROOT}
13 |
14 | ENV WEB_PHP_TIMEOUT=${PHP_UPSTREAM_TIMEOUT}
15 |
16 | EXPOSE 80 443
17 |
18 | WORKDIR /var/www/
19 |
20 | COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
21 |
22 | ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
23 |
24 | CMD ["supervisord"]
25 |
--------------------------------------------------------------------------------
/tests/functional/EditProfileCept.php:
--------------------------------------------------------------------------------
1 | wantTo('edit a profile');
6 |
7 | $user = User::create(['email' => 'johndoe@example.com', 'password' => bcrypt('password')]);
8 | $I->amOnPage('/login');
9 | $I->fillField('email', 'johndoe@example.com');
10 | $I->fillField('password', 'password');
11 | $I->click('button[type=submit]');
12 |
13 | $I->amOnPage('/users/1');
14 | $I->see('Logged in as johndoe@example.com');
15 |
16 | $I->click('Edit');
17 | $I->fillField('Email', 'john@doe.com');
18 | $I->click('Update');
19 |
20 | $I->seeCurrentUrlEquals('/users/1');
21 | $I->see('Logged in as john@doe.com');
22 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/panels.less:
--------------------------------------------------------------------------------
1 | // Panels
2 |
3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
4 | border-color: @border;
5 |
6 | & > .panel-heading {
7 | color: @heading-text-color;
8 | background-color: @heading-bg-color;
9 | border-color: @heading-border;
10 |
11 | + .panel-collapse > .panel-body {
12 | border-top-color: @border;
13 | }
14 | .badge {
15 | color: @heading-bg-color;
16 | background-color: @heading-text-color;
17 | }
18 | }
19 | & > .panel-footer {
20 | + .panel-collapse > .panel-body {
21 | border-bottom-color: @border;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/wells.less:
--------------------------------------------------------------------------------
1 | //
2 | // Wells
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .well {
8 | min-height: 20px;
9 | padding: 19px;
10 | margin-bottom: 20px;
11 | background-color: @well-bg;
12 | border: 1px solid @well-border;
13 | border-radius: @border-radius-base;
14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
15 | blockquote {
16 | border-color: #ddd;
17 | border-color: rgba(0,0,0,.15);
18 | }
19 | }
20 |
21 | // Sizes
22 | .well-lg {
23 | padding: 24px;
24 | border-radius: @border-radius-large;
25 | }
26 | .well-sm {
27 | padding: 9px;
28 | border-radius: @border-radius-small;
29 | }
30 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/static/custom-style.css:
--------------------------------------------------------------------------------
1 | /* Custom CSS */
2 |
3 | .article a {
4 | border-bottom: none;
5 | }
6 | .project .logo {
7 | width: 200px;
8 | padding-right: 0;
9 | }
10 | .project .banner {
11 | height: 70px;
12 | padding: 25px;
13 | }
14 | .palette-primary-deep-purple .article h1{
15 | color: #7e57c2;
16 | font-size: 35px;
17 | }
18 | .palette-primary-deep-purple .article h2{
19 |
20 | color: #ce2046;
21 | font-size: 25px;
22 | }
23 | .palette-primary-deep-purple .article h3{
24 | color: #851d54;
25 | font-size: 18px;
26 | }
27 | .palette-primary-deep-purple .article code{
28 | color: #851d54;
29 | background: #eeeeeea8;
30 | }
31 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/list-group.less:
--------------------------------------------------------------------------------
1 | // List Groups
2 |
3 | .list-group-item-variant(@state; @background; @color) {
4 | .list-group-item-@{state} {
5 | color: @color;
6 | background-color: @background;
7 |
8 | a& {
9 | color: @color;
10 |
11 | .list-group-item-heading {
12 | color: inherit;
13 | }
14 |
15 | &:hover,
16 | &:focus {
17 | color: @color;
18 | background-color: darken(@background, 5%);
19 | }
20 | &.active,
21 | &.active:hover,
22 | &.active:focus {
23 | color: #fff;
24 | background-color: @color;
25 | border-color: @color;
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/tests/functional/CustomValidationCest.php:
--------------------------------------------------------------------------------
1 | amOnPage('');
8 | $I->haveRecord('posts', [
9 | 'title' => 'Hello Universe',
10 | 'body' => 'You are so awesome',
11 | 'created_at' => new DateTime(),
12 | 'updated_at' => new DateTime()
13 | ]);
14 | }
15 |
16 | public function testCustomValidationError(FunctionalTester $I)
17 | {
18 | $I->amOnPage('/validation?postal_code=invalid&post_id=123456');
19 | $I->seeFormErrorMessage('postal_code');
20 | $I->seeFormErrorMessage('post_id');
21 | }
22 | }
--------------------------------------------------------------------------------
/laradock/hhvm/server.ini:
--------------------------------------------------------------------------------
1 | ; php options
2 |
3 | pid = /var/run/hhvm/pid
4 |
5 | ; hhvm specific
6 | hhvm.server.port = 9000
7 | hhvm.server.type = fastcgi
8 | hhvm.server.default_document = index.php
9 | hhvm.server.error_document404 = index.php
10 | hhvm.server.upload.upload_max_file_size = 25M
11 | hhvm.log.level = Error
12 | hhvm.log.header = true
13 | hhvm.log.access[default][file] = /var/log/hhvm/access.log
14 | hhvm.log.access[default][format] = "%h %l %u %t \"%r\" %>s %b"
15 | hhvm.server.source_root=/var/www/public
16 | hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
17 |
18 | ; Uncomment to log to files instead of STDOUT
19 | ;hhvm.log.use_log_file = true
20 | ;hhvm.log.file = /var/log/hhvm/error.log
21 |
--------------------------------------------------------------------------------
/laradock/ipython/Dockerfile.engine:
--------------------------------------------------------------------------------
1 | FROM python:3.11-alpine
2 |
3 | LABEL maintainer="ahkui "
4 |
5 | USER root
6 |
7 | RUN apk add --no-cache build-base zeromq-dev
8 |
9 | RUN python -m pip --quiet --no-cache-dir install \
10 | ipyparallel \
11 | numpy \
12 | pandas \
13 | pymongo \
14 | redis \
15 | requests \
16 | bs4
17 |
18 | RUN ipython profile create --parallel --profile=default
19 |
20 | COPY ipcontroller-client.json /root/.ipython/profile_default/security/ipcontroller-client.json
21 | COPY ipcontroller-engine.json /root/.ipython/profile_default/security/ipcontroller-engine.json
22 |
23 | CMD ["sh","-c","ipcluster engines"]
24 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/hide-text.less:
--------------------------------------------------------------------------------
1 | // CSS image replacement
2 | //
3 | // Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
4 | // mixins being reused as classes with the same name, this doesn't hold up. As
5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
6 | //
7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
8 |
9 | // Deprecated as of v3.0.1 (will be removed in v4)
10 | .hide-text() {
11 | font: ~"0/0" a;
12 | color: transparent;
13 | text-shadow: none;
14 | background-color: transparent;
15 | border: 0;
16 | }
17 |
18 | // New mixin to use as of v3.0.1
19 | .text-hide() {
20 | .hide-text();
21 | }
22 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_25_122420_create_posts_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('title');
19 | $table->text('body');
20 | $table->timestamps();
21 | });
22 | }
23 |
24 | /**
25 | * Reverse the migrations.
26 | *
27 | * @return void
28 | */
29 | public function down()
30 | {
31 | Schema::drop('posts');
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/app/Http/Middleware/VerifyCsrfToken.php:
--------------------------------------------------------------------------------
1 | path()) !== false) {
19 | return $next($request);
20 | }
21 |
22 | return parent::handle($request, $next);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/tests/_support/UnitTester.php:
--------------------------------------------------------------------------------
1 | have(User::class, ['email' => 'johndoe@example.com']);
10 |
11 | $I->assertEquals('johndoe@example.com', $user->email);
12 | $I->seeRecord('users', ['email' => 'johndoe@example.com']);
13 | }
14 |
15 | public function testHaveWithName(FunctionalTester $I)
16 | {
17 | $I->have(User::class, [], 'admin');
18 | }
19 |
20 | public function testHaveMultiple(FunctionalTester $I)
21 | {
22 | $users = $I->haveMultiple(User::class, 3);
23 |
24 | $I->assertEquals(3, count($users));
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/breadcrumbs.less:
--------------------------------------------------------------------------------
1 | //
2 | // Breadcrumbs
3 | // --------------------------------------------------
4 |
5 |
6 | .breadcrumb {
7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
8 | margin-bottom: @line-height-computed;
9 | list-style: none;
10 | background-color: @breadcrumb-bg;
11 | border-radius: @border-radius-base;
12 |
13 | > li {
14 | display: inline-block;
15 |
16 | + li:before {
17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
18 | padding: 0 5px;
19 | color: @breadcrumb-color;
20 | }
21 | }
22 |
23 | > .active {
24 | color: @breadcrumb-active-color;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/Console/Kernel.php:
--------------------------------------------------------------------------------
1 | command('inspire')
27 | ->hourly();
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/theme.toml:
--------------------------------------------------------------------------------
1 | name = "Material Docs"
2 | license = "MIT"
3 | licenselink = "https://github.com/digitalcraftsman/hugo-material-docs/blob/master/LICENSE.md"
4 | description = "A material design theme for documentations."
5 | homepage = "https://github.com/digitalcraftsman/hugo-material-docs"
6 | tags = ["material", "documentation", "docs", "google analytics", "responsive"]
7 | features = ["", ""]
8 | min_version = 0.15
9 |
10 | [author]
11 | name = "Digitalcraftsman"
12 | homepage = "https://github.com/digitalcraftsman"
13 |
14 | # If porting an existing theme
15 | [original]
16 | name = "Martin Donath"
17 | homepage = "http://struct.cc/"
18 | repo = "https://github.com/squidfunk/mkdocs-material"
19 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_100000_create_password_resets_table.php:
--------------------------------------------------------------------------------
1 | string('email')->index();
18 | $table->string('token')->index();
19 | $table->timestamp('created_at');
20 | });
21 | }
22 |
23 | /**
24 | * Reverse the migrations.
25 | *
26 | * @return void
27 | */
28 | public function down()
29 | {
30 | Schema::drop('password_resets');
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/tests/_support/FunctionalTester.php:
--------------------------------------------------------------------------------
1 | increments('id');
18 | $table->string('email')->unique();
19 | $table->string('password', 60);
20 | $table->rememberToken();
21 | $table->timestamps();
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::drop('users');
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/app/Console/Commands/Inspire.php:
--------------------------------------------------------------------------------
1 | comment(PHP_EOL.Inspiring::quote().PHP_EOL);
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/laradock/workspace/mc/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "8",
3 | "hosts": {
4 | "gcs": {
5 | "url": "https://storage.googleapis.com",
6 | "accessKey": "YOUR-ACCESS-KEY-HERE",
7 | "secretKey": "YOUR-SECRET-KEY-HERE",
8 | "api": "S3v2"
9 | },
10 | "minio": {
11 | "url": "http://minio:9000",
12 | "accessKey": "access",
13 | "secretKey": "secretkey",
14 | "api": "S3v4"
15 | },
16 | "play": {
17 | "url": "https://play.minio.io:9000",
18 | "accessKey": "Q3AM3UQ867SPQQA43P2F",
19 | "secretKey": "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG",
20 | "api": "S3v4"
21 | },
22 | "s3": {
23 | "url": "https://s3.amazonaws.com",
24 | "accessKey": "YOUR-ACCESS-KEY-HERE",
25 | "secretKey": "YOUR-SECRET-KEY-HERE",
26 | "api": "S3v4"
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/app/Providers/EventServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
17 | TestEventListener::class
18 | ]
19 | ];
20 |
21 | /**
22 | * Register any other events for your application.
23 | *
24 | * @return void
25 | */
26 | public function boot()
27 | {
28 | parent::boot();
29 |
30 | //
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 | ./tests/
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/laradock/hhvm/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu:14.04
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
6 |
7 | RUN apt-get update -y \
8 | && apt-get install -y software-properties-common wget \
9 | && wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - \
10 | && add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main" \
11 | && apt-get update -y \
12 | && apt-get install -y hhvm \
13 | && apt-get clean \
14 | && rm -rf /var/lib/apt/lists/*
15 |
16 | RUN mkdir -p /var/www
17 |
18 | COPY server.ini /etc/hhvm/server.ini
19 |
20 | RUN usermod -u 1000 www-data
21 |
22 | WORKDIR /var/www
23 |
24 | CMD ["/usr/bin/hhvm", "-m", "server", "-c", "/etc/hhvm/server.ini"]
25 |
26 | EXPOSE 9000
27 |
--------------------------------------------------------------------------------
/resources/lang/en/passwords.php:
--------------------------------------------------------------------------------
1 | "Passwords must be at least six characters and match the confirmation.",
17 | "user" => "We can't find a user with that e-mail address.",
18 | "token" => "This password reset token is invalid.",
19 | "sent" => "We have e-mailed your password reset link!",
20 | "reset" => "Your password has been reset!",
21 |
22 | ];
23 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/close.less:
--------------------------------------------------------------------------------
1 | //
2 | // Close icons
3 | // --------------------------------------------------
4 |
5 |
6 | .close {
7 | float: right;
8 | font-size: (@font-size-base * 1.5);
9 | font-weight: @close-font-weight;
10 | line-height: 1;
11 | color: @close-color;
12 | text-shadow: @close-text-shadow;
13 | .opacity(.2);
14 |
15 | &:hover,
16 | &:focus {
17 | color: @close-color;
18 | text-decoration: none;
19 | cursor: pointer;
20 | .opacity(.5);
21 | }
22 |
23 | // Additional properties for button version
24 | // iOS requires the button element instead of an anchor tag.
25 | // If you want the anchor version, it requires `href="#"`.
26 | button& {
27 | padding: 0;
28 | cursor: pointer;
29 | background: transparent;
30 | border: 0;
31 | -webkit-appearance: none;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/resources/views/posts/create.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 |
5 | Create Post
6 |
7 |
25 |
26 | @if ($errors->any())
27 |
28 | {!! implode('', $errors->all('- :message
')) !!}
29 |
30 | @endif
31 |
32 | @stop
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/table-row.less:
--------------------------------------------------------------------------------
1 | // Tables
2 |
3 | .table-row-variant(@state; @background) {
4 | // Exact selectors below required to override `.table-striped` and prevent
5 | // inheritance to nested tables.
6 | .table > thead > tr,
7 | .table > tbody > tr,
8 | .table > tfoot > tr {
9 | > td.@{state},
10 | > th.@{state},
11 | &.@{state} > td,
12 | &.@{state} > th {
13 | background-color: @background;
14 | }
15 | }
16 |
17 | // Hover states for `.table-hover`
18 | // Note: this is not available for cells or rows within `thead` or `tfoot`.
19 | .table-hover > tbody > tr {
20 | > td.@{state}:hover,
21 | > th.@{state}:hover,
22 | &.@{state}:hover > td,
23 | &:hover > .@{state},
24 | &.@{state}:hover > th {
25 | background-color: darken(@background, 5%);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/resources/views/users/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 |
5 | Edit User
6 |
20 |
21 | @if ($errors->any())
22 |
23 | {!! implode('', $errors->all('- :message
')) !!}
24 |
25 | @endif
26 |
27 | @stop
--------------------------------------------------------------------------------
/resources/views/errors/503.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
33 |
34 |
35 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => '',
19 | 'secret' => '',
20 | ],
21 |
22 | 'mandrill' => [
23 | 'secret' => '',
24 | ],
25 |
26 | 'ses' => [
27 | 'key' => '',
28 | 'secret' => '',
29 | 'region' => 'us-east-1',
30 | ],
31 |
32 | 'stripe' => [
33 | 'model' => 'User',
34 | 'secret' => '',
35 | ],
36 |
37 | ];
38 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/media.less:
--------------------------------------------------------------------------------
1 | .media {
2 | // Proper spacing between instances of .media
3 | margin-top: 15px;
4 |
5 | &:first-child {
6 | margin-top: 0;
7 | }
8 | }
9 |
10 | .media-right,
11 | .media > .pull-right {
12 | padding-left: 10px;
13 | }
14 |
15 | .media-left,
16 | .media > .pull-left {
17 | padding-right: 10px;
18 | }
19 |
20 | .media-left,
21 | .media-right,
22 | .media-body {
23 | display: table-cell;
24 | vertical-align: top;
25 | }
26 |
27 | .media-middle {
28 | vertical-align: middle;
29 | }
30 |
31 | .media-bottom {
32 | vertical-align: bottom;
33 | }
34 |
35 | // Reset margins on headings for tighter default spacing
36 | .media-heading {
37 | margin-top: 0;
38 | margin-bottom: 5px;
39 | }
40 |
41 | // Media list variation
42 | //
43 | // Undo default ul/ol styles
44 | .media-list {
45 | padding-left: 0;
46 | list-style: none;
47 | }
48 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/component-animations.less:
--------------------------------------------------------------------------------
1 | //
2 | // Component animations
3 | // --------------------------------------------------
4 |
5 | // Heads up!
6 | //
7 | // We don't use the `.opacity()` mixin here since it causes a bug with text
8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9 |
10 | .fade {
11 | opacity: 0;
12 | .transition(opacity .15s linear);
13 | &.in {
14 | opacity: 1;
15 | }
16 | }
17 |
18 | .collapse {
19 | display: none;
20 | visibility: hidden;
21 |
22 | &.in { display: block; visibility: visible; }
23 | tr&.in { display: table-row; }
24 | tbody&.in { display: table-row-group; }
25 | }
26 |
27 | .collapsing {
28 | position: relative;
29 | height: 0;
30 | overflow: hidden;
31 | .transition-property(~"height, visibility");
32 | .transition-duration(.35s);
33 | .transition-timing-function(ease);
34 | }
35 |
--------------------------------------------------------------------------------
/laradock/jenkins/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Issues and Contributing
2 |
3 | Please note that only issues related to this Docker image will be addressed here.
4 |
5 | * If you have Docker related issues, please ask in the [Docker user mailing list](https://groups.google.com/forum/#!forum/docker-user).
6 | * If you have Jenkins related issues, please ask in the [Jenkins mailing lists](https://jenkins-ci.org/content/mailing-lists).
7 | * If you are not sure, then this is probably not the place to create an issue and you should use any of the previously mentioned mailing lists.
8 |
9 | If after going through the previous checklist you still think you should create an issue here please provide:
10 |
11 | * Docker commands that you execute
12 | * Actual result
13 | * Expected outcome
14 | * Have you tried a non-dockerized Jenkins and get the expected outcome?
15 | * Output of `docker version`
16 | * Other relevant information
17 |
--------------------------------------------------------------------------------
/app/Http/Middleware/RedirectIfAuthenticated.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
25 | }
26 |
27 | /**
28 | * Handle an incoming request.
29 | *
30 | * @param \Illuminate\Http\Request $request
31 | * @param \Closure $next
32 | * @return mixed
33 | */
34 | public function handle($request, Closure $next)
35 | {
36 | if ($this->auth->check())
37 | {
38 | return new RedirectResponse(url('/home'));
39 | }
40 |
41 | return $next($request);
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/thumbnails.less:
--------------------------------------------------------------------------------
1 | //
2 | // Thumbnails
3 | // --------------------------------------------------
4 |
5 |
6 | // Mixin and adjust the regular image class
7 | .thumbnail {
8 | display: block;
9 | padding: @thumbnail-padding;
10 | margin-bottom: @line-height-computed;
11 | line-height: @line-height-base;
12 | background-color: @thumbnail-bg;
13 | border: 1px solid @thumbnail-border;
14 | border-radius: @thumbnail-border-radius;
15 | .transition(border .2s ease-in-out);
16 |
17 | > img,
18 | a > img {
19 | &:extend(.img-responsive);
20 | margin-left: auto;
21 | margin-right: auto;
22 | }
23 |
24 | // Add a hover state for linked versions only
25 | a&:hover,
26 | a&:focus,
27 | a&.active {
28 | border-color: @link-color;
29 | }
30 |
31 | // Image captions
32 | .caption {
33 | padding: @thumbnail-caption-padding;
34 | color: @thumbnail-caption-color;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tests/functional/RoutesCest.php:
--------------------------------------------------------------------------------
1 | amOnRoute('posts.index');
9 | $I->seeCurrentUrlEquals('/posts');
10 | $I->seeCurrentActionIs('PostsController@index');
11 | }
12 |
13 | public function openPageByAction(FunctionalTester $I)
14 | {
15 | $I->amOnAction('PostsController@index');
16 | $I->seeCurrentUrlEquals('/posts');
17 | $I->seeCurrentRouteIs('posts.index');
18 | }
19 |
20 | public function openRouteWithDomainSpecified(FunctionalTester $I)
21 | {
22 | $I->amOnRoute('domain');
23 | $I->seeResponseCodeIs(200);
24 | $I->see('Domain route');
25 | }
26 |
27 | public function routesWithTrailingSlashes(FunctionalTester $I)
28 | {
29 | $I->amOnPage('/redirect');
30 | $I->seeCurrentRouteIs('homepage');
31 | }
32 |
33 | }
--------------------------------------------------------------------------------
/app/Http/Controllers/WelcomeController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
24 | }
25 |
26 | /**
27 | * Show the application welcome screen to the user.
28 | *
29 | * @return Response
30 | */
31 | public function index()
32 | {
33 | return view('welcome');
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/resources/views/posts/show.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 |
5 | Show Post
6 |
7 | Return to all posts
8 |
9 |
32 |
33 | @stop
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ResetPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
29 | }
30 | }
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/static/images/favicons/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "App",
3 | "icons": [
4 | {
5 | "src": "\/android-icon-36x36.png",
6 | "sizes": "36x36",
7 | "type": "image\/png",
8 | "density": "0.75"
9 | },
10 | {
11 | "src": "\/android-icon-48x48.png",
12 | "sizes": "48x48",
13 | "type": "image\/png",
14 | "density": "1.0"
15 | },
16 | {
17 | "src": "\/android-icon-72x72.png",
18 | "sizes": "72x72",
19 | "type": "image\/png",
20 | "density": "1.5"
21 | },
22 | {
23 | "src": "\/android-icon-96x96.png",
24 | "sizes": "96x96",
25 | "type": "image\/png",
26 | "density": "2.0"
27 | },
28 | {
29 | "src": "\/android-icon-144x144.png",
30 | "sizes": "144x144",
31 | "type": "image\/png",
32 | "density": "3.0"
33 | },
34 | {
35 | "src": "\/android-icon-192x192.png",
36 | "sizes": "192x192",
37 | "type": "image\/png",
38 | "density": "4.0"
39 | }
40 | ]
41 | }
--------------------------------------------------------------------------------
/laradock/jenkins/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | # Issues and Contributing
2 |
3 | Please note that only issues related to this Docker image will be addressed here.
4 |
5 | * If you have Docker related issues, please ask in the [Docker user mailing list](https://groups.google.com/forum/#!forum/docker-user).
6 | * If you have Jenkins related issues, please ask in the [Jenkins mailing lists](https://jenkins-ci.org/content/mailing-lists).
7 | * If you are not sure, then this is probably not the place to create an issue and you should use any of the previously mentioned mailing lists.
8 |
9 | If after going through the previous checklist you still think you should create an issue here please provide:
10 |
11 |
12 | ### Docker commands that you execute
13 |
14 | ### Actual result
15 |
16 | ### Expected outcome
17 |
18 | ### Have you tried a non-dockerized Jenkins and get the expected outcome?
19 |
20 | ### Output of `docker version`
21 |
22 | ### Other relevant information
23 |
24 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | 'App\Http\Middleware\Authenticate',
28 | 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
29 | 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
30 | ];
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/database/factories/ModelFactory.php:
--------------------------------------------------------------------------------
1 | define(App\User::class, function (Faker\Generator $faker) {
15 | return [
16 | 'email' => $faker->email,
17 | 'password' => bcrypt(str_random(10)),
18 | 'remember_token' => str_random(10),
19 | ];
20 | });
21 |
22 | $factory->defineAs(App\User::class, 'admin', function (Faker\Generator $faker) {
23 | return [
24 | 'email' => $faker->email,
25 | 'password' => bcrypt(str_random(10)),
26 | 'remember_token' => str_random(10),
27 | ];
28 | });
29 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/ForgotPasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
29 | }
30 | }
--------------------------------------------------------------------------------
/app/Http/Middleware/Authenticate.php:
--------------------------------------------------------------------------------
1 | auth = $auth;
24 | }
25 |
26 | /**
27 | * Handle an incoming request.
28 | *
29 | * @param \Illuminate\Http\Request $request
30 | * @param \Closure $next
31 | * @return mixed
32 | */
33 | public function handle($request, Closure $next)
34 | {
35 | if ($this->auth->guest())
36 | {
37 | if ($request->ajax())
38 | {
39 | return response('Unauthorized.', 401);
40 | }
41 | else
42 | {
43 | return redirect()->guest('login');
44 | }
45 | }
46 |
47 | return $next($request);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/resources/views/welcome.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
37 |
38 |
39 |
40 |
41 |
Laravel 5
42 |
{{ Inspiring::quote() }}
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/resources/views/posts/edit.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 |
5 | Edit Post
6 |
26 |
27 | @if ($errors->any())
28 |
29 | {!! implode('', $errors->all('- :message
')) !!}
30 |
31 | @endif
32 |
33 | @stop
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/utilities.less:
--------------------------------------------------------------------------------
1 | //
2 | // Utility classes
3 | // --------------------------------------------------
4 |
5 |
6 | // Floats
7 | // -------------------------
8 |
9 | .clearfix {
10 | .clearfix();
11 | }
12 | .center-block {
13 | .center-block();
14 | }
15 | .pull-right {
16 | float: right !important;
17 | }
18 | .pull-left {
19 | float: left !important;
20 | }
21 |
22 |
23 | // Toggling content
24 | // -------------------------
25 |
26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27 | .hide {
28 | display: none !important;
29 | }
30 | .show {
31 | display: block !important;
32 | }
33 | .invisible {
34 | visibility: hidden;
35 | }
36 | .text-hide {
37 | .text-hide();
38 | }
39 |
40 |
41 | // Hide from screenreaders and browsers
42 | //
43 | // Credit: HTML5 Boilerplate
44 |
45 | .hidden {
46 | display: none !important;
47 | visibility: hidden !important;
48 | }
49 |
50 |
51 | // For Affix plugin
52 | // -------------------------
53 |
54 | .affix {
55 | position: fixed;
56 | }
57 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 |
4 | ### 11th May 2016
5 |
6 | #### Add templates for section lists
7 |
8 | Sections such as www.example.com/foo/ will now be rendered with a list of all pages that are part of this section. The list shows the pages' title and a summary of their content.
9 |
10 | [Show me the diff](https://github.com/digitalcraftsman/hugo-material-docs/commit/1f8393a8d4ce1b8ee3fc7d87be05895c12810494)
11 |
12 | ### 22nd March 2016
13 |
14 | #### Changing setup for Google Analytics
15 |
16 | Formerly, the tracking id for Google Analytics was set like below:
17 |
18 | ```toml
19 | [params]
20 | google_analytics = ["UA-XXXXXXXX-X", "auto"]
21 | ```
22 |
23 | Now the theme uses Hugo's own Google Analytics config option. The variable moved outside the scope of `params` and the setup requires only the tracking id as a string:
24 |
25 | ```toml
26 | googleAnalytics = "UA-XXXXXXXX-X"
27 | ```
28 |
29 | [Show me the diff](https://github.com/digitalcraftsman/hugo-material-docs/commit/fa10c8eef935932426d46b662a51f29a5e0d48e2)
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
17 | realpath(base_path('resources/views'))
18 | ],
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Compiled View Path
23 | |--------------------------------------------------------------------------
24 | |
25 | | This option determines where all the compiled Blade templates will be
26 | | stored for your application. Typically, this is within the storage
27 | | directory. However, as usual, you are free to change this value.
28 | |
29 | */
30 |
31 | 'compiled' => realpath(storage_path().'/framework/views'),
32 |
33 | ];
34 |
--------------------------------------------------------------------------------
/laradock/jenkins/Jenkinsfile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env groovy
2 |
3 | properties([
4 | buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5')),
5 | pipelineTriggers([cron('@daily')]),
6 | ])
7 |
8 | node('docker') {
9 | deleteDir()
10 |
11 | stage('Checkout') {
12 | checkout scm
13 | }
14 |
15 | if (!infra.isTrusted()) {
16 | /* Outside of the trusted.ci environment, we're building and testing
17 | * the Dockerful in this repository, but not publishing to docker hub
18 | */
19 | stage('Build') {
20 | docker.build('jenkins')
21 | }
22 |
23 | stage('Test') {
24 | sh """
25 | git submodule update --init --recursive
26 | git clone https://github.com/sstephenson/bats.git
27 | bats/bin/bats tests
28 | """
29 | }
30 | } else {
31 | /* In our trusted.ci environment we only want to be publishing our
32 | * containers from artifacts
33 | */
34 | stage('Publish') {
35 | sh './publish.sh'
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/pager.less:
--------------------------------------------------------------------------------
1 | //
2 | // Pager pagination
3 | // --------------------------------------------------
4 |
5 |
6 | .pager {
7 | padding-left: 0;
8 | margin: @line-height-computed 0;
9 | list-style: none;
10 | text-align: center;
11 | &:extend(.clearfix all);
12 | li {
13 | display: inline;
14 | > a,
15 | > span {
16 | display: inline-block;
17 | padding: 5px 14px;
18 | background-color: @pager-bg;
19 | border: 1px solid @pager-border;
20 | border-radius: @pager-border-radius;
21 | }
22 |
23 | > a:hover,
24 | > a:focus {
25 | text-decoration: none;
26 | background-color: @pager-hover-bg;
27 | }
28 | }
29 |
30 | .next {
31 | > a,
32 | > span {
33 | float: right;
34 | }
35 | }
36 |
37 | .previous {
38 | > a,
39 | > span {
40 | float: left;
41 | }
42 | }
43 |
44 | .disabled {
45 | > a,
46 | > a:hover,
47 | > a:focus,
48 | > span {
49 | color: @pager-disabled-color;
50 | background-color: @pager-bg;
51 | cursor: @cursor-disabled;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/LoginController.php:
--------------------------------------------------------------------------------
1 | middleware('guest', ['except' => 'logout']);
36 | }
37 | }
--------------------------------------------------------------------------------
/app/User.php:
--------------------------------------------------------------------------------
1 |
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/laradock/adminer/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM adminer:4
2 |
3 | LABEL maintainer="Patrick Artounian "
4 |
5 | # Add volume for sessions to allow session persistence
6 | VOLUME /sessions
7 |
8 | #####################################
9 | # SQL SERVER:
10 | #####################################
11 | USER root
12 | ARG INSTALL_MSSQL=false
13 | ENV INSTALL_MSSQL ${INSTALL_MSSQL}
14 | RUN if [ ${INSTALL_MSSQL} = true ]; then \
15 | set -xe \
16 | # && apk --update add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc unixodbc-dev \
17 | # && pecl channel-update pecl.php.net \
18 | # && pecl install pdo_sqlsrv-4.1.8preview sqlsrv-4.1.8preview \
19 | # && echo "extension=sqlsrv.so" > /usr/local/etc/php/conf.d/20-sqlsrv.ini \
20 | # && echo "extension=pdo_sqlsrv.so" > /usr/local/etc/php/conf.d/20-pdo_sqlsrv.ini \
21 | && apk --update add --no-cache freetds unixodbc \
22 | && apk --update add --no-cache --virtual .build-deps $PHPIZE_DEPS freetds-dev unixodbc-dev \
23 | && docker-php-ext-install pdo_dblib \
24 | && apk del .build-deps \
25 | ;fi
26 |
27 | USER adminer
28 |
29 | # We expose Adminer on port 8080 (Adminer's default)
30 | EXPOSE 8080
31 |
--------------------------------------------------------------------------------
/laradock/jupyterhub/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python
2 | LABEL maintainer="ahkui "
3 |
4 | ENV JUPYTERHUB_USER_DATA ${JUPYTERHUB_USER_DATA}
5 | ENV JUPYTERHUB_POSTGRES_DB ${JUPYTERHUB_POSTGRES_DB}
6 | ENV JUPYTERHUB_POSTGRES_USER ${JUPYTERHUB_POSTGRES_USER}
7 | ENV JUPYTERHUB_POSTGRES_HOST ${JUPYTERHUB_POSTGRES_HOST}
8 | ENV JUPYTERHUB_POSTGRES_PASSWORD ${JUPYTERHUB_POSTGRES_PASSWORD}
9 | ENV JUPYTERHUB_OAUTH_CALLBACK_URL ${JUPYTERHUB_OAUTH_CALLBACK_URL}
10 | ENV JUPYTERHUB_OAUTH_CLIENT_ID ${JUPYTERHUB_OAUTH_CLIENT_ID}
11 | ENV JUPYTERHUB_OAUTH_CLIENT_SECRET ${JUPYTERHUB_OAUTH_CLIENT_SECRET}
12 | ENV JUPYTERHUB_LOCAL_NOTEBOOK_IMAGE ${JUPYTERHUB_LOCAL_NOTEBOOK_IMAGE}
13 | ENV JUPYTERHUB_ENABLE_NVIDIA ${JUPYTERHUB_ENABLE_NVIDIA}
14 |
15 | RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
16 |
17 | RUN apt update -yqq && \
18 | apt-get install -y nodejs
19 |
20 | RUN npm install -g configurable-http-proxy
21 |
22 | RUN pip install jupyterhub
23 | RUN pip install oauthenticator
24 | RUN pip install dockerspawner
25 | RUN pip install psycopg2 psycopg2-binary
26 |
27 | CMD ["sh", "-c", "jupyterhub upgrade-db && jupyterhub -f /jupyterhub_config.py"]
28 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "laravel/laravel",
3 | "description": "The Laravel Framework.",
4 | "keywords": ["framework", "laravel"],
5 | "license": "MIT",
6 | "type": "project",
7 | "require": {
8 | "laravel/framework": "5.4.*",
9 | "flow/jsonpath": "^0.2.4",
10 | "fzaninotto/faker": "~1.4",
11 | "symfony/http-foundation": "3.4.35"
12 | },
13 | "require-dev": {
14 | "phpunit/phpunit": "~4.0",
15 | "phpspec/phpspec": "~2.1",
16 | "codeception/codeception": "2.2.x-dev",
17 | "symfony/dom-crawler": "~3.0",
18 | "symfony/css-selector": "~3.0"
19 | },
20 | "autoload": {
21 | "classmap": [
22 | "database"
23 | ],
24 | "psr-4": {
25 | "App\\": "app/"
26 | }
27 | },
28 | "autoload-dev": {
29 | },
30 | "scripts": {
31 | "post-install-cmd": [
32 | "php artisan clear-compiled",
33 | "php artisan optimize"
34 | ],
35 | "post-update-cmd": [
36 | "php artisan clear-compiled",
37 | "php artisan optimize"
38 | ],
39 | "post-create-project-cmd": [
40 | "php -r \"copy('.env.example', '.env');\"",
41 | "php artisan key:generate"
42 | ]
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/resources/views/layouts/scaffold.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
14 |
15 |
16 | @if (Session::has('message'))
17 |
18 |
{{ Session::get('message') }}
19 |
20 | @endif
21 |
22 | @yield('main')
23 |
24 |
25 | @if (Auth::user())
26 | Logged in as {{{ Auth::user()->email }}}.
27 |
Logout
28 | @else
29 | Not logged in
30 | @endif
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/app/Providers/RouteServiceProvider.php:
--------------------------------------------------------------------------------
1 | group(['namespace' => $this->namespace], function ($router) {
39 | require app_path('Http/routes.php');
40 | });
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/laradock/mariadb/docker-entrypoint-initdb.d/createdb.sql.example:
--------------------------------------------------------------------------------
1 | ###
2 | ### Copy createdb.sql.example to createdb.sql
3 | ### then uncomment then set database name and username to create you need databases
4 | #
5 | # example: .env MYSQL_USER=appuser and need db name is myshop_db
6 | #
7 | # CREATE DATABASE IF NOT EXISTS `myshop_db` ;
8 | # GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ;
9 | #
10 | ###
11 | ### this sql script is auto run when mariadb container start and $DATA_PATH_HOST/mariadb not exists.
12 | ###
13 | ### if your $DATA_PATH_HOST/mariadb is exists and you do not want to delete it, you can run by manual execution:
14 | ###
15 | ### docker-compose exec mariadb bash
16 | ### mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql
17 | ###
18 |
19 | #CREATE DATABASE IF NOT EXISTS `dev_db_1` COLLATE 'utf8_general_ci' ;
20 | #GRANT ALL ON `dev_db_1`.* TO 'default'@'%' ;
21 |
22 | #CREATE DATABASE IF NOT EXISTS `dev_db_2` COLLATE 'utf8_general_ci' ;
23 | #GRANT ALL ON `dev_db_2`.* TO 'default'@'%' ;
24 |
25 | #CREATE DATABASE IF NOT EXISTS `dev_db_3` COLLATE 'utf8_general_ci' ;
26 | #GRANT ALL ON `dev_db_3`.* TO 'default'@'%' ;
27 |
28 | FLUSH PRIVILEGES ;
29 |
--------------------------------------------------------------------------------
/app/Console/Commands/CreateUser.php:
--------------------------------------------------------------------------------
1 | email = $this->argument('email');
44 | $user->password = $this->argument('password');
45 | $user->save();
46 |
47 | $this->line('User created!');
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/laradock/percona/docker-entrypoint-initdb.d/createdb.sql.example:
--------------------------------------------------------------------------------
1 | ###
2 | ### Copy createdb.sql.example to createdb.sql
3 | ### then uncomment then set database name and username to create you need databases
4 | #
5 | # example: .env MYSQL_USER=appuser and need db name is myshop_db
6 | #
7 | # CREATE DATABASE IF NOT EXISTS `myshop_db` ;
8 | # GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ;
9 | #
10 | ###
11 | ### this sql script is auto run when percona container start and $DATA_PATH_HOST/percona not exists.
12 | ###
13 | ### if your $DATA_PATH_HOST/percona is exists and you do not want to delete it, you can run by manual execution:
14 | ###
15 | ### docker-compose exec percona bash
16 | ### mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql
17 | ###
18 |
19 | #CREATE DATABASE IF NOT EXISTS `dev_db_1` COLLATE 'utf8_general_ci' ;
20 | #GRANT ALL ON `dev_db_1`.* TO 'homestead'@'%' ;
21 |
22 | #CREATE DATABASE IF NOT EXISTS `dev_db_2` COLLATE 'utf8_general_ci' ;
23 | #GRANT ALL ON `dev_db_2`.* TO 'homestead'@'%' ;
24 |
25 | #CREATE DATABASE IF NOT EXISTS `dev_db_3` COLLATE 'utf8_general_ci' ;
26 | #GRANT ALL ON `dev_db_3`.* TO 'homestead'@'%' ;
27 |
28 | FLUSH PRIVILEGES ;
29 |
--------------------------------------------------------------------------------
/laradock/nginx/sites/default.conf:
--------------------------------------------------------------------------------
1 | server {
2 |
3 | listen 80 default_server;
4 | listen [::]:80 default_server ipv6only=on;
5 |
6 | # For https
7 | # listen 443 ssl default_server;
8 | # listen [::]:443 ssl default_server ipv6only=on;
9 | # ssl_certificate /etc/nginx/ssl/default.crt;
10 | # ssl_certificate_key /etc/nginx/ssl/default.key;
11 |
12 | server_name localhost;
13 | root /var/www/public;
14 | index index.php index.html index.htm;
15 |
16 | location / {
17 | try_files $uri $uri/ /index.php$is_args$args;
18 | }
19 |
20 | location ~ \.php$ {
21 | try_files $uri /index.php =404;
22 | fastcgi_pass php-upstream;
23 | fastcgi_index index.php;
24 | fastcgi_buffers 16 16k;
25 | fastcgi_buffer_size 32k;
26 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
27 | #fixes timeouts
28 | fastcgi_read_timeout 600;
29 | include fastcgi_params;
30 | }
31 |
32 | location ~ /\.ht {
33 | deny all;
34 | }
35 |
36 | location /.well-known/acme-challenge/ {
37 | root /var/www/letsencrypt/;
38 | log_not_found off;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/tests/functional/InternalDomainsCest.php:
--------------------------------------------------------------------------------
1 | amOnPage('https://www.google.com');
10 | $I->fail('Visiting an external URL should throw an ExternalUrlException');
11 | } catch (\Codeception\Exception\ExternalUrlException $ignored) {}
12 | }
13 |
14 | public function testWithDomain(FunctionalTester $I)
15 | {
16 | $I->amOnPage('http://example.com');
17 | $I->see('Domain route');
18 | }
19 |
20 | public function testWithSubdomain(FunctionalTester $I)
21 | {
22 | $I->amOnPage('http://subdomain.example.com');
23 | $I->see('Subdomain route');
24 | }
25 |
26 | public function testWithWildcardInDomain(FunctionalTester $I)
27 | {
28 | $I->amOnPage('http://wildcard.example.com');
29 | $I->see('Wildcard route');
30 | }
31 |
32 | public function testWithMultipleWildcardsInDomain(FunctionalTester $I)
33 | {
34 | $I->amOnPage('http://wild.card.example.com');
35 | $I->see('Multiple wildcards route');
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/resources/views/posts/index.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.scaffold')
2 |
3 | @section('main')
4 |
5 | All Posts
6 |
7 | Add new post
8 |
9 | @if ($posts->count())
10 |
35 | @else
36 | There are no posts
37 | @endif
38 |
39 | @stop
--------------------------------------------------------------------------------
/bootstrap/autoload.php:
--------------------------------------------------------------------------------
1 | hr {
23 | border-top-color: darken(@jumbotron-bg, 10%);
24 | }
25 |
26 | .container &,
27 | .container-fluid & {
28 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container
29 | }
30 |
31 | .container {
32 | max-width: 100%;
33 | }
34 |
35 | @media screen and (min-width: @screen-sm-min) {
36 | padding: (@jumbotron-padding * 1.6) 0;
37 |
38 | .container &,
39 | .container-fluid & {
40 | padding-left: (@jumbotron-padding * 2);
41 | padding-right: (@jumbotron-padding * 2);
42 | }
43 |
44 | h1,
45 | .h1 {
46 | font-size: (@font-size-base * 4.5);
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/image.less:
--------------------------------------------------------------------------------
1 | // Image Mixins
2 | // - Responsive image
3 | // - Retina image
4 |
5 |
6 | // Responsive image
7 | //
8 | // Keep images from scaling beyond the width of their parents.
9 | .img-responsive(@display: block) {
10 | display: @display;
11 | max-width: 100%; // Part 1: Set a maximum relative to the parent
12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
13 | }
14 |
15 |
16 | // Retina image
17 | //
18 | // Short retina mixin for setting background-image and -size. Note that the
19 | // spelling of `min--moz-device-pixel-ratio` is intentional.
20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
21 | background-image: url("@{file-1x}");
22 |
23 | @media
24 | only screen and (-webkit-min-device-pixel-ratio: 2),
25 | only screen and ( min--moz-device-pixel-ratio: 2),
26 | only screen and ( -o-min-device-pixel-ratio: 2/1),
27 | only screen and ( min-device-pixel-ratio: 2),
28 | only screen and ( min-resolution: 192dpi),
29 | only screen and ( min-resolution: 2dppx) {
30 | background-image: url("@{file-2x}");
31 | background-size: @width-1x @height-1x;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/laradock/nginx/sites/laravel.conf.example:
--------------------------------------------------------------------------------
1 | server {
2 |
3 | listen 80;
4 | listen [::]:80;
5 |
6 | # For https
7 | # listen 443 ssl;
8 | # listen [::]:443 ssl ipv6only=on;
9 | # ssl_certificate /etc/nginx/ssl/default.crt;
10 | # ssl_certificate_key /etc/nginx/ssl/default.key;
11 |
12 | server_name laravel.test;
13 | root /var/www/laravel/public;
14 | index index.php index.html index.htm;
15 |
16 | location / {
17 | try_files $uri $uri/ /index.php$is_args$args;
18 | }
19 |
20 | location ~ \.php$ {
21 | try_files $uri /index.php =404;
22 | fastcgi_pass php-upstream;
23 | fastcgi_index index.php;
24 | fastcgi_buffers 16 16k;
25 | fastcgi_buffer_size 32k;
26 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
27 | #fixes timeouts
28 | fastcgi_read_timeout 600;
29 | include fastcgi_params;
30 | }
31 |
32 | location ~ /\.ht {
33 | deny all;
34 | }
35 |
36 | location /.well-known/acme-challenge/ {
37 | root /var/www/letsencrypt/;
38 | log_not_found off;
39 | }
40 |
41 | error_log /var/log/nginx/laravel_error.log;
42 | access_log /var/log/nginx/laravel_access.log;
43 | }
44 |
--------------------------------------------------------------------------------
/config/compile.php:
--------------------------------------------------------------------------------
1 | [
17 |
18 | realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'),
19 | realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'),
20 | realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'),
21 |
22 | ],
23 |
24 | /*
25 | |--------------------------------------------------------------------------
26 | | Compiled File Providers
27 | |--------------------------------------------------------------------------
28 | |
29 | | Here you may list service providers which define a "compiles" function
30 | | that returns additional files that should be compiled, providing an
31 | | easy way to get common files from any packages you are utilizing.
32 | |
33 | */
34 |
35 | 'providers' => [
36 | //
37 | ],
38 |
39 | ];
40 |
--------------------------------------------------------------------------------
/laradock/nginx/sites/symfony.conf.example:
--------------------------------------------------------------------------------
1 | server {
2 |
3 | listen 80;
4 | listen [::]:80;
5 |
6 | # For https
7 | # listen 443 ssl;
8 | # listen [::]:443 ssl ipv6only=on;
9 | # ssl_certificate /etc/nginx/ssl/default.crt;
10 | # ssl_certificate_key /etc/nginx/ssl/default.key;
11 |
12 | server_name symfony.test;
13 | root /var/www/projects/symfony/web;
14 | index index.php index.html index.htm;
15 |
16 | location / {
17 | try_files $uri @rewriteapp;
18 | }
19 |
20 | # For Symfony 3
21 | location @rewriteapp {
22 | rewrite ^(.*)$ /app.php/$1 last;
23 | }
24 |
25 | # For Symfony 4 config
26 | # location @rewriteapp {
27 | # rewrite ^(.*)$ /index.php/$1 last;
28 | # }
29 |
30 | location ~ ^/(app|app_dev|config|index)\.php(/|$) {
31 | fastcgi_pass php-upstream;
32 | fastcgi_split_path_info ^(.+\.php)(/.*)$;
33 | include fastcgi_params;
34 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
35 | #fixes timeouts
36 | fastcgi_read_timeout 600;
37 | fastcgi_param HTTPS off;
38 | }
39 |
40 | error_log /var/log/nginx/symfony_error.log;
41 | access_log /var/log/nginx/symfony_access.log;
42 | }
43 |
--------------------------------------------------------------------------------
/laradock/DOCUMENTATION/themes/hugo-material-docs/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016 Digitalcraftsman
2 | Copyright (c) 2016 Martin Donath
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to
6 | deal in the Software without restriction, including without limitation the
7 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 | sell copies of the Software, and to permit persons to whom the Software is
9 | furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in
12 | all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 | IN THE SOFTWARE.
--------------------------------------------------------------------------------
/laradock/caddy/caddy/Caddyfile:
--------------------------------------------------------------------------------
1 | # Docs: https://caddyserver.com/docs/caddyfile
2 | 0.0.0.0:80 {
3 | root /var/www/public
4 | fastcgi / php-fpm:9000 php {
5 | index index.php
6 | }
7 |
8 | # To handle .html extensions with laravel change ext to
9 | # ext / .html
10 |
11 | rewrite {
12 | to {path} {path}/ /index.php?{query}
13 | }
14 | gzip
15 | browse
16 | log /var/log/caddy/access.log
17 | errors /var/log/caddy/error.log
18 | # Uncomment to enable TLS (HTTPS)
19 | # Change the first list to listen on port 443 when enabling TLS
20 | #tls self_signed
21 |
22 | # To use Lets encrpt tls with a DNS provider uncomment these
23 | # lines and change the provider as required
24 | #tls {
25 | # dns cloudflare
26 | #}
27 | }
28 |
29 | laradock1.demo:80 {
30 | root /var/www/public
31 | # Create a Webhook in git.
32 | #git {
33 | #repo https://github.com/xxx/xxx
34 | # path /home/xxx
35 | # #interval 60
36 | # hook webhook laradock
37 | # hook_type generic
38 | #}
39 |
40 | }
41 |
42 | laradock2.demo:80 {
43 | # Create a Proxy and cors.
44 | #proxy domain.com
45 | #cors
46 | }
47 |
48 | laradock3.demo:80 {
49 | import authlist.conf
50 | root /var/www/public
51 | }
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins.less:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------------------------------
3 |
4 | // Utilities
5 | @import "mixins/hide-text.less";
6 | @import "mixins/opacity.less";
7 | @import "mixins/image.less";
8 | @import "mixins/labels.less";
9 | @import "mixins/reset-filter.less";
10 | @import "mixins/resize.less";
11 | @import "mixins/responsive-visibility.less";
12 | @import "mixins/size.less";
13 | @import "mixins/tab-focus.less";
14 | @import "mixins/text-emphasis.less";
15 | @import "mixins/text-overflow.less";
16 | @import "mixins/vendor-prefixes.less";
17 |
18 | // Components
19 | @import "mixins/alerts.less";
20 | @import "mixins/buttons.less";
21 | @import "mixins/panels.less";
22 | @import "mixins/pagination.less";
23 | @import "mixins/list-group.less";
24 | @import "mixins/nav-divider.less";
25 | @import "mixins/forms.less";
26 | @import "mixins/progress-bar.less";
27 | @import "mixins/table-row.less";
28 |
29 | // Skins
30 | @import "mixins/background-variant.less";
31 | @import "mixins/border-radius.less";
32 | @import "mixins/gradients.less";
33 |
34 | // Layout
35 | @import "mixins/clearfix.less";
36 | @import "mixins/center-block.less";
37 | @import "mixins/nav-vertical-align.less";
38 | @import "mixins/grid-framework.less";
39 | @import "mixins/grid.less";
40 |
--------------------------------------------------------------------------------
/laradock/jenkins/update-official-library.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -eu
2 |
3 | # Generate the Docker official-images file
4 |
5 | sha() {
6 | local branch=$1
7 | git rev-parse $branch
8 | }
9 |
10 | version_from_dockerfile() {
11 | local branch=$1
12 | git show $branch:Dockerfile | grep JENKINS_VERSION: | sed -e 's/.*:-\(.*\)}/\1/'
13 | }
14 |
15 | master_sha=$(sha master)
16 | alpine_sha=$(sha alpine)
17 |
18 | master_version=$(version_from_dockerfile master)
19 | alpine_version=$(version_from_dockerfile alpine)
20 |
21 | if ! [ "$master_version" == "$alpine_version" ]; then
22 | echo "Master version '$master_version' does not match alpine version '$alpine_version'"
23 | exit 1
24 | fi
25 |
26 | cat << EOF > ../official-images/library/jenkins
27 | # maintainer: Nicolas De Loof (@ndeloof)
28 | # maintainer: Michael Neale (@michaelneale)
29 | # maintainer: Carlos Sanchez (@carlossg)
30 |
31 | latest: git://github.com/jenkinsci/jenkins-ci.org-docker@$master_sha
32 | $master_version: git://github.com/jenkinsci/jenkins-ci.org-docker@$master_sha
33 |
34 | alpine: git://github.com/jenkinsci/jenkins-ci.org-docker@$alpine_sha
35 | $alpine_version-alpine: git://github.com/jenkinsci/jenkins-ci.org-docker@$alpine_sha
36 | EOF
37 |
--------------------------------------------------------------------------------
/laradock/jenkins/tests/functions.bats:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bats
2 |
3 | SUT_IMAGE=bats-jenkins
4 |
5 | load 'test_helper/bats-support/load'
6 | load 'test_helper/bats-assert/load'
7 | load test_helpers
8 |
9 | . $BATS_TEST_DIRNAME/../jenkins-support
10 |
11 | @test "build image" {
12 | cd $BATS_TEST_DIRNAME/..
13 | docker_build -t $SUT_IMAGE .
14 | }
15 |
16 | @test "versionLT" {
17 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.0 1.0"
18 | assert_failure
19 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.0 1.1"
20 | assert_success
21 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.1 1.0"
22 | assert_failure
23 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.0-beta-1 1.0"
24 | assert_success
25 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.0 1.0-beta-1"
26 | assert_failure
27 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.0-alpha-1 1.0-beta-1"
28 | assert_success
29 | run docker run --rm $SUT_IMAGE bash -c "source /usr/local/bin/jenkins-support && versionLT 1.0-beta-1 1.0-alpha-1"
30 | assert_failure
31 | }
32 |
--------------------------------------------------------------------------------
/laradock/solr/Dockerfile:
--------------------------------------------------------------------------------
1 | ARG SOLR_VERSION=5.5
2 | FROM solr:${SOLR_VERSION}
3 |
4 | ARG SOLR_DATAIMPORTHANDLER_MYSQL=false
5 | ENV SOLR_DATAIMPORTHANDLER_MYSQL ${SOLR_DATAIMPORTHANDLER_MYSQL}
6 |
7 | # download mysql connector for dataimporthandler
8 | RUN if [ ${SOLR_DATAIMPORTHANDLER_MYSQL} = true ]; then \
9 | curl -L -o /tmp/mysql_connector.tar.gz "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz" \
10 | && mkdir /opt/solr/contrib/dataimporthandler/lib \
11 | && tar -zxvf /tmp/mysql_connector.tar.gz -C /opt/solr/contrib/dataimporthandler/lib "mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar" --strip-components 1 \
12 | && rm /tmp/mysql_connector.tar.gz \
13 | ;fi
14 |
15 | ARG SOLR_DATAIMPORTHANDLER_MSSQL=false
16 | ENV SOLR_DATAIMPORTHANDLER_MSSQL ${SOLR_DATAIMPORTHANDLER_MSSQL}
17 |
18 | # download mssql connector for dataimporthandler
19 | RUN if [ ${SOLR_DATAIMPORTHANDLER_MSSQL} = true ]; then \
20 | curl -L -o /tmp/mssql-jdbc-7.0.0.jre8.jar "https://github.com/Microsoft/mssql-jdbc/releases/download/v7.0.0/mssql-jdbc-7.0.0.jre8.jar" \
21 | && mkdir -p /opt/solr/contrib/dataimporthandler/lib \
22 | && mv /tmp/mssql-jdbc-7.0.0.jre8.jar "/opt/solr/contrib/dataimporthandler/lib/mssql-jdbc-7.0.0.jre8.jar" \
23 | ;fi
24 |
25 |
--------------------------------------------------------------------------------
/laradock/jenkins/jenkins.sh:
--------------------------------------------------------------------------------
1 | #! /bin/bash -e
2 |
3 | : "${JENKINS_HOME:="/var/jenkins_home"}"
4 | touch "${COPY_REFERENCE_FILE_LOG}" || { echo "Can not write to ${COPY_REFERENCE_FILE_LOG}. Wrong volume permissions?"; exit 1; }
5 | echo "--- Copying files at $(date)" >> "$COPY_REFERENCE_FILE_LOG"
6 | find /usr/share/jenkins/ref/ -type f -exec bash -c '. /usr/local/bin/jenkins-support; for arg; do copy_reference_file "$arg"; done' _ {} +
7 |
8 | # if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
9 | if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
10 |
11 | # read JAVA_OPTS and JENKINS_OPTS into arrays to avoid need for eval (and associated vulnerabilities)
12 | java_opts_array=()
13 | while IFS= read -r -d '' item; do
14 | java_opts_array+=( "$item" )
15 | done < <([[ $JAVA_OPTS ]] && xargs printf '%s\0' <<<"$JAVA_OPTS")
16 |
17 | jenkins_opts_array=( )
18 | while IFS= read -r -d '' item; do
19 | jenkins_opts_array+=( "$item" )
20 | done < <([[ $JENKINS_OPTS ]] && xargs printf '%s\0' <<<"$JENKINS_OPTS")
21 |
22 | exec java "${java_opts_array[@]}" -jar /usr/share/jenkins/jenkins.war "${jenkins_opts_array[@]}" "$@"
23 | fi
24 |
25 | # As argument is not jenkins, assume user want to run his own process, for example a `bash` shell to explore this image
26 | exec "$@"
27 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/mixins/buttons.less:
--------------------------------------------------------------------------------
1 | // Button variants
2 | //
3 | // Easily pump out default styles, as well as :hover, :focus, :active,
4 | // and disabled options for all buttons
5 |
6 | .button-variant(@color; @background; @border) {
7 | color: @color;
8 | background-color: @background;
9 | border-color: @border;
10 |
11 | &:hover,
12 | &:focus,
13 | &.focus,
14 | &:active,
15 | &.active,
16 | .open > .dropdown-toggle& {
17 | color: @color;
18 | background-color: darken(@background, 10%);
19 | border-color: darken(@border, 12%);
20 | }
21 | &:active,
22 | &.active,
23 | .open > .dropdown-toggle& {
24 | background-image: none;
25 | }
26 | &.disabled,
27 | &[disabled],
28 | fieldset[disabled] & {
29 | &,
30 | &:hover,
31 | &:focus,
32 | &.focus,
33 | &:active,
34 | &.active {
35 | background-color: @background;
36 | border-color: @border;
37 | }
38 | }
39 |
40 | .badge {
41 | color: @background;
42 | background-color: @color;
43 | }
44 | }
45 |
46 | // Button sizes
47 | .button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
48 | padding: @padding-vertical @padding-horizontal;
49 | font-size: @font-size;
50 | line-height: @line-height;
51 | border-radius: @border-radius;
52 | }
53 |
--------------------------------------------------------------------------------
/app/Providers/AppServiceProvider.php:
--------------------------------------------------------------------------------
1 | app->bind(
34 | 'Illuminate\Contracts\Auth\Registrar',
35 | 'App\Services\Registrar'
36 | );
37 |
38 | $this->app->bind('App\Test\StringConverter', 'App\Test\ToLowercase');
39 | $this->app->addContextualBinding('App\Test\Repeat', '$times', 2);
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/tests/functional/FormErrorsCest.php:
--------------------------------------------------------------------------------
1 | amOnPage('/register');
9 | $I->click('button[type=submit]');
10 | }
11 |
12 | public function testSeeFormHasErrors(FunctionalTester $I)
13 | {
14 | $I->seeFormHasErrors();
15 | }
16 |
17 | public function testDontSeeFormErrors(FunctionalTester $I)
18 | {
19 | $I->amOnPage('');
20 | $I->dontSeeFormErrors();
21 | }
22 |
23 | public function testSeeFormErrorMessage(FunctionalTester $I)
24 | {
25 | $I->seeFormErrorMessage('name');
26 | $I->seeFormErrorMessage('name', 'required');
27 | $I->seeFormErrorMessage('name', 'The name field is required.');
28 | }
29 |
30 | public function testSeeFormErrorMessages(FunctionalTester $I)
31 | {
32 | $I->seeFormErrorMessages(array(
33 | 'name' => null,
34 | 'email' => null,
35 | ));
36 |
37 | $I->seeFormErrorMessages(array(
38 | 'name' => 'required',
39 | 'email' => 'required',
40 | ));
41 |
42 | $I->seeFormErrorMessages(array(
43 | 'name' => 'The name field is required.',
44 | 'email' => 'The email field is required.'
45 | ));
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/bootstrap.less:
--------------------------------------------------------------------------------
1 | // Core variables and mixins
2 | @import "variables.less";
3 | @import "mixins.less";
4 |
5 | // Reset and dependencies
6 | @import "normalize.less";
7 | @import "print.less";
8 | @import "glyphicons.less";
9 |
10 | // Core CSS
11 | @import "scaffolding.less";
12 | @import "type.less";
13 | @import "code.less";
14 | @import "grid.less";
15 | @import "tables.less";
16 | @import "forms.less";
17 | @import "buttons.less";
18 |
19 | // Components
20 | @import "component-animations.less";
21 | @import "dropdowns.less";
22 | @import "button-groups.less";
23 | @import "input-groups.less";
24 | @import "navs.less";
25 | @import "navbar.less";
26 | @import "breadcrumbs.less";
27 | @import "pagination.less";
28 | @import "pager.less";
29 | @import "labels.less";
30 | @import "badges.less";
31 | @import "jumbotron.less";
32 | @import "thumbnails.less";
33 | @import "alerts.less";
34 | @import "progress-bars.less";
35 | @import "media.less";
36 | @import "list-group.less";
37 | @import "panels.less";
38 | @import "responsive-embed.less";
39 | @import "wells.less";
40 | @import "close.less";
41 |
42 | // Components w/ JavaScript
43 | @import "modals.less";
44 | @import "tooltip.less";
45 | @import "popovers.less";
46 | @import "carousel.less";
47 |
48 | // Utility classes
49 | @import "utilities.less";
50 | @import "responsive-utilities.less";
51 |
--------------------------------------------------------------------------------
/tests/functional/ServiceContainerCest.php:
--------------------------------------------------------------------------------
1 | haveBinding('App\Test\StringConverter', 'App\Test\ToUppercase');
8 |
9 | $I->amOnPage('service-container');
10 | $I->seeElement("//p[text()='STRING TO CONVERT']");
11 | }
12 |
13 | public function testHaveSingleton(FunctionalTester $I)
14 | {
15 | $I->haveSingleton('App\Test\StringConverter', 'App\Test\ToUppercase');
16 |
17 | $I->amOnPage('service-container');
18 | $I->seeElement("//p[text()='STRING TO CONVERT']");
19 | }
20 |
21 | public function testHaveInstance(FunctionalTester $I)
22 | {
23 | $converter = new \App\Test\ToUppercase();
24 | $I->haveInstance('App\Test\StringConverter', $converter);
25 |
26 | $I->amOnPage('service-container');
27 | $I->seeElement("//p[text()='STRING TO CONVERT']");
28 | }
29 |
30 | public function testHaveContextualBinding(FunctionalTester $I)
31 | {
32 | $I->haveContextualBinding('App\Test\Repeat', '$times', 3);
33 | $I->haveBinding('App\Test\StringConverter', 'App\Test\Repeat');
34 |
35 | $I->amOnPage('service-container');
36 | $I->seeElement("//p[text()='String To ConvertString To ConvertString To Convert']");
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/labels.less:
--------------------------------------------------------------------------------
1 | //
2 | // Labels
3 | // --------------------------------------------------
4 |
5 | .label {
6 | display: inline;
7 | padding: .2em .6em .3em;
8 | font-size: 75%;
9 | font-weight: bold;
10 | line-height: 1;
11 | color: @label-color;
12 | text-align: center;
13 | white-space: nowrap;
14 | vertical-align: baseline;
15 | border-radius: .25em;
16 |
17 | // Add hover effects, but only for links
18 | a& {
19 | &:hover,
20 | &:focus {
21 | color: @label-link-hover-color;
22 | text-decoration: none;
23 | cursor: pointer;
24 | }
25 | }
26 |
27 | // Empty labels collapse automatically (not available in IE8)
28 | &:empty {
29 | display: none;
30 | }
31 |
32 | // Quick fix for labels in buttons
33 | .btn & {
34 | position: relative;
35 | top: -1px;
36 | }
37 | }
38 |
39 | // Colors
40 | // Contextual variations (linked labels get darker on :hover)
41 |
42 | .label-default {
43 | .label-variant(@label-default-bg);
44 | }
45 |
46 | .label-primary {
47 | .label-variant(@label-primary-bg);
48 | }
49 |
50 | .label-success {
51 | .label-variant(@label-success-bg);
52 | }
53 |
54 | .label-info {
55 | .label-variant(@label-info-bg);
56 | }
57 |
58 | .label-warning {
59 | .label-variant(@label-warning-bg);
60 | }
61 |
62 | .label-danger {
63 | .label-variant(@label-danger-bg);
64 | }
65 |
--------------------------------------------------------------------------------
/laradock/postgres/docker-entrypoint-initdb.d/createdb.sh.example:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copy createdb.sh.example to createdb.sh
4 | # then uncomment then set database name and username to create you need databases
5 | #
6 | # example: .env POSTGRES_USER=appuser and need db name is myshop_db
7 | #
8 | # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
9 | # CREATE USER myuser WITH PASSWORD 'mypassword';
10 | # CREATE DATABASE myshop_db;
11 | # GRANT ALL PRIVILEGES ON DATABASE myshop_db TO myuser;
12 | # EOSQL
13 | #
14 | # this sh script will auto run when the postgres container starts and the $DATA_PATH_HOST/postgres not found.
15 | #
16 | #
17 | # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
18 | # CREATE USER db1 WITH PASSWORD 'db1';
19 | # CREATE DATABASE db1;
20 | # GRANT ALL PRIVILEGES ON DATABASE db1 TO db1;
21 | # EOSQL
22 | #
23 | # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
24 | # CREATE USER db2 WITH PASSWORD 'db2';
25 | # CREATE DATABASE db2;
26 | # GRANT ALL PRIVILEGES ON DATABASE db2 TO db2;
27 | # EOSQL
28 | #
29 | # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
30 | # CREATE USER db3 WITH PASSWORD 'db3';
31 | # CREATE DATABASE db3;
32 | # GRANT ALL PRIVILEGES ON DATABASE db3 TO db3;
33 | # EOSQL
34 |
--------------------------------------------------------------------------------
/laradock/jupyterhub/start-singleuser.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Copyright (c) Jupyter Development Team.
3 | # Distributed under the terms of the Modified BSD License.
4 |
5 | set -e
6 |
7 | # set default ip to 0.0.0.0
8 | if [[ "$NOTEBOOK_ARGS $@" != *"--ip="* ]]; then
9 | NOTEBOOK_ARGS="--ip=0.0.0.0 $NOTEBOOK_ARGS"
10 | fi
11 |
12 | # handle some deprecated environment variables
13 | # from DockerSpawner < 0.8.
14 | # These won't be passed from DockerSpawner 0.9,
15 | # so avoid specifying --arg=empty-string
16 | # if [ ! -z "$NOTEBOOK_DIR" ]; then
17 | # NOTEBOOK_ARGS="--notebook-dir='$NOTEBOOK_DIR' $NOTEBOOK_ARGS"
18 | # fi
19 | if [ ! -z "$JPY_PORT" ]; then
20 | NOTEBOOK_ARGS="--port=$JPY_PORT $NOTEBOOK_ARGS"
21 | fi
22 | if [ ! -z "$JPY_USER" ]; then
23 | NOTEBOOK_ARGS="--user=$JPY_USER $NOTEBOOK_ARGS"
24 | fi
25 | if [ ! -z "$JPY_COOKIE_NAME" ]; then
26 | NOTEBOOK_ARGS="--cookie-name=$JPY_COOKIE_NAME $NOTEBOOK_ARGS"
27 | fi
28 | if [ ! -z "$JPY_BASE_URL" ]; then
29 | NOTEBOOK_ARGS="--base-url=$JPY_BASE_URL $NOTEBOOK_ARGS"
30 | fi
31 | if [ ! -z "$JPY_HUB_PREFIX" ]; then
32 | NOTEBOOK_ARGS="--hub-prefix=$JPY_HUB_PREFIX $NOTEBOOK_ARGS"
33 | fi
34 | if [ ! -z "$JPY_HUB_API_URL" ]; then
35 | NOTEBOOK_ARGS="--hub-api-url=$JPY_HUB_API_URL $NOTEBOOK_ARGS"
36 | fi
37 |
38 | NOTEBOOK_ARGS=" --allow-root --notebook-dir='/notebooks' $NOTEBOOK_ARGS"
39 |
40 | . /usr/local/bin/start.sh jupyterhub-singleuser $NOTEBOOK_ARGS $@
41 |
--------------------------------------------------------------------------------
/laradock/nginx/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM nginx:alpine
2 |
3 | LABEL maintainer="Mahmoud Zalt "
4 |
5 | COPY nginx.conf /etc/nginx/
6 |
7 | # If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
8 |
9 | ARG CHANGE_SOURCE=false
10 | RUN if [ ${CHANGE_SOURCE} = true ]; then \
11 | # Change application source from dl-cdn.alpinelinux.org to aliyun source
12 | sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
13 | ;fi
14 |
15 | RUN apk update \
16 | && apk upgrade \
17 | && apk --update add logrotate \
18 | && apk add --no-cache openssl \
19 | && apk add --no-cache bash
20 |
21 | RUN apk add --no-cache curl
22 |
23 | RUN set -x ; \
24 | addgroup -g 82 -S www-data ; \
25 | adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1
26 |
27 | ARG PHP_UPSTREAM_CONTAINER=php-fpm
28 | ARG PHP_UPSTREAM_PORT=9000
29 |
30 | # Create 'messages' file used from 'logrotate'
31 | RUN touch /var/log/messages
32 |
33 | # Copy 'logrotate' config file
34 | COPY logrotate/nginx /etc/logrotate.d/
35 |
36 | # Set upstream conf and remove the default conf
37 | RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf \
38 | && rm /etc/nginx/conf.d/default.conf
39 |
40 | ADD ./startup.sh /opt/startup.sh
41 | RUN sed -i 's/\r//g' /opt/startup.sh
42 | CMD ["/bin/bash", "/opt/startup.sh"]
43 |
44 | EXPOSE 80 81 443
45 |
--------------------------------------------------------------------------------
/resources/assets/less/bootstrap/badges.less:
--------------------------------------------------------------------------------
1 | //
2 | // Badges
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .badge {
8 | display: inline-block;
9 | min-width: 10px;
10 | padding: 3px 7px;
11 | font-size: @font-size-small;
12 | font-weight: @badge-font-weight;
13 | color: @badge-color;
14 | line-height: @badge-line-height;
15 | vertical-align: baseline;
16 | white-space: nowrap;
17 | text-align: center;
18 | background-color: @badge-bg;
19 | border-radius: @badge-border-radius;
20 |
21 | // Empty badges collapse automatically (not available in IE8)
22 | &:empty {
23 | display: none;
24 | }
25 |
26 | // Quick fix for badges in buttons
27 | .btn & {
28 | position: relative;
29 | top: -1px;
30 | }
31 | .btn-xs & {
32 | top: 0;
33 | padding: 1px 5px;
34 | }
35 |
36 | // Hover state, but only for links
37 | a& {
38 | &:hover,
39 | &:focus {
40 | color: @badge-link-hover-color;
41 | text-decoration: none;
42 | cursor: pointer;
43 | }
44 | }
45 |
46 | // Account for badges in navs
47 | .list-group-item.active > &,
48 | .nav-pills > .active > a > & {
49 | color: @badge-active-color;
50 | background-color: @badge-active-bg;
51 | }
52 | .list-group-item > & {
53 | float: right;
54 | }
55 | .list-group-item > & + & {
56 | margin-right: 5px;
57 | }
58 | .nav-pills > li > a > & {
59 | margin-left: 3px;
60 | }
61 | }
62 |
--------------------------------------------------------------------------------