From f85543ba65ffa28df5862a0f81586f833a33e5fb Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Thu, 25 Nov 2021 12:58:57 +0200 Subject: [PATCH 1/6] Delete Dockerfile --- Dockerfile | 146 ----------------------------------------------------- 1 file changed, 146 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 925c29594..000000000 --- a/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -FROM debian:stretch-slim - -MAINTAINER Nosto "platforms@nosto.com" - -ENV DEBIAN_FRONTEND noninteractive - -# Do not install suggested dependencies -RUN echo -n "APT::Install-Recommends \"false\";\nAPT::Install-Suggests \"false\";" \ - | tee /etc/apt/apt.conf - -# Enable access to metadata and packages using https -RUN apt-get update && \ - apt-get -y -qq install apt-transport-https - -# Setup locale -RUN apt-get update && \ - apt-get -y -qq upgrade && \ - apt-get -y -qq install apt-utils locales && \ - sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \ - ln -sf /etc/locale.alias /usr/share/locale/locale.alias && \ - locale-gen && \ - apt-get -y -qq clean - -ENV LANGUAGE en_US.UTF-8 -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 -ENV TERM xterm - -# Environment variables to force the extension to connect to a specified instance -ENV NOSTO_SERVER_URL connect.staging.nosto.com -ENV NOSTO_API_BASE_URL https://api.staging.nosto.com -ENV NOSTO_OAUTH_BASE_URL https://my.staging.nosto.com/oauth -ENV NOSTO_WEB_HOOK_BASE_URL https://my.staging.nosto.com -ENV NOSTO_IFRAME_ORIGIN_REGEXP .* - -ENV MYSQL_ENV_MYSQL_DATABASE magento2 -ENV MYSQL_ENV_MYSQL_USER root -ENV MYSQL_ENV_MYSQL_ROOT root -ENV MAGENTO_ADMIN_USER admin -ENV MAGENTO_ADMIN_PASSWORD Admin12345 -ENV COMPOSER_ALLOW_SUPERUSER 1 - -# Satis credentials for repo.magento.com to download the community edtition -ARG repouser=569521a9babbeda71b5cb25ce40168a3 -ARG repopass=ef77d5e321fec542f3102e2059f3d192 - -RUN groupadd -r plugins -g 113 && \ - useradd -ms /bin/bash -u 113 -r -g plugins plugins && \ - usermod -a -G www-data plugins - -# Add php-7.1 Source List -RUN apt-get -y -qq install lsb-release ca-certificates wget -RUN wget -4 -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg -RUN sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' -RUN apt-get -y -qq update - -# Install all core dependencies required for setting up Apache and PHP at least -RUN apt-get -y -qq install unzip libfreetype6-dev libjpeg-dev \ - libmcrypt-dev libreadline-dev libpng-dev libicu-dev default-mysql-client \ - libmcrypt-dev libxml2-dev libxslt1-dev vim nano git tree curl \ - supervisor ca-certificates && \ - apt-get -y -qq clean - -# Install Apache, MySQL and all the required development and prod PHP modules -RUN apt-get -y -qq install apache2 php7.1 php7.1-common default-mysql-client-core \ - default-mysql-server-core default-mysql-server php7.1-dev \ - php7.1-mcrypt php7.1-xsl php7.1-zip php7.1-bcmath php7.1-intl php7.1-gd \ - php7.1-curl php7.1-mbstring php7.1-mysql php7.1-soap php-xml php7.1-xml && \ - apt-get -y clean - -# Upgrade AST extension -RUN apt-get -y -qq install build-essential php-pear && \ - pecl install ast-0.1.6 && \ - apt-get purge -y build-essential && \ - apt-get -y clean - -# Enable AST extension -RUN echo "extension=ast.so" >> /etc/php/7.1/cli/php.ini - -RUN a2enmod rewrite && phpenmod soap && \ - a2dissite 000-default.conf - -RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && \ - php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ - php -r "unlink('composer-setup.php');" - -RUN service mysql start && \ - mysql -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('root');" && \ - mysql -h localhost -uroot -proot -e "CREATE SCHEMA IF NOT EXISTS magento2" && \ - cd /var/www/html && \ - composer config --global repositories.0 composer https://repo.magento.com && \ - composer config --global http-basic.repo.magento.com $repouser $repopass && \ - composer create-project magento/community-edition=2.3.2 && \ - cd community-edition && \ - composer update && \ - composer config --unset minimum-stability && \ - composer config repositories.0 composer https://repo.magento.com && \ - composer config http-basic.repo.magento.com $repouser $repopass && \ - chmod +x bin/magento && \ - bin/magento setup:install \ - --timezone "Europe/Helsinki" \ - --currency "EUR" \ - --db-host "localhost" \ - --db-name "magento2" \ - --db-user "root" \ - --db-password "root" \ - --base-url "http://localhost/community-edition/" \ - --use-rewrites 1 \ - --use-secure 0 \ - --base-url-secure "https://localhost/community-edition/" \ - --use-secure-admin 0 \ - --admin-firstname "Admin" \ - --admin-lastname "User" \ - --admin-email "admin@nosto.com" \ - --admin-user "admin" \ - --admin-password "Admin12345" \ - --backend-frontname "admin" && \ - bin/magento deploy:mode:set --skip-compilation production && \ - bin/magento setup:upgrade && \ - bin/magento setup:di:compile && \ - service mysql stop && \ - chown -R www-data:www-data /var/www/html/community-edition/ - -# Set the working directory to the Magento installation then install the latest -# version of the extension without the development dependencies. The dependency -# injection is then generated and all static content is deployed. -# Notice that MySQL is also shut down to prevent database corruption. -WORKDIR /var/www/html/community-edition -RUN service mysql start && \ - composer require --update-no-dev nosto/module-nostotagging:@stable && \ - bin/magento deploy:mode:set --skip-compilation production && \ - bin/magento module:enable --clear-static-content Nosto_Tagging && \ - bin/magento setup:upgrade && \ - bin/magento setup:di:compile && \ - bin/magento setup:static-content:deploy && \ - service mysql stop && \ - chown -R www-data:www-data /var/www/html/community-edition/ - -RUN chmod -R g+w /var/www/html/community-edition - -USER plugins -EXPOSE 443 80 -COPY default.conf /etc/apache2/sites-enabled -COPY supervisord.conf /etc/supervisord.conf -COPY entrypoint.sh / -ENTRYPOINT ["/entrypoint.sh"] From 11f0776bb72b92cbd788ecfa8e63e3f7127a9297 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Thu, 25 Nov 2021 14:01:38 +0200 Subject: [PATCH 2/6] Revert "Delete Dockerfile" This reverts commit f85543ba65ffa28df5862a0f81586f833a33e5fb. --- Dockerfile | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..925c29594 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,146 @@ +FROM debian:stretch-slim + +MAINTAINER Nosto "platforms@nosto.com" + +ENV DEBIAN_FRONTEND noninteractive + +# Do not install suggested dependencies +RUN echo -n "APT::Install-Recommends \"false\";\nAPT::Install-Suggests \"false\";" \ + | tee /etc/apt/apt.conf + +# Enable access to metadata and packages using https +RUN apt-get update && \ + apt-get -y -qq install apt-transport-https + +# Setup locale +RUN apt-get update && \ + apt-get -y -qq upgrade && \ + apt-get -y -qq install apt-utils locales && \ + sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \ + ln -sf /etc/locale.alias /usr/share/locale/locale.alias && \ + locale-gen && \ + apt-get -y -qq clean + +ENV LANGUAGE en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LC_ALL en_US.UTF-8 +ENV TERM xterm + +# Environment variables to force the extension to connect to a specified instance +ENV NOSTO_SERVER_URL connect.staging.nosto.com +ENV NOSTO_API_BASE_URL https://api.staging.nosto.com +ENV NOSTO_OAUTH_BASE_URL https://my.staging.nosto.com/oauth +ENV NOSTO_WEB_HOOK_BASE_URL https://my.staging.nosto.com +ENV NOSTO_IFRAME_ORIGIN_REGEXP .* + +ENV MYSQL_ENV_MYSQL_DATABASE magento2 +ENV MYSQL_ENV_MYSQL_USER root +ENV MYSQL_ENV_MYSQL_ROOT root +ENV MAGENTO_ADMIN_USER admin +ENV MAGENTO_ADMIN_PASSWORD Admin12345 +ENV COMPOSER_ALLOW_SUPERUSER 1 + +# Satis credentials for repo.magento.com to download the community edtition +ARG repouser=569521a9babbeda71b5cb25ce40168a3 +ARG repopass=ef77d5e321fec542f3102e2059f3d192 + +RUN groupadd -r plugins -g 113 && \ + useradd -ms /bin/bash -u 113 -r -g plugins plugins && \ + usermod -a -G www-data plugins + +# Add php-7.1 Source List +RUN apt-get -y -qq install lsb-release ca-certificates wget +RUN wget -4 -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg +RUN sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' +RUN apt-get -y -qq update + +# Install all core dependencies required for setting up Apache and PHP at least +RUN apt-get -y -qq install unzip libfreetype6-dev libjpeg-dev \ + libmcrypt-dev libreadline-dev libpng-dev libicu-dev default-mysql-client \ + libmcrypt-dev libxml2-dev libxslt1-dev vim nano git tree curl \ + supervisor ca-certificates && \ + apt-get -y -qq clean + +# Install Apache, MySQL and all the required development and prod PHP modules +RUN apt-get -y -qq install apache2 php7.1 php7.1-common default-mysql-client-core \ + default-mysql-server-core default-mysql-server php7.1-dev \ + php7.1-mcrypt php7.1-xsl php7.1-zip php7.1-bcmath php7.1-intl php7.1-gd \ + php7.1-curl php7.1-mbstring php7.1-mysql php7.1-soap php-xml php7.1-xml && \ + apt-get -y clean + +# Upgrade AST extension +RUN apt-get -y -qq install build-essential php-pear && \ + pecl install ast-0.1.6 && \ + apt-get purge -y build-essential && \ + apt-get -y clean + +# Enable AST extension +RUN echo "extension=ast.so" >> /etc/php/7.1/cli/php.ini + +RUN a2enmod rewrite && phpenmod soap && \ + a2dissite 000-default.conf + +RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && \ + php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ + php -r "unlink('composer-setup.php');" + +RUN service mysql start && \ + mysql -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('root');" && \ + mysql -h localhost -uroot -proot -e "CREATE SCHEMA IF NOT EXISTS magento2" && \ + cd /var/www/html && \ + composer config --global repositories.0 composer https://repo.magento.com && \ + composer config --global http-basic.repo.magento.com $repouser $repopass && \ + composer create-project magento/community-edition=2.3.2 && \ + cd community-edition && \ + composer update && \ + composer config --unset minimum-stability && \ + composer config repositories.0 composer https://repo.magento.com && \ + composer config http-basic.repo.magento.com $repouser $repopass && \ + chmod +x bin/magento && \ + bin/magento setup:install \ + --timezone "Europe/Helsinki" \ + --currency "EUR" \ + --db-host "localhost" \ + --db-name "magento2" \ + --db-user "root" \ + --db-password "root" \ + --base-url "http://localhost/community-edition/" \ + --use-rewrites 1 \ + --use-secure 0 \ + --base-url-secure "https://localhost/community-edition/" \ + --use-secure-admin 0 \ + --admin-firstname "Admin" \ + --admin-lastname "User" \ + --admin-email "admin@nosto.com" \ + --admin-user "admin" \ + --admin-password "Admin12345" \ + --backend-frontname "admin" && \ + bin/magento deploy:mode:set --skip-compilation production && \ + bin/magento setup:upgrade && \ + bin/magento setup:di:compile && \ + service mysql stop && \ + chown -R www-data:www-data /var/www/html/community-edition/ + +# Set the working directory to the Magento installation then install the latest +# version of the extension without the development dependencies. The dependency +# injection is then generated and all static content is deployed. +# Notice that MySQL is also shut down to prevent database corruption. +WORKDIR /var/www/html/community-edition +RUN service mysql start && \ + composer require --update-no-dev nosto/module-nostotagging:@stable && \ + bin/magento deploy:mode:set --skip-compilation production && \ + bin/magento module:enable --clear-static-content Nosto_Tagging && \ + bin/magento setup:upgrade && \ + bin/magento setup:di:compile && \ + bin/magento setup:static-content:deploy && \ + service mysql stop && \ + chown -R www-data:www-data /var/www/html/community-edition/ + +RUN chmod -R g+w /var/www/html/community-edition + +USER plugins +EXPOSE 443 80 +COPY default.conf /etc/apache2/sites-enabled +COPY supervisord.conf /etc/supervisord.conf +COPY entrypoint.sh / +ENTRYPOINT ["/entrypoint.sh"] From d325fdb68877a7853d40055dcff96a8f8728d4f1 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Thu, 25 Nov 2021 15:30:02 +0200 Subject: [PATCH 3/6] Change composer version in Package job, add cache-files-dir config --- .github/workflows/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index d5ba4f924..db18b753b 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -120,7 +120,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '7.4' - tools: composer:v2, pecl + tools: composer, pecl extensions: ast, bcmath, gd coverage: none @@ -128,6 +128,7 @@ jobs: - name: Cache composer packages id: composer-cache run: | + composer config cache-files-dir echo "::set-output name=dir::$(composer config cache-files-dir)" - uses: actions/cache@v1 with: From fc4f5f3534e799e48e451440007c155ee5d8b45d Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Thu, 25 Nov 2021 15:33:26 +0200 Subject: [PATCH 4/6] Remove cache from phpmd --- .github/workflows/action.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index db18b753b..8674f6f42 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -73,12 +73,6 @@ jobs: extensions: ast, bcmath, gd coverage: none - #https://github.com/actions/cache/blob/master/examples.md#php---composer - - name: Cache composer packages - id: composer-cache - run: | - composer config cache-files-dir - echo "::set-output name=dir::$(composer config cache-files-dir)" - uses: actions/cache@v1 with: path: ${{ steps.composer-cache.outputs.dir }} From d17f3e1f2e941c031399ab78d4b550179dd76024 Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Thu, 25 Nov 2021 15:35:04 +0200 Subject: [PATCH 5/6] Remove cache from phpmd (fully) --- .github/workflows/action.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 8674f6f42..d4b5642d9 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -73,13 +73,6 @@ jobs: extensions: ast, bcmath, gd coverage: none - - uses: actions/cache@v1 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - name: Update project dependencies env: REPO_USR: ${{ secrets.REPO_USR }} From 9e60858185507654f3bd141c3703262424881dab Mon Sep 17 00:00:00 2001 From: Dair Baidauletov Date: Thu, 9 Dec 2021 10:51:43 +0200 Subject: [PATCH 6/6] Revert workflow commits and delete Dockerfile --- .github/workflows/action.yml | 16 +++- Dockerfile | 146 ----------------------------------- 2 files changed, 14 insertions(+), 148 deletions(-) delete mode 100644 Dockerfile diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index d4b5642d9..d5ba4f924 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -73,6 +73,19 @@ jobs: extensions: ast, bcmath, gd coverage: none + #https://github.com/actions/cache/blob/master/examples.md#php---composer + - name: Cache composer packages + id: composer-cache + run: | + composer config cache-files-dir + echo "::set-output name=dir::$(composer config cache-files-dir)" + - uses: actions/cache@v1 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-composer- + - name: Update project dependencies env: REPO_USR: ${{ secrets.REPO_USR }} @@ -107,7 +120,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '7.4' - tools: composer, pecl + tools: composer:v2, pecl extensions: ast, bcmath, gd coverage: none @@ -115,7 +128,6 @@ jobs: - name: Cache composer packages id: composer-cache run: | - composer config cache-files-dir echo "::set-output name=dir::$(composer config cache-files-dir)" - uses: actions/cache@v1 with: diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 925c29594..000000000 --- a/Dockerfile +++ /dev/null @@ -1,146 +0,0 @@ -FROM debian:stretch-slim - -MAINTAINER Nosto "platforms@nosto.com" - -ENV DEBIAN_FRONTEND noninteractive - -# Do not install suggested dependencies -RUN echo -n "APT::Install-Recommends \"false\";\nAPT::Install-Suggests \"false\";" \ - | tee /etc/apt/apt.conf - -# Enable access to metadata and packages using https -RUN apt-get update && \ - apt-get -y -qq install apt-transport-https - -# Setup locale -RUN apt-get update && \ - apt-get -y -qq upgrade && \ - apt-get -y -qq install apt-utils locales && \ - sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \ - ln -sf /etc/locale.alias /usr/share/locale/locale.alias && \ - locale-gen && \ - apt-get -y -qq clean - -ENV LANGUAGE en_US.UTF-8 -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 -ENV TERM xterm - -# Environment variables to force the extension to connect to a specified instance -ENV NOSTO_SERVER_URL connect.staging.nosto.com -ENV NOSTO_API_BASE_URL https://api.staging.nosto.com -ENV NOSTO_OAUTH_BASE_URL https://my.staging.nosto.com/oauth -ENV NOSTO_WEB_HOOK_BASE_URL https://my.staging.nosto.com -ENV NOSTO_IFRAME_ORIGIN_REGEXP .* - -ENV MYSQL_ENV_MYSQL_DATABASE magento2 -ENV MYSQL_ENV_MYSQL_USER root -ENV MYSQL_ENV_MYSQL_ROOT root -ENV MAGENTO_ADMIN_USER admin -ENV MAGENTO_ADMIN_PASSWORD Admin12345 -ENV COMPOSER_ALLOW_SUPERUSER 1 - -# Satis credentials for repo.magento.com to download the community edtition -ARG repouser=569521a9babbeda71b5cb25ce40168a3 -ARG repopass=ef77d5e321fec542f3102e2059f3d192 - -RUN groupadd -r plugins -g 113 && \ - useradd -ms /bin/bash -u 113 -r -g plugins plugins && \ - usermod -a -G www-data plugins - -# Add php-7.1 Source List -RUN apt-get -y -qq install lsb-release ca-certificates wget -RUN wget -4 -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg -RUN sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' -RUN apt-get -y -qq update - -# Install all core dependencies required for setting up Apache and PHP at least -RUN apt-get -y -qq install unzip libfreetype6-dev libjpeg-dev \ - libmcrypt-dev libreadline-dev libpng-dev libicu-dev default-mysql-client \ - libmcrypt-dev libxml2-dev libxslt1-dev vim nano git tree curl \ - supervisor ca-certificates && \ - apt-get -y -qq clean - -# Install Apache, MySQL and all the required development and prod PHP modules -RUN apt-get -y -qq install apache2 php7.1 php7.1-common default-mysql-client-core \ - default-mysql-server-core default-mysql-server php7.1-dev \ - php7.1-mcrypt php7.1-xsl php7.1-zip php7.1-bcmath php7.1-intl php7.1-gd \ - php7.1-curl php7.1-mbstring php7.1-mysql php7.1-soap php-xml php7.1-xml && \ - apt-get -y clean - -# Upgrade AST extension -RUN apt-get -y -qq install build-essential php-pear && \ - pecl install ast-0.1.6 && \ - apt-get purge -y build-essential && \ - apt-get -y clean - -# Enable AST extension -RUN echo "extension=ast.so" >> /etc/php/7.1/cli/php.ini - -RUN a2enmod rewrite && phpenmod soap && \ - a2dissite 000-default.conf - -RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && \ - php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ - php -r "unlink('composer-setup.php');" - -RUN service mysql start && \ - mysql -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('root');" && \ - mysql -h localhost -uroot -proot -e "CREATE SCHEMA IF NOT EXISTS magento2" && \ - cd /var/www/html && \ - composer config --global repositories.0 composer https://repo.magento.com && \ - composer config --global http-basic.repo.magento.com $repouser $repopass && \ - composer create-project magento/community-edition=2.3.2 && \ - cd community-edition && \ - composer update && \ - composer config --unset minimum-stability && \ - composer config repositories.0 composer https://repo.magento.com && \ - composer config http-basic.repo.magento.com $repouser $repopass && \ - chmod +x bin/magento && \ - bin/magento setup:install \ - --timezone "Europe/Helsinki" \ - --currency "EUR" \ - --db-host "localhost" \ - --db-name "magento2" \ - --db-user "root" \ - --db-password "root" \ - --base-url "http://localhost/community-edition/" \ - --use-rewrites 1 \ - --use-secure 0 \ - --base-url-secure "https://localhost/community-edition/" \ - --use-secure-admin 0 \ - --admin-firstname "Admin" \ - --admin-lastname "User" \ - --admin-email "admin@nosto.com" \ - --admin-user "admin" \ - --admin-password "Admin12345" \ - --backend-frontname "admin" && \ - bin/magento deploy:mode:set --skip-compilation production && \ - bin/magento setup:upgrade && \ - bin/magento setup:di:compile && \ - service mysql stop && \ - chown -R www-data:www-data /var/www/html/community-edition/ - -# Set the working directory to the Magento installation then install the latest -# version of the extension without the development dependencies. The dependency -# injection is then generated and all static content is deployed. -# Notice that MySQL is also shut down to prevent database corruption. -WORKDIR /var/www/html/community-edition -RUN service mysql start && \ - composer require --update-no-dev nosto/module-nostotagging:@stable && \ - bin/magento deploy:mode:set --skip-compilation production && \ - bin/magento module:enable --clear-static-content Nosto_Tagging && \ - bin/magento setup:upgrade && \ - bin/magento setup:di:compile && \ - bin/magento setup:static-content:deploy && \ - service mysql stop && \ - chown -R www-data:www-data /var/www/html/community-edition/ - -RUN chmod -R g+w /var/www/html/community-edition - -USER plugins -EXPOSE 443 80 -COPY default.conf /etc/apache2/sites-enabled -COPY supervisord.conf /etc/supervisord.conf -COPY entrypoint.sh / -ENTRYPOINT ["/entrypoint.sh"]