-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from shopware/add-new-version-of-recipe
feat: add new version of docker recipe
- Loading branch information
Showing
6 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
shopware: | ||
api: | ||
jwt_key: | ||
use_app_secret: true | ||
auto_update: | ||
enabled: false | ||
store: | ||
frw: false | ||
admin_worker: | ||
enable_admin_worker: false | ||
enable_notification_worker: false | ||
enable_queue_stats_worker: false | ||
mail: | ||
update_mail_variables_on_send: false | ||
increment: | ||
user_activity: | ||
type: 'array' | ||
message_queue: | ||
type: 'array' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
monolog: | ||
handlers: | ||
main: | ||
type: fingers_crossed | ||
action_level: error | ||
handler: nested | ||
excluded_http_codes: [404, 405] | ||
buffer_size: 50 | ||
nested: | ||
type: stream | ||
path: php://stderr | ||
level: error | ||
formatter: monolog.formatter.json | ||
console: | ||
type: console | ||
process_psr_3_messages: false | ||
channels: ["!event", "!doctrine"] | ||
business_event_handler_buffer: | ||
level: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
parameters: | ||
env(TRUSTED_PROXIES): '' | ||
|
||
framework: | ||
trusted_proxies: '%env(TRUSTED_PROXIES)%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#syntax=docker/dockerfile:1.4 | ||
|
||
# pin versions | ||
FROM shopware/docker-base:8.3 as base-image | ||
FROM ghcr.io/friendsofshopware/shopware-cli:latest-php-8.3 as shopware-cli | ||
|
||
# build | ||
|
||
FROM shopware-cli as build | ||
|
||
ARG SHOPWARE_PACKAGES_TOKEN | ||
|
||
ADD . /src | ||
WORKDIR /src | ||
|
||
RUN --mount=type=secret,id=composer_auth,dst=/src/auth.json \ | ||
--mount=type=cache,target=/root/.composer \ | ||
--mount=type=cache,target=/root/.npm \ | ||
/usr/local/bin/entrypoint.sh shopware-cli project ci /src | ||
|
||
# build final image | ||
|
||
FROM base-image | ||
|
||
COPY --from=build --chown=82 --link /src /var/www/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"copy-from-recipe": { | ||
"docker/": "docker/", | ||
"config/": "%CONFIG_DIR%/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* <fg=blue>Setup</> | ||
This recipe has created a <comment>docker/Dockerfile</comment> with an example file to build a Shopware Docker image. | ||
You can build it with <comment>docker build -t <name> -f docker/Dockerfile .</comment>. | ||
Make sure you to set a correct `APP_SECRET`, you can generate one with `openssl rand -hex 128` | ||
See https://github.com/shopware/docker for the complete documentation to configure things. |