diff --git a/internal/php/__snapshots__/template_test.snap b/internal/php/__snapshots__/template_test.snap index debb2803..0eb08903 100755 --- a/internal/php/__snapshots__/template_test.snap +++ b/internal/php/__snapshots__/template_test.snap @@ -101,38 +101,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/7-laravel-nginx,owo-0 - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - -CMD nginx; php-fpm - ---- - -[TestTemplate/7-laravel-nginx,owo-0+os- - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -165,22 +133,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/7-laravel-nginx,owo-0+os-roadrunner - 1] -FROM docker.io/library/php:7-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -313,33 +265,6 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/7-laravel-nginx,owo-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] - ---- - [TestTemplate/7-laravel-nginx-0 - 1] FROM docker.io/library/php:7-fpm @@ -398,20 +323,6 @@ COPY --chown=www-data:www-data . /var/www WORKDIR /var/www -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] - ---- - -[TestTemplate/7-laravel-nginx-0+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php7 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - - CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] --- @@ -722,22 +633,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/8.1-codeigniter-nginx,owo-0 - 1] -FROM docker.io/library/php:8.1-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -965,35 +860,6 @@ CMD nginx; php-fpm --- -[TestTemplate/8.1-laravel-nginx,owo-1+os-roadrunner - 1] -FROM docker.io/library/php:8.1-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD nginx; php-fpm - ---- - [TestTemplate/8.1-laravel-nginx,owo-1+os-swoole - 1] FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl @@ -1112,35 +978,6 @@ CMD nginx; php-fpm --- -[TestTemplate/8.1-laravel-nginx-1 - 1] -FROM docker.io/library/php:8.1-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD nginx; php-fpm - ---- - [TestTemplate/8.1-laravel-nginx-1+os- - 1] FROM docker.io/library/php:8.1-fpm @@ -1199,62 +1036,6 @@ CMD nginx; php-fpm --- -[TestTemplate/8.1-laravel-nginx-1+os-roadrunner - 1] -FROM docker.io/library/php:8.1-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD nginx; php-fpm - ---- - -[TestTemplate/8.1-laravel-nginx-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php8.1 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] - ---- - [TestTemplate/8.1-laravel-nginx-1+os-swoole - 1] FROM docker.io/phpswoole/swoole:php8.1 RUN docker-php-ext-install pcntl @@ -1339,38 +1120,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/8.1-none-nginx-0 - 1] -FROM docker.io/library/php:8.1-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www/public -WORKDIR /var/www/public - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - -CMD nginx; php-fpm - ---- - -[TestTemplate/8.1-none-nginx-0 - 1] -FROM docker.io/library/php:8.1-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www/public -WORKDIR /var/www/public - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -1506,22 +1255,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/8.2-codeigniter-nginx,owo-0 - 1] -FROM docker.io/library/php:8.2-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -1628,38 +1361,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/8.2-laravel-nginx,owo-0+os- - 1] -FROM docker.io/library/php:8.2-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - -CMD nginx; php-fpm - ---- - -[TestTemplate/8.2-laravel-nginx,owo-0+os-roadrunner - 1] -FROM docker.io/library/php:8.2-fpm - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -1808,49 +1509,6 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/8.2-laravel-nginx,owo-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php8.2 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx,owo && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] - ---- - -[TestTemplate/8.2-laravel-nginx-0 - 1] -FROM docker.io/library/php:8.2-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - -CMD nginx; php-fpm - ---- - [TestTemplate/8.2-laravel-nginx-0 - 1] FROM docker.io/library/php:8.2-fpm @@ -1895,22 +1553,6 @@ RUN rm /etc/nginx/sites-enabled/default RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default -CMD nginx; php-fpm - ---- - -[TestTemplate/8.2-laravel-nginx-0+os-roadrunner - 1] -FROM docker.io/library/php:8.2-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - - CMD nginx; php-fpm --- @@ -1958,35 +1600,6 @@ CMD nginx; php-fpm --- -[TestTemplate/8.2-laravel-nginx-1 - 1] -FROM docker.io/library/php:8.2-fpm - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN rm /etc/nginx/sites-enabled/default -RUN echo "server {\n listen 8080;\n root /var/www/public;\n\n add_header X-Frame-Options "SAMEORIGIN";\n add_header X-Content-Type-Options "nosniff";\n\n index index.php index.html;\n charset utf-8;\n\n location = /favicon.ico { access_log off; log_not_found off; }\n location = /robots.txt { access_log off; log_not_found off; }\n\n error_page 404 /index.php;\n\n location ~ \.php\$ {\n try_files \$uri =404;\n fastcgi_split_path_info ^(.+\.php)(/.+)\$;\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;\n fastcgi_param PATH_INFO \$fastcgi_path_info;\n fastcgi_buffering off;\n }\n\n location / {\n try_files \$uri \$uri/ /index.php?\$query_string;\n gzip_static on;\n }\n\n location ~ /\.(?!well-known).* {\n deny all;\n }\n}\n" >> /etc/nginx/sites-enabled/default - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD nginx; php-fpm - ---- - [TestTemplate/8.2-laravel-nginx-1+os- - 1] FROM docker.io/library/php:8.2-fpm @@ -2072,33 +1685,6 @@ CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--p --- -[TestTemplate/8.2-laravel-nginx-1+os-swoole - 1] -FROM docker.io/phpswoole/swoole:php8.2 -RUN docker-php-ext-install pcntl - -RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* - -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync - -COPY --chown=www-data:www-data . /var/www -WORKDIR /var/www - -RUN echo '#!/bin/sh\n\ -extensions=$(cat composer.json | jq -r ".require | to_entries[] | select(.key | startswith(\"ext-\")) | .key[4:]")\n\ -for ext in $extensions; do\n\ - echo "Installing PHP extension: $ext"\n\ - docker-php-ext-install $ext\n\ -done' > /usr/local/bin/install_php_extensions.sh \ - && chmod +x /usr/local/bin/install_php_extensions.sh \ - && /usr/local/bin/install_php_extensions.sh -RUN composer install --optimize-autoloader --no-dev - -CMD ["php", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0", "--port=8080"] - ---- - [TestTemplate/8.2-none-nginx,owo-0 - 1] FROM docker.io/library/php:8.2-fpm diff --git a/internal/python/__snapshots__/plan_test.snap b/internal/python/__snapshots__/plan_test.snap index a0974580..57d14039 100755 --- a/internal/python/__snapshots__/plan_test.snap +++ b/internal/python/__snapshots__/plan_test.snap @@ -39,12 +39,6 @@ COPY pyproject.toml* pdm.lock* . RUN pdm install --- -[TestDetermineInstallCmd_Snapshot/pdm-with-streamlit-entry - 1] -RUN pip install pdm -COPY pyproject.toml* pdm.lock* . -RUN pdm install ---- - [TestDetermineInstallCmd_Snapshot/pdm-with-wsgi - 1] RUN pip install pdm COPY pyproject.toml* pdm.lock* . @@ -63,12 +57,6 @@ RUN pip install uvicorn RUN pip install -r requirements.txt --- -[TestDetermineInstallCmd_Snapshot/pip-with-fastapi - 1] -COPY requirements.txt* . -RUN pip install uvicorn -RUN pip install -r requirements.txt ---- - [TestDetermineInstallCmd_Snapshot/pip-with-static-django - 1] COPY requirements.txt* . RUN pip install gunicorn @@ -81,12 +69,6 @@ RUN pip install gunicorn RUN pip install -r requirements.txt --- -[TestDetermineInstallCmd_Snapshot/pip-with-static-nginx - 1] -COPY requirements.txt* . -RUN pip install gunicorn -RUN pip install -r requirements.txt ---- - [TestDetermineInstallCmd_Snapshot/pip-with-static-nginx-django - 1] COPY requirements.txt* . RUN pip install gunicorn @@ -117,13 +99,6 @@ RUN pipenv install uvicorn RUN pipenv install --- -[TestDetermineInstallCmd_Snapshot/pipenv-with-fastapi - 1] -RUN pip install pipenv -COPY Pipfile* Pipfile.lock* . -RUN pipenv install uvicorn -RUN pipenv install ---- - [TestDetermineInstallCmd_Snapshot/pipenv-with-static-django - 1] RUN pip install pipenv COPY Pipfile* Pipfile.lock* . @@ -164,19 +139,6 @@ COPY pyproject.toml* poetry.lock* . RUN poetry install --- -[TestDetermineInstallCmd_Snapshot/poetry-none - 1] -RUN pip install poetry -COPY pyproject.toml* poetry.lock* . -RUN poetry install ---- - -[TestDetermineInstallCmd_Snapshot/poetry-with-fastapi - 1] -RUN pip install poetry -COPY pyproject.toml* poetry.lock* . -RUN poetry add uvicorn -RUN poetry install ---- - [TestDetermineInstallCmd_Snapshot/poetry-with-fastapi - 1] RUN pip install poetry COPY pyproject.toml* poetry.lock* . @@ -191,13 +153,6 @@ RUN poetry add gunicorn RUN poetry install --- -[TestDetermineInstallCmd_Snapshot/poetry-with-static-django - 1] -RUN pip install poetry -COPY pyproject.toml* poetry.lock* . -RUN poetry add gunicorn -RUN poetry install ---- - [TestDetermineInstallCmd_Snapshot/poetry-with-static-nginx - 1] RUN pip install poetry COPY pyproject.toml* poetry.lock* . @@ -218,12 +173,6 @@ COPY pyproject.toml* poetry.lock* . RUN poetry install --- -[TestDetermineInstallCmd_Snapshot/poetry-with-streamlit-entry - 1] -RUN pip install poetry -COPY pyproject.toml* poetry.lock* . -RUN poetry install ---- - [TestDetermineInstallCmd_Snapshot/poetry-with-wsgi - 1] RUN pip install poetry COPY pyproject.toml* poetry.lock* . @@ -239,10 +188,6 @@ RUN echo "skip install" RUN pip install uvicorn --- -[TestDetermineInstallCmd_Snapshot/unknown-with-fastapi - 1] -RUN pip install uvicorn ---- - [TestDetermineInstallCmd_Snapshot/unknown-with-static-django - 1] RUN pip install gunicorn --- @@ -255,10 +200,6 @@ RUN pip install gunicorn RUN pip install gunicorn --- -[TestDetermineInstallCmd_Snapshot/unknown-with-static-nginx-django - 1] -RUN pip install gunicorn ---- - [TestDetermineInstallCmd_Snapshot/unknown-with-streamlit-entry - 1] RUN echo "skip install" ---