forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
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 EC-CUBE#26 from onshopVN/4.0.3-jp
4.0.3 jp
- Loading branch information
Showing
1,230 changed files
with
21,418 additions
and
21,569 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,3 @@ | ||
vendor | ||
.git | ||
var |
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
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
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
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
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
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
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
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,73 @@ | ||
FROM php:7.3-apache-stretch | ||
|
||
ENV APACHE_DOCUMENT_ROOT /var/www/html | ||
|
||
RUN echo "deb http://cdn.debian.net/debian/ stretch main contrib non-free" > /etc/apt/sources.list.d/mirror.jp.list | ||
RUN echo "deb http://cdn.debian.net/debian/ stretch-updates main contrib" >> /etc/apt/sources.list.d/mirror.jp.list | ||
|
||
RUN /bin/rm /etc/apt/sources.list | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl apt-utils apt-transport-https debconf-utils gcc build-essential \ | ||
zlib1g-dev git gnupg2 unzip libfreetype6-dev libjpeg62-turbo-dev \ | ||
libpng-dev libzip-dev libicu-dev vim git ssl-cert \ | ||
&& docker-php-ext-install -j$(nproc) zip gd mysqli pdo_mysql opcache intl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && apt-get install -y libpq-dev \ | ||
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ | ||
&& docker-php-ext-install -j$(nproc) pgsql pdo_pgsql \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && apt-get install -y locales \ | ||
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ | ||
&& locale-gen | ||
|
||
RUN pecl install apcu && echo "extension=apcu.so" > /usr/local/etc/php/conf.d/apc.ini | ||
|
||
RUN if [ ! -d ${APACHE_DOCUMENT_ROOT} ]; then mkdir -p ${APACHE_DOCUMENT_ROOT} ; fi | ||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf | ||
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf | ||
|
||
RUN a2enmod rewrite | ||
RUN a2enmod headers | ||
|
||
# Enable SSL | ||
RUN a2enmod ssl | ||
RUN ln -s /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/default-ssl.conf | ||
EXPOSE 443 | ||
|
||
# Use the default production configuration | ||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" | ||
# Override with custom configuration settings | ||
COPY dockerbuild/php.ini $PHP_INI_DIR/conf.d/ | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/bin/composer | ||
|
||
COPY composer.json /tmp/composer.json | ||
COPY composer.lock /tmp/composer.lock | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
RUN composer install --no-scripts --no-autoloader --no-dev -d /tmp | ||
|
||
COPY . ${APACHE_DOCUMENT_ROOT} | ||
|
||
RUN cp -rp /tmp/vendor ${APACHE_DOCUMENT_ROOT}/vendor \ | ||
&& rm -rf /tmp/vendor | ||
|
||
WORKDIR ${APACHE_DOCUMENT_ROOT} | ||
RUN chown -R www-data:www-data ${APACHE_DOCUMENT_ROOT} | ||
RUN chown www-data:www-data /var/www | ||
|
||
USER www-data | ||
RUN composer dumpautoload -o --apcu --no-dev | ||
|
||
RUN if [ ! -f ${APACHE_DOCUMENT_ROOT}/.env ]; then \ | ||
cp -p .env.dist .env \ | ||
; fi | ||
|
||
RUN if [ ! -f ${APACHE_DOCUMENT_ROOT}/var/eccube.db ]; then \ | ||
composer run-script installer-scripts && composer run-script auto-scripts \ | ||
; fi | ||
|
||
USER root | ||
|
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
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
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
Oops, something went wrong.