Skip to content

Commit 2bc78bf

Browse files
committed
first
0 parents  commit 2bc78bf

20 files changed

+636
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.github/CODE_OF_CONDUCT.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code of Conduct
2+
3+
The Laravel Code of Conduct can be found in the [Laravel documentation](https://laravel.com/docs/contributions#code-of-conduct).

.github/CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Contribution Guide
2+
3+
The Laravel contributing guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
4+
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: "Bug report"
3+
about: 'Report a general library issue. Please ensure your version is still supported: https://laravel.com/docs/releases#support-policy'
4+
---
5+
6+
- Fortify Version: #.#.#
7+
- Laravel Version: #.#.#
8+
- PHP Version: #.#.#
9+
- Database Driver & Version:
10+
11+
### Description:
12+
13+
14+
### Steps To Reproduce:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
name: "Feature request"
3+
about: 'For ideas or feature requests: please make a pull request or open an issue'
4+
---

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Support question
4+
url: https://laravel.com/docs/contributions#support-questions
5+
about: 'This repository is only for reporting bugs. If you need help using the library, click:'
6+
- name: Documentation issue
7+
url: https://github.com/laravel/fortify
8+
about: For documentation issues, open a pull request to the readme of this repository

.github/PULL_REQUEST_TEMPLATE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!--
2+
Please only send a pull request to branches which are currently supported: https://laravel.com/docs/releases#support-policy
3+
4+
If you are unsure which branch your pull request should be sent to, please read: https://laravel.com/docs/contributions#which-branch
5+
6+
Pull requests without a descriptive title, thorough description, or tests will be closed.
7+
8+
In addition, please describe the benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.
9+
-->

.github/SECURITY.md

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Security Policy
2+
3+
**PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability).**
4+
5+
## Supported Versions
6+
7+
Only the latest major version receives security fixes.
8+
9+
## Reporting a Vulnerability
10+
11+
If you discover a security vulnerability within Laravel, please send an email to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
12+
13+
### Public PGP Key
14+
15+
```
16+
-----BEGIN PGP PUBLIC KEY BLOCK-----
17+
Version: OpenPGP v2.0.8
18+
Comment: https://sela.io/pgp/
19+
20+
xsFNBFugFSQBEACxEKhIY9IoJzcouVTIYKJfWFGvwFgbRjQWBiH3QdHId5vCrbWo
21+
s2l+4Rv03gMG+yHLJ3rWElnNdRaNdQv59+lShrZF7Bvu7Zvc0mMNmFOM/mQ/K2Lt
22+
OK/8bh6iwNNbEuyOhNQlarEy/w8hF8Yf55hBeu/rajGtcyURJDloQ/vNzcx4RWGK
23+
G3CLr8ka7zPYIjIFUvHLt27mcYFF9F4/G7b4HKpn75ICKC4vPoQSaYNAHlHQBLFb
24+
Jg/WPl93SySHLugU5F58sICs+fBZadXYQG5dWmbaF5OWB1K2XgRs45BQaBzf/8oS
25+
qq0scN8wVhAdBeYlVFf0ImDOxGlZ2suLK1BKJboR6zCIkBAwufKss4NV1R9KSUMv
26+
YGn3mq13PGme0QoIkvQkua5VjTwWfQx7wFDxZ3VQSsjIlbVyRL/Ac/hq71eAmiIR
27+
t6ZMNMP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md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Support Questions
2+
3+
The Laravel support guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions#support-questions).

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor
2+
composer.lock

.styleci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
php:
2+
preset: laravel

LICENSE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Taylor Otwell
4+
Copyright (c) Chris Fidao
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Laravel Sail
2+
3+
<p align="center">
4+
<a href="https://packagist.org/packages/laravel/sail">
5+
<img src="https://img.shields.io/packagist/dt/laravel/sail" alt="Total Downloads">
6+
</a>
7+
<a href="https://packagist.org/packages/laravel/sail">
8+
<img src="https://img.shields.io/packagist/v/laravel/sail" alt="Latest Stable Version">
9+
</a>
10+
<a href="https://packagist.org/packages/laravel/sail">
11+
<img src="https://img.shields.io/packagist/l/laravel/sail" alt="License">
12+
</a>
13+
</p>
14+
15+
## Introduction
16+
17+
Sail provides a Docker powered local development experience for Laravel that is compatible with MacOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local computer before using Sail. Sail's simple CLI means you can start building your Laravel application without any previous Docker experience.
18+
19+
Laravel Sail is inspired by and derived from [Vessel](https://github.com/shipping-docker/vessel) by [Chris Fidao](https://github.com/fideloper). If you're looking for a thorough introduction to Docker, check out Chris' course: [Shipping Docker](https://serversforhackers.com/shipping-docker).
20+
21+
## Contributing
22+
23+
Thank you for considering contributing to Breeze! You can read the contribution guide [here](.github/CONTRIBUTING.md).
24+
25+
## Code of Conduct
26+
27+
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
28+
29+
## Security Vulnerabilities
30+
31+
Please review [our security policy](https://github.com/laravel/breeze/security/policy) on how to report security vulnerabilities.
32+
33+
## License
34+
35+
Laravel Breeze is open-sourced software licensed under the [MIT license](LICENSE.md).

composer.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "laravel/docker",
3+
"description": "Docker files for running a basic Laravel application.",
4+
"keywords": ["laravel", "docker"],
5+
"license": "MIT",
6+
"support": {
7+
"issues": "https://github.com/laravel/docker/issues",
8+
"source": "https://github.com/laravel/docker"
9+
},
10+
"authors": [
11+
{
12+
"name": "Taylor Otwell",
13+
"email": "taylor@laravel.com"
14+
}
15+
],
16+
"require": {
17+
"php": "^7.3",
18+
"illuminate/contracts": "^8.0|^9.0",
19+
"illuminate/support": "^8.0|^9.0"
20+
},
21+
"require-dev": {
22+
"mockery/mockery": "^1.0",
23+
"phpunit/phpunit": "^9.3"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"Laravel\\Sail\\": "src/"
28+
}
29+
},
30+
"extra": {
31+
"branch-alias": {
32+
"dev-master": "1.x-dev"
33+
},
34+
"laravel": {
35+
"providers": [
36+
"Laravel\\Sail\\SailServiceProvider"
37+
]
38+
}
39+
},
40+
"config": {
41+
"sort-packages": true
42+
},
43+
"minimum-stability": "dev",
44+
"prefer-stable": true
45+
}

docker/Dockerfile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
FROM ubuntu:20.04
2+
3+
LABEL maintainer="Taylor Otwell"
4+
5+
ARG WWWGROUP
6+
7+
WORKDIR /var/www/html
8+
9+
ENV DEBIAN_FRONTEND noninteractive
10+
ENV TZ=UTC
11+
12+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
13+
14+
RUN apt-get update \
15+
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin \
16+
&& mkdir -p ~/.gnupg \
17+
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
18+
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C \
19+
&& apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C \
20+
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
21+
&& apt-get update \
22+
&& apt-get install -y php7.4-cli php7.4-dev \
23+
php7.4-pgsql php7.4-sqlite3 php7.4-gd \
24+
php7.4-curl php7.4-memcached \
25+
php7.4-imap php7.4-mysql php7.4-mbstring \
26+
php7.4-xml php7.4-zip php7.4-bcmath php7.4-soap \
27+
php7.4-intl php7.4-readline php7.4-pcov \
28+
php7.4-msgpack php7.4-igbinary php7.4-ldap \
29+
php7.4-redis \
30+
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
31+
&& curl -sL https://deb.nodesource.com/setup_15.x | bash - \
32+
&& apt-get install -y nodejs \
33+
&& apt-get -y autoremove \
34+
&& apt-get clean \
35+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
36+
37+
RUN setcap "cap_net_bind_service=+ep" /usr/bin/php7.4
38+
39+
RUN groupadd --force -g $WWWGROUP sail
40+
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
41+
42+
COPY start-container /usr/local/bin/start-container
43+
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
44+
COPY php.ini /etc/php/7.4/cli/conf.d/99-sail.ini
45+
RUN chmod +x /usr/local/bin/start-container
46+
47+
EXPOSE 8000
48+
49+
ENTRYPOINT ["start-container"]

docker/php.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[PHP]
2+
post_max_size = 100M
3+
upload_max_filesize = 100M
4+
variables_order = EGPCS

docker/start-container

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
if [ ! -z "$WWWUSER" ]; then
4+
usermod -u $WWWUSER sail
5+
fi
6+
7+
if [ ! -d /.composer ]; then
8+
mkdir /.composer
9+
fi
10+
11+
chmod -R ugo+rw /.composer
12+
13+
if [ $# -gt 0 ];then
14+
exec gosu $WWWUSER "$@"
15+
else
16+
/usr/bin/supervisord
17+
fi

docker/supervisord.conf

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[supervisord]
2+
nodaemon=true
3+
4+
[program:php]
5+
command=/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan serve --host=0.0.0.0 --port=80
6+
user=sail
7+
environment=LARAVEL_SAIL="1"
8+
stdout_logfile=/dev/stdout
9+
stdout_logfile_maxbytes=0
10+
stderr_logfile=/dev/stderr
11+
stderr_logfile_maxbytes=0

0 commit comments

Comments
 (0)