add testing image
This commit is contained in:
parent
b65f7615f4
commit
e3df13157b
3 changed files with 174 additions and 4 deletions
52
.github/workflows/release_testing.yml
vendored
Normal file
52
.github/workflows/release_testing.yml
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
name: Build and push testing image
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOTCLEAR_IMAGE: jcpd/docker-dotclear
|
||||||
|
DOTCLEAR_CANAL: testing
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
do_image:
|
||||||
|
name: Build testing image and push to Docker hub
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
attestations: write
|
||||||
|
id-token: write
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
sbom: true
|
||||||
|
push: true
|
||||||
|
tags: ${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }}
|
||||||
|
build-args: CANAL=${{ env.DOTCLEAR_CANAL }}
|
||||||
|
platforms: linux/386,linux/amd64,linux/arm/V6
|
||||||
|
|
||||||
|
- name: Send Telegram Message Ok
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
env:
|
||||||
|
GITHUB_CONTEXT: ${{toJSON(github)}}
|
||||||
|
with:
|
||||||
|
to: ${{ secrets.TELEGRAM_ID }}
|
||||||
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
format: markdown
|
||||||
|
message: Image __${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }}__ successfully generated.
|
|
@ -38,12 +38,12 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# DEBUG mode for unstable release
|
# DEBUG mode for unstable release
|
||||||
if [ "$CNL_DOTCLEAR" == "unstable" ]; then
|
if [ "$CNL_DOTCLEAR" == "stable" ]; then
|
||||||
echo >&2 "Enabling Dotclear DEBUG mode"
|
|
||||||
sed -i -e "s/ \/\*== DC_DEBUG ==/ \/\/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php
|
|
||||||
else
|
|
||||||
echo >&2 "Disabling Dotclear DEBUG mode"
|
echo >&2 "Disabling Dotclear DEBUG mode"
|
||||||
sed -i -e "s/ \/\/\*== DC_DEBUG ==/ \/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php
|
sed -i -e "s/ \/\/\*== DC_DEBUG ==/ \/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php
|
||||||
|
else
|
||||||
|
echo >&2 "Enabling Dotclear DEBUG mode"
|
||||||
|
sed -i -e "s/ \/\*== DC_DEBUG ==/ \/\/\*== DC_DEBUG ==/g" /var/www/dotclear/app/src/Config.php
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix www permissions
|
# Fix www permissions
|
||||||
|
|
118
etc/testing-php.ini
Normal file
118
etc/testing-php.ini
Normal file
|
@ -0,0 +1,118 @@
|
||||||
|
; docker-dotclear:latest
|
||||||
|
; /etc/phpXX/php.ini
|
||||||
|
; PHP configuration
|
||||||
|
|
||||||
|
[PHP]
|
||||||
|
|
||||||
|
engine = Onn
|
||||||
|
short_open_tag = Off
|
||||||
|
precision = 14
|
||||||
|
output_buffering = 4096
|
||||||
|
zlib.output_compression = Off
|
||||||
|
implicit_flush = Off
|
||||||
|
unserialize_callback_func =
|
||||||
|
serialize_precision = -1
|
||||||
|
disable_functions =
|
||||||
|
disable_classes =
|
||||||
|
zend.enable_gc = On
|
||||||
|
zend.exception_ignore_args = On
|
||||||
|
zend.exception_string_param_max_len = 0
|
||||||
|
|
||||||
|
expose_php = Off
|
||||||
|
|
||||||
|
max_execution_time = 30
|
||||||
|
max_input_time = 60
|
||||||
|
memory_limit = 256M
|
||||||
|
max_input_vars = 1500
|
||||||
|
|
||||||
|
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
|
||||||
|
display_errors = Off
|
||||||
|
display_startup_errors = Off
|
||||||
|
log_errors = On
|
||||||
|
ignore_repeated_errors = Off
|
||||||
|
ignore_repeated_source = Off
|
||||||
|
report_memleaks = On
|
||||||
|
error_log = /dev/stderr
|
||||||
|
|
||||||
|
variables_order = "GPCS"
|
||||||
|
request_order = "GP"
|
||||||
|
register_argc_argv = Off
|
||||||
|
auto_globals_jit = On
|
||||||
|
post_max_size = 100M
|
||||||
|
auto_prepend_file =
|
||||||
|
auto_append_file =
|
||||||
|
default_mimetype = "text/html"
|
||||||
|
default_charset = "UTF-8"
|
||||||
|
|
||||||
|
include_path = ".:/usr/share/php83"
|
||||||
|
doc_root =
|
||||||
|
user_dir =
|
||||||
|
enable_dl = Off
|
||||||
|
|
||||||
|
file_uploads = On
|
||||||
|
upload_max_filesize = 10M
|
||||||
|
max_file_uploads = 100
|
||||||
|
|
||||||
|
allow_url_fopen = On
|
||||||
|
allow_url_include = Off
|
||||||
|
default_socket_timeout = 60
|
||||||
|
|
||||||
|
[CLI Server]
|
||||||
|
cli_server.color = On
|
||||||
|
|
||||||
|
[mail function]
|
||||||
|
SMTP = localhost
|
||||||
|
smtp_port = 25
|
||||||
|
mail.add_x_header = Off
|
||||||
|
mail.mixed_lf_and_crlf = Off
|
||||||
|
|
||||||
|
[MySQLi]
|
||||||
|
mysqli.max_persistent = -1
|
||||||
|
mysqli.allow_persistent = On
|
||||||
|
mysqli.max_links = -1
|
||||||
|
mysqli.default_port = 3306
|
||||||
|
mysqli.default_socket =
|
||||||
|
mysqli.default_host =
|
||||||
|
mysqli.default_user =
|
||||||
|
mysqli.default_pw =
|
||||||
|
|
||||||
|
[PostgreSQL]
|
||||||
|
pgsql.allow_persistent = On
|
||||||
|
pgsql.auto_reset_persistent = Off
|
||||||
|
pgsql.max_persistent = -1
|
||||||
|
pgsql.max_links = -1
|
||||||
|
pgsql.ignore_notice = 0
|
||||||
|
pgsql.log_notice = 0
|
||||||
|
|
||||||
|
[Session]
|
||||||
|
session.save_handler = files
|
||||||
|
session.use_strict_mode = 0
|
||||||
|
session.use_cookies = 1
|
||||||
|
session.use_only_cookies = 1
|
||||||
|
session.name = PHPSESSID
|
||||||
|
session.auto_start = 0
|
||||||
|
session.cookie_lifetime = 0
|
||||||
|
session.cookie_path = /
|
||||||
|
session.cookie_domain =
|
||||||
|
session.cookie_httponly =
|
||||||
|
session.cookie_samesite =
|
||||||
|
session.serialize_handler = php
|
||||||
|
session.gc_probability = 1
|
||||||
|
session.gc_divisor = 1000
|
||||||
|
session.gc_maxlifetime = 1440
|
||||||
|
session.referer_check =
|
||||||
|
session.cache_limiter = nocache
|
||||||
|
session.cache_expire = 180
|
||||||
|
session.use_trans_sid = 0
|
||||||
|
session.sid_length = 26
|
||||||
|
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
||||||
|
session.sid_bits_per_character = 5
|
||||||
|
|
||||||
|
[opcache]
|
||||||
|
opcache.enable=1
|
||||||
|
opcache.enable_cli=1
|
||||||
|
opcache.memory_consumption=128
|
||||||
|
opcache.interned_strings_buffer=8
|
||||||
|
opcache.max_accelerated_files=4000
|
||||||
|
opcache.revalidate_freq=2
|
||||||
|
|
Loading…
Reference in a new issue