Skip to content

Commit 2b2762b

Browse files
committed
feat: setup redis
1 parent 367f42e commit 2b2762b

29 files changed

+1454
-1229
lines changed

.env

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
2-
###> symfony/messenger ###
3-
# Choose one of the transports below
4-
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
5-
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
6-
# doctrine://default?auto_setup=0
7-
###< symfony/messenger ###
8-
9-
###> symfony/mailer ###
10-
# MAILER_DSN=null://null
11-
###< symfony/mailer ###
12-
13-
###> symfony/lock ###
14-
# Choose one of the stores below
15-
# postgresql+advisory://db_user:db_password@localhost/db_name
16-
LOCK_DSN=flock
17-
###< symfony/lock ###
1+
# In all environments, the following files are loaded if they exist,
2+
# the latter taking precedence over the former:
3+
#
4+
# * .env contains default values for the environment variables needed by the app
5+
# * .env.local uncommitted file with local overrides
6+
# * .env.$APP_ENV committed environment-specific defaults
7+
# * .env.$APP_ENV.local uncommitted environment-specific overrides
8+
#
9+
# Real environment variables win over .env files.
10+
#
11+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12+
# https://symfony.com/doc/current/configuration/secrets.html
13+
#
14+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
15+
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
1816

1917
###> shopware/core ###
2018
APP_ENV=prod
2119
APP_URL=http://127.0.0.1:8000
22-
APP_SECRET=f11969de485917cc1a2191b83a465e98
23-
INSTANCE_ID=85856def86f682298c86af21dc1f45e0
20+
APP_SECRET=5429f611628a5f6d7a45aea0f6c4b4f0
21+
INSTANCE_ID=2a9175b1c4e812e5bd1233e2eb5912db
2422
BLUE_GREEN_DEPLOYMENT=0
2523
DATABASE_URL=mysql://root:root@localhost/shopware
2624
# With Shopware 6.4.17.0 the MAILER_DSN variable will be used in this template instead of MAILER_URL
@@ -40,3 +38,20 @@ STOREFRONT_PROXY_URL=http://localhost
4038
SHOPWARE_HTTP_CACHE_ENABLED=1
4139
SHOPWARE_HTTP_DEFAULT_TTL=7200
4240
###< shopware/storefront ###
41+
42+
###> symfony/lock ###
43+
# Choose one of the stores below
44+
# postgresql+advisory://db_user:db_password@localhost/db_name
45+
LOCK_DSN=flock
46+
###< symfony/lock ###
47+
48+
###> symfony/mailer ###
49+
# MAILER_DSN=null://null
50+
###< symfony/mailer ###
51+
52+
###> symfony/messenger ###
53+
# Choose one of the transports below
54+
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
55+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
56+
# doctrine://default?auto_setup=0
57+
###< symfony/messenger ###

.gitignore

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,15 @@
44
.env.local
55
.env.local.php
66
.env.*.local
7-
custom/*
8-
!custom/plugins/.gitkeep
9-
!custom/static-plugins/
10-
/public/fonts/*
11-
!/public/fonts/.gitkeep
12-
/public/img/*
13-
!/public/img/.gitkeep
14-
/public/css/*
15-
!/public/css/.gitkeep
16-
/public/js/*
17-
!/public/js/.gitkeep
7+
/public/bundles/*
188
/public/media/*
19-
!/public/media/.gitkeep
209
/public/theme/*
21-
!/public/theme/.gitkeep
2210
/public/thumbnail/*
23-
!/public/thumbnail/.gitkeep
24-
/public/assets/*
2511
/public/sitemap/*
26-
!/public/sitemap/.gitkeep
27-
/public/bundles/*
28-
!/public/bundles/.gitkeep
2912
/files/*
13+
!/files/.htaccess
3014
/var/*
31-
!/var/log/.gitkeep
32-
!/var/cache/.gitkeep
15+
!/var/.htaccess
3316
/auth.json
3417
/install.lock
3518
public/asset-manifest.json

bin/build-administration.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

3+
unset CDPATH
34
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
45

56
export PROJECT_ROOT="${PROJECT_ROOT:-"$(dirname "$CWD")"}"
@@ -31,7 +32,7 @@ fi
3132

3233
BIN_TOOL="${CWD}/console"
3334

34-
if [[ ${CI-""} ]]; then
35+
if [[ ${CI:-""} ]]; then
3536
BIN_TOOL="${CWD}/ci"
3637

3738
if [[ ! -x "$BIN_TOOL" ]]; then
@@ -40,7 +41,7 @@ if [[ ${CI-""} ]]; then
4041
fi
4142

4243
# build admin
43-
[[ ${SHOPWARE_SKIP_BUNDLE_DUMP-""} ]] || "${BIN_TOOL}" bundle:dump
44+
[[ ${SHOPWARE_SKIP_BUNDLE_DUMP:-""} ]] || "${BIN_TOOL}" bundle:dump
4445
"${BIN_TOOL}" feature:dump || true
4546

4647
if [[ $(command -v jq) ]]; then
@@ -56,7 +57,7 @@ if [[ $(command -v jq) ]]; then
5657

5758
skippingEnvVarName="SKIP_$(echo "$name" | sed -e 's/\([a-z]\)/\U\1/g' -e 's/-/_/g')"
5859

59-
if [[ ${!skippingEnvVarName-""} ]]; then
60+
if [[ ${!skippingEnvVarName:-""} ]]; then
6061
continue
6162
fi
6263

@@ -74,11 +75,11 @@ fi
7475
(cd "${ADMIN_ROOT}"/Resources/app/administration && npm install --no-audit --prefer-offline)
7576

7677
# Dump entity schema
77-
if [[ -z "${SHOPWARE_SKIP_ENTITY_SCHEMA_DUMP-""}" ]] && [[ -f "${ADMIN_ROOT}"/Resources/app/administration/scripts/entitySchemaConverter/entity-schema-converter.ts ]]; then
78+
if [[ -z "${SHOPWARE_SKIP_ENTITY_SCHEMA_DUMP:-""}" ]] && [[ -f "${ADMIN_ROOT}"/Resources/app/administration/scripts/entitySchemaConverter/entity-schema-converter.ts ]]; then
7879
mkdir -p "${ADMIN_ROOT}"/Resources/app/administration/test/_mocks_
7980
"${BIN_TOOL}" -e prod framework:schema -s 'entity-schema' "${ADMIN_ROOT}"/Resources/app/administration/test/_mocks_/entity-schema.json
8081
(cd "${ADMIN_ROOT}"/Resources/app/administration && npm run convert-entity-schema)
8182
fi
8283

8384
(cd "${ADMIN_ROOT}"/Resources/app/administration && npm run build)
84-
[[ ${SHOPWARE_SKIP_ASSET_COPY-""} ]] ||"${BIN_TOOL}" assets:install
85+
[[ ${SHOPWARE_SKIP_ASSET_COPY:-""} ]] ||"${BIN_TOOL}" assets:install

bin/build-storefront.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

3+
unset CDPATH
34
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
45

56
set -euo pipefail
@@ -15,7 +16,7 @@ fi
1516

1617
BIN_TOOL="${CWD}/console"
1718

18-
if [[ ${CI-""} ]]; then
19+
if [[ ${CI:-""} ]]; then
1920
BIN_TOOL="${CWD}/ci"
2021

2122
if [[ ! -x "$BIN_TOOL" ]]; then
@@ -24,8 +25,8 @@ if [[ ${CI-""} ]]; then
2425
fi
2526

2627
# build storefront
27-
[[ ${SHOPWARE_SKIP_BUNDLE_DUMP-""} ]] || "${BIN_TOOL}" bundle:dump
28-
[[ ${SHOPWARE_SKIP_FEATURE_DUMP-""} ]] || "${BIN_TOOL}" feature:dump
28+
[[ ${SHOPWARE_SKIP_BUNDLE_DUMP:-""} ]] || "${BIN_TOOL}" bundle:dump
29+
[[ ${SHOPWARE_SKIP_FEATURE_DUMP:-""} ]] || "${BIN_TOOL}" feature:dump
2930

3031
if [[ $(command -v jq) ]]; then
3132
OLDPWD=$(pwd)
@@ -40,7 +41,7 @@ if [[ $(command -v jq) ]]; then
4041

4142
skippingEnvVarName="SKIP_$(echo "$name" | sed -e 's/\([a-z]\)/\U\1/g' -e 's/-/_/g')"
4243

43-
if [[ ${!skippingEnvVarName-""} ]]; then
44+
if [[ ${!skippingEnvVarName:-""} ]]; then
4445
continue
4546
fi
4647

@@ -58,5 +59,5 @@ fi
5859
npm --prefix "${STOREFRONT_ROOT}"/Resources/app/storefront install --no-audit --prefer-offline
5960
node "${STOREFRONT_ROOT}"/Resources/app/storefront/copy-to-vendor.js
6061
npm --prefix "${STOREFRONT_ROOT}"/Resources/app/storefront run production
61-
[[ ${SHOPWARE_SKIP_ASSET_COPY-""} ]] ||"${BIN_TOOL}" assets:install
62-
[[ ${SHOPWARE_SKIP_THEME_COMPILE-""} ]] || "${BIN_TOOL}" theme:compile
62+
[[ ${SHOPWARE_SKIP_ASSET_COPY:-""} ]] ||"${BIN_TOOL}" assets:install
63+
[[ ${SHOPWARE_SKIP_THEME_COMPILE:-""} ]] || "${BIN_TOOL}" theme:compile

bin/ci

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
45
use Shopware\Core\Framework\Plugin\KernelPluginLoader\ComposerPluginLoader;
56
use Shopware\Core\HttpKernel;
67
use Symfony\Bundle\FrameworkBundle\Console\Application;
@@ -29,8 +30,6 @@ return static function (array &$context) {
2930
$env = $input->getParameterOption(['--env', '-e'], $context['APP_ENV'] ?? 'prod', true);
3031
$debug = ($context['APP_DEBUG'] ?? ($env !== 'prod')) && !$input->hasParameterOption('--no-debug', true);
3132

32-
$pluginLoader = new ComposerPluginLoader($classLoader, null);
33-
3433
if ($input->getFirstArgument() === 'system:install') {
3534
$context['INSTALL'] = true;
3635
}
@@ -40,14 +39,24 @@ return static function (array &$context) {
4039
$_SERVER['DATABASE_URL'] = 'mysql://_placeholder.test';
4140
}
4241

43-
$kernel = new HttpKernel($env, $debug, $classLoader);
44-
$kernel->setPluginLoader($pluginLoader);
42+
if (method_exists(KernelFactory::class, "create")) {
43+
$kernel = KernelFactory::create(
44+
environment: $env,
45+
debug: $debug,
46+
classLoader: $classLoader,
47+
pluginLoader: new ComposerPluginLoader($classLoader, null)
48+
);
49+
} else {
50+
$kernel = new HttpKernel($env, $debug, $classLoader);
51+
$kernel->setPluginLoader(new ComposerPluginLoader($classLoader, null));
52+
$kernel = $kernel->getKernel();
53+
}
4554

46-
$application = new Application($kernel->getKernel());
47-
$kernel->getKernel()->boot();
55+
$application = new Application($kernel);
56+
$kernel->boot();
4857

4958
$application->setName('Shopware');
50-
$application->setVersion($kernel->getKernel()->getContainer()->getParameter('kernel.shopware_version'));
59+
$application->setVersion($kernel->getContainer()->getParameter('kernel.shopware_version'));
5160

5261
return $application;
5362
};

bin/console

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Shopware\Core\Framework\Adapter\Kernel\KernelFactory;
45
use Shopware\Core\Framework\Plugin\KernelPluginLoader\DbalKernelPluginLoader;
56
use Shopware\Core\Framework\Plugin\KernelPluginLoader\StaticKernelPluginLoader;
67
use Shopware\Core\HttpKernel;
78
use Shopware\Core\Kernel;
89
use Symfony\Bundle\FrameworkBundle\Console\Application;
910
use Symfony\Component\Console\Input\ArgvInput;
1011

12+
$envFile = __DIR__ . '/../.env';
13+
1114
if (!file_exists(__DIR__ . '/../.env') && !file_exists(__DIR__ . '/../.env.dist') && !file_exists(__DIR__ . '/../.env.local.php')) {
1215
$_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
1316
}
@@ -44,14 +47,24 @@ return static function (array &$context) {
4447
$pluginLoader = new DbalKernelPluginLoader($classLoader, null, \Shopware\Core\Kernel::getConnection());
4548
}
4649

47-
$kernel = new HttpKernel($env, $debug, $classLoader);
48-
$kernel->setPluginLoader($pluginLoader);
50+
if (method_exists(KernelFactory::class, "create")) {
51+
$kernel = KernelFactory::create(
52+
environment: $env,
53+
debug: $debug,
54+
classLoader: $classLoader,
55+
pluginLoader: $pluginLoader
56+
);
57+
} else {
58+
$kernel = new HttpKernel($env, $debug, $classLoader);
59+
$kernel->setPluginLoader($pluginLoader);
60+
$kernel = $kernel->getKernel();
61+
}
4962

50-
$application = new Application($kernel->getKernel());
51-
$kernel->getKernel()->boot();
63+
$application = new Application($kernel);
64+
$kernel->boot();
5265

5366
$application->setName('Shopware');
54-
$application->setVersion($kernel->getKernel()->getContainer()->getParameter('kernel.shopware_version'));
67+
$application->setVersion($kernel->getContainer()->getParameter('kernel.shopware_version'));
5568

5669
return $application;
5770
};

bin/watch-administration.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export APP_URL
2424

2525
BIN_TOOL="${CWD}/console"
2626

27-
[[ ${SHOPWARE_SKIP_BUNDLE_DUMP-""} ]] || "${BIN_TOOL}" bundle:dump
27+
[[ ${SHOPWARE_SKIP_BUNDLE_DUMP:-""} ]] || "${BIN_TOOL}" bundle:dump
2828
"${BIN_TOOL}" feature:dump || true
2929

3030
if [[ $(command -v jq) ]]; then
@@ -40,7 +40,7 @@ if [[ $(command -v jq) ]]; then
4040

4141
skippingEnvVarName="SKIP_$(echo "$name" | sed -e 's/\([a-z]\)/\U\1/g' -e 's/-/_/g')"
4242

43-
if [[ ${!skippingEnvVarName-""} ]]; then
43+
if [[ ${!skippingEnvVarName:-""} ]]; then
4444
continue
4545
fi
4646

@@ -60,7 +60,7 @@ if [ ! -d vendor/shopware/administration/Resources/app/administration/node_modul
6060
fi
6161

6262
# Dump entity schema
63-
if [[ -z "${SHOPWARE_SKIP_ENTITY_SCHEMA_DUMP-""}" ]] && [[ -f "${ADMIN_ROOT}"/Resources/app/administration/scripts/entitySchemaConverter/entity-schema-converter.ts ]]; then
63+
if [[ -z "${SHOPWARE_SKIP_ENTITY_SCHEMA_DUMP:-""}" ]] && [[ -f "${ADMIN_ROOT}"/Resources/app/administration/scripts/entitySchemaConverter/entity-schema-converter.ts ]]; then
6464
mkdir -p "${ADMIN_ROOT}"/Resources/app/administration/test/_mocks_
6565
"${BIN_TOOL}" -e prod framework:schema -s 'entity-schema' "${ADMIN_ROOT}"/Resources/app/administration/test/_mocks_/entity-schema.json
6666
(cd "${ADMIN_ROOT}"/Resources/app/administration && npm run convert-entity-schema)

bin/watch-storefront.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [[ $(command -v jq) ]]; then
4040

4141
skippingEnvVarName="SKIP_$(echo "$name" | sed -e 's/\([a-z]\)/\U\1/g' -e 's/-/_/g')"
4242

43-
if [[ ${!skippingEnvVarName-""} ]]; then
43+
if [[ ${!skippingEnvVarName:-""} ]]; then
4444
continue
4545
fi
4646

compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ x-environment: &shopware
77
APP_SECRET: 'test'
88
JWT_PRIVATE_KEY: 'LS0tLS1CRUdJTiBFTkNSWVBURUQgUFJJVkFURSBLRVktLS0tLQpNSUlGSERCT0Jna3Foa2lHOXcwQkJRMHdRVEFwQmdrcWhraUc5dzBCQlF3d0hBUUlFOE5rWmE0ck1PVUNBZ2dBCk1Bd0dDQ3FHU0liM0RRSUpCUUF3RkFZSUtvWklodmNOQXdjRUNQeHVabVIrWWV6QUJJSUV5QVVPM0pBcjV5K0QKTDRvTzRGM0JlL1Z1Slp5QlRPRFdQcU1BNzZ2SUF4K3lDUmZBTVIxRWw4MlNwRUdiSUZVSTA0VTRqUERTeER6aAoxd2dkemQyZHJSMjl2UCtKdjl3ekhjbDBib3g1dnd0ZmFxdEdFcjg0UnQ5aTl5aHpINkJ3MnZMQ21NQVNac0pPCjVrNEdERnhSTDhudWxTVXZtcjA1RUNnVEdQMndraXMzRThtRTU0Q3UrSlpLVzFwN0lkcmdJd3BSSWwwNUhLWVAKSFRGbGJaNURpb3dFelF3Qm42K25TbE40OUJneE1ZM1cxdkhrWTRDaVdZNUJTOENYcHoweGRvNnBzSTRuZ2dpLwpId2xBTVpDVGQvdFZnMW5VMkdRcGNRTkpPZm1TSW0xcWlNeGpSbE5iV2tIbmMvMkwya3AveWs5cFo4aTIwTFhrCnYxZHVHNUZvclRsL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NnVIWjd3b1VQYXZXTG4KMldybHNIUmQ0S2wwNnpIdzVNelE2bVlqeDI5L2NINkNrbjNNcXVNQW9qTEE4alJLSGVxQ05OSUh2cnkwRnByUQoyaG5VUDdMZThlbU1FeUJtTzBGeHoyYVdsVEo4d3FmVDdMRUYyNVJOaERoNyswc3JJSC9RcnlpRHhVZnBvZTBpCkNLNUVpZVdHMXloeXhMMUZJU2JTVmIvRGZaWHo3NGYzMWp0VWpEaVJuWjF2U0UxNDNGKzdUaFV3alBra0pYcVEKQlFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg=='
10+
PHP_SESSION_HANDLER: redis
11+
PHP_SESSION_SAVE_PATH: 'tcp://cache:6379/1'
1012
volumes:
1113
- files:/var/www/html/files
1214
- theme:/var/www/html/public/theme
@@ -84,6 +86,9 @@ services:
8486
init:
8587
condition: service_completed_successfully
8688
entrypoint: [ "php", "bin/console", "scheduled-task:run" ]
89+
90+
cache:
91+
image: valkey/valkey:latest
8792
volumes:
8893
mysql-data:
8994
files:

composer.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
"type": "project",
55
"require": {
66
"composer-runtime-api": "^2.0",
7-
"shopware/administration": "6.5.8.2",
8-
"shopware/core": "6.5.8.2",
7+
"shopware/administration": "*",
8+
"shopware/core": "6.5.8.*",
99
"shopware/deployment-helper": "^0.0.4",
1010
"shopware/docker": "^0.1.0",
11-
"shopware/elasticsearch": "6.5.8.2",
12-
"shopware/storefront": "6.5.8.2",
13-
"symfony/flex": "~2"
11+
"shopware/elasticsearch": "*",
12+
"shopware/storefront": "*",
13+
"symfony/flex": "~2",
14+
"symfony/redis-messenger": "^7.1"
1415
},
1516
"repositories": [
1617
{
@@ -59,10 +60,8 @@
5960
"extra": {
6061
"symfony": {
6162
"allow-contrib": true,
62-
"endpoint": [
63-
"https://raw.githubusercontent.com/shopware/recipes/flex/main/index.json",
64-
"flex://defaults"
65-
]
63+
"endpoint": ["https://raw.githubusercontent.com/shopware/recipes/flex/main/index.json", "flex://defaults"],
64+
"docker": false
6665
}
6766
}
6867
}

0 commit comments

Comments
 (0)