Compare commits

..
Author SHA1 Message Date
bence 6341072b0b Merge pull request 'fix regex for tagging' (!74) from bugfix/fix-regex into master
rvr-nextgen/pipeline/head This commit looks good
rvr-nextgen/pipeline/tag This commit looks good
Reviewed-on: #74
2023-10-01 00:15:15 +02:00
bence 1dbd813bef fix regex for tagging
rvr-nextgen/pipeline/pr-master This commit looks good
2023-10-01 00:13:27 +02:00
bence 14d83d24b4 Merge pull request 'push fixed version images' (!73) from feature/auto-release-fixed-tags into master
rvr-nextgen/pipeline/head This commit looks good
Reviewed-on: #73
2023-10-01 00:07:52 +02:00
bence ba02b6d8cb push fixed version images
rvr-nextgen/pipeline/pr-master This commit looks good
2023-10-01 00:06:38 +02:00
bence 9b8fcaad9a Merge pull request 'error reporting should always be E_ALL' (!72) from bugfix/fix-error-reporting into master
rvr-nextgen/pipeline/head This commit looks good
Reviewed-on: #72
2023-09-30 23:37:24 +02:00
bence 6bd6ede442 error reporting should always be E_ALL
rvr-nextgen/pipeline/pr-master This commit looks good
2023-09-30 23:18:42 +02:00
bence 65dac4640a Merge pull request 'define forwarded_scheme before use' (!71) from bugfix/pass-scheme-to-fastcgi into master
rvr-nextgen/pipeline/head This commit looks good
rvr-nextgen/pipeline/tag This commit looks good
Reviewed-on: #71
2023-09-28 15:00:21 +02:00
bence 7bd12050f6 define forwarded_scheme before use
rvr-nextgen/pipeline/pr-master Build queued...
2023-09-28 14:59:55 +02:00
bence 5041258de0 Merge pull request 'pass scheme to fastcgi' (!70) from bugfix/pass-scheme-to-fastcgi into master
rvr-nextgen/pipeline/head This commit looks good
rvr-nextgen/pipeline/tag This commit looks good
Reviewed-on: #70
2023-09-28 14:55:37 +02:00
bence 47928d2d2b pass scheme to fastcgi
rvr-nextgen/pipeline/pr-master This commit looks good
2023-09-28 14:43:30 +02:00
bence 55cf2afde3 Merge pull request 'feature/update-to-ubuntu-2204' (!69) from feature/update-to-ubuntu-2204 into master
rvr-nextgen/pipeline/head This commit looks good
Reviewed-on: #69
2023-09-28 14:42:43 +02:00
bence ed2b1c23ae update soko-web
rvr-nextgen/pipeline/pr-master This commit looks good
2023-09-28 14:30:59 +02:00
bence 6ef45b8b6a generate composer.lock 2023-09-28 14:30:58 +02:00
bence b4c359e81d update phpunit 2023-09-28 14:30:58 +02:00
bence 495a2fe910 update ubuntu to 22.04 and php to 8.1 2023-09-28 14:30:58 +02:00
8 changed files with 411 additions and 596 deletions

No files matched your search

Vendored
+11
View File
@@ -98,6 +98,17 @@ pipeline {
--push \
.""",
label: 'Build Docker image'
if (env.BRANCH_NAME == 'master') {
if (env.VERSION ==~ '.*-\\d+-g[a-f0-9]{7}') {
env.FIXED_VERSION = 'dev'
} else {
env.FIXED_VERSION = 'stable'
}
sh script: """docker buildx imagetools create \
-t git.esoko.eu/esoko/rvr:${env.FIXED_VERSION} \
git.esoko.eu/esoko/rvr:${env.VERSION}"""
}
}
}
}
+2 -2
View File
@@ -10,11 +10,11 @@
}
],
"require": {
"esoko/soko-web": "0.14.1",
"esoko/soko-web": "0.15",
"firebase/php-jwt": "^6.4"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^10.3",
"phpstan/phpstan": "^1.10"
},
"autoload": {
Generated
+380 -582
View File
File diff suppressed because it is too large. Load diff
+5 -5
View File
@@ -1,9 +1,9 @@
FROM ubuntu:focal AS rvr_base
FROM ubuntu:22.04 AS rvr_base
ENV DEBIAN_FRONTEND noninteractive
RUN apt update --fix-missing && apt install -y sudo curl git unzip mariadb-client nginx \
php-apcu php7.4-cli php7.4-curl php7.4-fpm php7.4-mbstring php7.4-mysql php7.4-zip php7.4-xml
php-apcu php8.1-cli php8.1-curl php8.1-fpm php8.1-mbstring php8.1-mysql php8.1-zip php8.1-xml
RUN mkdir -p /run/php
COPY docker/configs/nginx.conf /etc/nginx/sites-available/default
@@ -20,9 +20,9 @@ FROM rvr_base AS rvr_dev
RUN apt update --fix-missing && apt install -y php-xdebug
RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/mods-available/xdebug.ini &&\
echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/mods-available/xdebug.ini &&\
echo "xdebug.remote_connect_back = 1" >> /etc/php/7.4/mods-available/xdebug.ini
RUN echo "xdebug.remote_enable = 1" >> /etc/php/8.1/mods-available/xdebug.ini &&\
echo "xdebug.remote_autostart = 1" >> /etc/php/8.1/mods-available/xdebug.ini &&\
echo "xdebug.remote_connect_back = 1" >> /etc/php/8.1/mods-available/xdebug.ini
EXPOSE 80
EXPOSE 5000
+8 -1
View File
@@ -1,3 +1,9 @@
map $http_x_forwarded_proto $forwarded_scheme {
default $scheme;
http http;
https https;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
@@ -14,7 +20,8 @@ server {
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param REQUEST_SCHEME $forwarded_scheme;
}
location ~ /\.ht {
+2 -2
View File
@@ -20,11 +20,11 @@ USER_UID=$(stat -c "%u" .env)
USER_GID=$(stat -c "%g" .env)
groupadd --gid $USER_GID rvr
useradd --uid $USER_UID --gid $USER_GID rvr
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/7.4/fpm/pool.d/www.conf
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf
set +e
/usr/sbin/php-fpm7.4 -F &
/usr/sbin/php-fpm8.1 -F &
/usr/sbin/nginx -g 'daemon off;' &
wait -n
+2 -2
View File
@@ -14,12 +14,12 @@ USER_GID=$(stat -c "%g" .env)
groupadd --gid $USER_GID rvr
useradd --uid $USER_UID --gid $USER_GID rvr
chown -R rvr:rvr cache
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/7.4/fpm/pool.d/www.conf
sed -i -e "s/^user = .*$/user = rvr/g" -e "s/^group = .*$/group = rvr/g" /etc/php/8.1/fpm/pool.d/www.conf
set +e
/usr/sbin/cron -f &
/usr/sbin/php-fpm7.4 -F &
/usr/sbin/php-fpm8.1 -F &
/usr/sbin/nginx -g 'daemon off;' &
wait -n
+1 -2
View File
@@ -19,9 +19,8 @@ use RVR\Repository\UserRepository;
require 'app.php';
if (!empty($_ENV['DEV'])) {
error_reporting(E_ALL);
if (!empty($_ENV['DEV'])) {
ini_set('display_errors', '1');
} else {
ini_set('display_errors', '0');