Finish build docker

This commit is contained in:
khanh97dev 2023-11-03 16:10:21 +07:00
parent 7314dc9d3f
commit 23a7e0acbd
20160 changed files with 1053290 additions and 1974957 deletions

0
.editorconfig Normal file → Executable file
View File

0
.env Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.htaccess Normal file → Executable file
View File

0
.htaccess.sample Normal file → Executable file
View File

0
.php-cs-fixer.dist.php Normal file → Executable file
View File

2
.user.ini Normal file → Executable file
View File

@ -1,4 +1,4 @@
memory_limit = 756M
max_execution_time = 18000
session.auto_start = off
suhosin.session.cryptua = off
suhosin.session.cryptua = off

0
CHANGELOG.md Normal file → Executable file
View File

0
COPYING.txt Normal file → Executable file
View File

34
Dockerfile Normal file → Executable file
View File

@ -10,6 +10,27 @@ RUN apk add --no-cache \
zip \
composer
# APACHE2
RUN apk add --no-cache \
apache2 \
apache2-utils \
apache2-ssl \
build-base \
autoconf \
curl \
tar \
libtool \
pcre-dev \
libxml2-dev \
openssl \
bison \
re2c \
file \
libressl-dev
# config httpd.conf
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /etc/apache2/httpd.conf
# Install PHP and extenions
RUN apk add --no-cache \
php81-common \
php81-zip \
@ -34,10 +55,17 @@ RUN apk add --no-cache \
php81-sockets \
php81-xml \
php81-xmlwriter \
php81-session
php81-session \
php81-apache2
# config php.ini
RUN sed -i 's/memory_limit = 128M/memory_limit = -1/' /etc/php81/php.ini
# Working file
WORKDIR /var/www/html
# Composer
RUN composer install
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
WORKDIR /root/magento2
ENTRYPOINT ["/docker-entrypoint.sh"]

0
Gruntfile.js.sample Normal file → Executable file
View File

0
LICENSE.txt Normal file → Executable file
View File

0
LICENSE_AFL.txt Normal file → Executable file
View File

0
SECURITY.md Normal file → Executable file
View File

8
apache.conf Executable file
View File

@ -0,0 +1,8 @@
<VirtualHost *:80>
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

0
app/.htaccess Normal file → Executable file
View File

0
app/autoload.php Normal file → Executable file
View File

0
app/bootstrap.php Normal file → Executable file
View File

0
app/etc/NonComposerComponentRegistration.php Normal file → Executable file
View File

0
app/etc/config.php Normal file → Executable file
View File

0
app/etc/db_schema.xml Normal file → Executable file
View File

0
app/etc/di.xml Normal file → Executable file
View File

12
app/etc/env.php Normal file → Executable file
View File

@ -1,18 +1,18 @@
<?php
return [
'backend' => [
'frontName' => 'admin_1hea8y'
'frontName' => 'admin_1gvvti'
],
'cache' => [
'graphql' => [
'id_salt' => 'iGJvNgD34aZK2294b6y71X3lAQBMxxFu'
'id_salt' => 'WHSwq0cP7eDaC3QpBrsmRjCdGejTKl8c'
],
'frontend' => [
'default' => [
'id_prefix' => '538_'
'id_prefix' => '69d_'
],
'page_cache' => [
'id_prefix' => '538_'
'id_prefix' => '69d_'
]
],
'allow_parallel_generation' => false
@ -24,7 +24,7 @@ return [
'consumers_wait_for_messages' => 1
],
'crypt' => [
'key' => 'dbaca52abff89944c1a1a1052c1b1317'
'key' => 'f1ec5abba5c959e4b6530aab6e1b55de'
],
'db' => [
'table_prefix' => '',
@ -80,6 +80,6 @@ return [
'localhost'
],
'install' => [
'date' => 'Thu, 02 Nov 2023 09:43:14 +0000'
'date' => 'Fri, 03 Nov 2023 08:15:42 +0000'
]
];

85
app/etc/env.php.bk Executable file
View File

@ -0,0 +1,85 @@
<?php
return [
'backend' => [
'frontName' => 'admin_1hea8y'
],
'cache' => [
'graphql' => [
'id_salt' => 'iGJvNgD34aZK2294b6y71X3lAQBMxxFu'
],
'frontend' => [
'default' => [
'id_prefix' => '538_'
],
'page_cache' => [
'id_prefix' => '538_'
]
],
'allow_parallel_generation' => false
],
'remote_storage' => [
'driver' => 'file'
],
'queue' => [
'consumers_wait_for_messages' => 1
],
'crypt' => [
'key' => 'dbaca52abff89944c1a1a1052c1b1317'
],
'db' => [
'table_prefix' => '',
'connection' => [
'default' => [
'host' => 'mysql',
'dbname' => 'magento',
'username' => 'magento',
'password' => 'secret',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
'driver_options' => [
1014 => false
]
]
]
],
'resource' => [
'default_setup' => [
'connection' => 'default'
]
],
'x-frame-options' => 'SAMEORIGIN',
'MAGE_MODE' => 'default',
'session' => [
'save' => 'files'
],
'lock' => [
'provider' => 'db'
],
'directories' => [
'document_root_is_pub' => true
],
'cache_types' => [
'config' => 1,
'layout' => 1,
'block_html' => 1,
'collections' => 1,
'reflection' => 1,
'db_ddl' => 1,
'compiled_config' => 1,
'eav' => 1,
'customer_notification' => 1,
'config_integration' => 1,
'config_integration_api' => 1,
'full_page' => 1,
'config_webservice' => 1,
'translate' => 1
],
'downloadable_domains' => [
'localhost'
],
'install' => [
'date' => 'Thu, 02 Nov 2023 09:43:14 +0000'
]
];

0
app/etc/registration_globlist.php Normal file → Executable file
View File

0
app/etc/vendor_path.php Normal file → Executable file
View File

0
auth.json Normal file → Executable file
View File

0
auth.json.sample Normal file → Executable file
View File

0
bin/.htaccess Normal file → Executable file
View File

0
composer.json Normal file → Executable file
View File

0
composer.lock generated Normal file → Executable file
View File

0
dev/.htaccess Normal file → Executable file
View File

0
dev/tests/.gitignore vendored Normal file → Executable file
View File

0
dev/tests/acceptance/.gitignore vendored Normal file → Executable file
View File

0
dev/tests/acceptance/.htaccess.sample Normal file → Executable file
View File

0
dev/tests/acceptance/staticRuleset.json Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_bootstrap.php Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/BB-Products.csv Normal file → Executable file
View File

View File

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
dev/tests/acceptance/tests/_data/LargerThan2MB.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

0
dev/tests/acceptance/tests/_data/adobe-base.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

0
dev/tests/acceptance/tests/_data/adobe-small.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
dev/tests/acceptance/tests/_data/adobe-thumb.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

0
dev/tests/acceptance/tests/_data/bmp.bmp Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

View File

View File

0
dev/tests/acceptance/tests/_data/catalog_products.csv Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/dump.sql Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/empty.jpg Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/gif.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 218 KiB

0
dev/tests/acceptance/tests/_data/ico.ico Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 169 KiB

After

Width:  |  Height:  |  Size: 169 KiB

0
dev/tests/acceptance/tests/_data/importSpecChars.csv Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

0
dev/tests/acceptance/tests/_data/import_tax_rates.csv Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/import_updated.csv Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/jpg.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

0
dev/tests/acceptance/tests/_data/large.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 13 MiB

0
dev/tests/acceptance/tests/_data/lorem_ipsum.docx Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/lorem_ipsum.txt Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/m-logo.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
dev/tests/acceptance/tests/_data/m.agento-logo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

0
dev/tests/acceptance/tests/_data/magento-again.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

0
dev/tests/acceptance/tests/_data/magento-logo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

0
dev/tests/acceptance/tests/_data/magento-logo_2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
dev/tests/acceptance/tests/_data/magento.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

0
dev/tests/acceptance/tests/_data/magento2.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

0
dev/tests/acceptance/tests/_data/magento3.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
dev/tests/acceptance/tests/_data/magentoStage.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

0
dev/tests/acceptance/tests/_data/medium.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 947 KiB

After

Width:  |  Height:  |  Size: 947 KiB

0
dev/tests/acceptance/tests/_data/not-a.png Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/png.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

View File

0
dev/tests/acceptance/tests/_data/small.jpg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 964 B

After

Width:  |  Height:  |  Size: 964 B

0
dev/tests/acceptance/tests/_data/svg.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
dev/tests/acceptance/tests/_data/table_rate_30895.csv Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_data/tablerates.csv Normal file → Executable file
View File

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

0
dev/tests/acceptance/tests/_data/usa_tablerates.csv Normal file → Executable file
View File

0
dev/tests/acceptance/tests/_suite/suite.xml.sample Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More