Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd924da17a |
No files matched your search
@@ -1,3 +0,0 @@
|
|||||||
## 2.13.0 - 2026-07-10
|
|
||||||
### Release
|
|
||||||
* Release chill with bundles version 5.1.3
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
## 2.13.1 - 2026-09-17
|
|
||||||
### Fixed
|
|
||||||
* Dockerfile: create cache directory for helm deployment
|
|
||||||
### DX
|
|
||||||
* Build image with gitea actions
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
## 2.13.2 - 2026-09-17
|
|
||||||
### DX
|
|
||||||
* Fix permissions for writing to cache directory during helm deployment
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
## 2.13.3 - 2026-09-17
|
|
||||||
### DX
|
|
||||||
* Upgrade to php version 8.4 in Dockerfile
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
## 2.13.4 - 2026-09-17
|
|
||||||
### DX
|
|
||||||
* Fix Dockerfile permissions to be able to write to the whole /var/www/app/ directory
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
## 2.13.5 - 2026-10-21
|
|
||||||
### Security
|
|
||||||
* Update with patch for php vulnerability
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
## 2.13.6 - 2026-10-26
|
|
||||||
### DX
|
|
||||||
* Run container as www-data user instead of root
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
kind: Feature
|
||||||
|
body: Display version of chill bundles in application footer
|
||||||
|
time: 2026-01-05T15:07:41.09639691+01:00
|
||||||
|
custom:
|
||||||
|
Issue: ""
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
kind: Release
|
|
||||||
body: |
|
|
||||||
- axllent/mailpit: ->
|
|
||||||
- chill/base-image: 8.4-edge -> 8.4-edge
|
|
||||||
- chill/base-image: 8.4-edge -> 8.4-edge
|
|
||||||
- docker.elastic.co/logstash/logstash-oss: 8.1.0-amd64 -> 8.1.0-amd64
|
|
||||||
- gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image: latest -> latest
|
|
||||||
- intl-messageformat: ^10.5.11 -> 10.7.18
|
|
||||||
- nginx: ->
|
|
||||||
- redis: ->
|
|
||||||
- registry.gitlab.com/champs-libres/public/relatorio-tornado/app: latest -> latest
|
|
||||||
|
|
||||||
time: 2026-10-27T02:03:09+00:00
|
|
||||||
custom:
|
|
||||||
Issue: ""
|
|
||||||
+87
@@ -0,0 +1,87 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build-images
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfig
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-base-image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base
|
||||||
|
tag: latest
|
||||||
|
target: chill_base_php82
|
||||||
|
pull_image: true
|
||||||
|
cache_from:
|
||||||
|
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
||||||
|
- chill/base-image:latest
|
||||||
|
|
||||||
|
- name: composer-install
|
||||||
|
image: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- composer install --no-scripts --no-interaction
|
||||||
|
- bin/console cache:clear
|
||||||
|
depends_on:
|
||||||
|
- build-base-image
|
||||||
|
|
||||||
|
- name: build-assets
|
||||||
|
image: node:20
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- yarn install
|
||||||
|
- yarn list
|
||||||
|
- yarn run encore production
|
||||||
|
depends_on:
|
||||||
|
- composer-install
|
||||||
|
|
||||||
|
- name: build-image-php
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
pull_image: true
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php
|
||||||
|
tag:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
cache_from:
|
||||||
|
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
|
||||||
|
- chill/base-image:latest
|
||||||
|
depends_on:
|
||||||
|
- build-assets
|
||||||
|
- composer-install
|
||||||
|
|
||||||
|
- name: build-image-nginx
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
pull_image: true
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||||
|
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx
|
||||||
|
tag:
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
Dockerfile: docker/nginx/Dockerfile
|
||||||
|
depends_on:
|
||||||
|
- build-assets
|
||||||
|
---
|
||||||
|
kind: signature
|
||||||
|
hmac: 510f151634e776218c6135bb830480fe0c265eb1dd96c16ef640001a23f351ae
|
||||||
|
|
||||||
|
...
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
name: build-images
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-push:
|
|
||||||
runs-on: cth-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: https://github.com/actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Log in to Docker Registry
|
|
||||||
uses: https://github.com/docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
|
||||||
username: ${{ vars.OVH_REGISTRY_USERNAME }}
|
|
||||||
password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Install Dependencies and Build Assets
|
|
||||||
uses: docker://chill/base-image:8.4-edge@sha256:1476057182ee4f77a52156f20834224a6268be44e5886e8b172b624a40ed9a5f
|
|
||||||
env:
|
|
||||||
APP_ENV: prod
|
|
||||||
with:
|
|
||||||
entrypoint: /bin/sh
|
|
||||||
# We install node/yarn inside the PHP container to ensure translations are available
|
|
||||||
args: -c "apk add --no-cache nodejs yarn && composer install --no-scripts --no-interaction && bin/console cache:clear && yarn install && yarn run encore production"
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and Push PHP Image
|
|
||||||
uses: https://github.com/docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php:${{ github.ref_name }}
|
|
||||||
|
|
||||||
- name: Build and Push Nginx Image
|
|
||||||
uses: https://github.com/docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: docker/nginx/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx:${{ github.ref_name }}
|
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'''
|
cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'''
|
||||||
- name: run composer update to update composer.lock
|
- name: run composer update to update composer.lock
|
||||||
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest@sha256:d728a939475e465c488056ec8b9c12f31601ea27251aad830499577857b7be94
|
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
|
||||||
with:
|
with:
|
||||||
# this is where we set the command to execute
|
# this is where we set the command to execute
|
||||||
args: composer update --no-install
|
args: composer update --no-install
|
||||||
|
|||||||
+4
-1
@@ -1,4 +1,4 @@
|
|||||||
docker/
|
|
||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
/.env.local
|
/.env.local
|
||||||
/.env.local.php
|
/.env.local.php
|
||||||
@@ -33,3 +33,6 @@ phpstan.neon
|
|||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
/phpunit.xml
|
/phpunit.xml
|
||||||
###< symfony/phpunit-bridge ###
|
###< symfony/phpunit-bridge ###
|
||||||
|
|
||||||
|
.idea/*
|
||||||
|
/bin/*
|
||||||
@@ -6,36 +6,6 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|||||||
and is generated by [Changie](https://github.com/miniscruff/changie).
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
||||||
|
|
||||||
|
|
||||||
## 2.13.6 - 2026-10-26
|
|
||||||
### DX
|
|
||||||
* Run container as www-data user instead of root
|
|
||||||
|
|
||||||
## 2.13.5 - 2026-10-21
|
|
||||||
### Security
|
|
||||||
* Update with patch for php vulnerability
|
|
||||||
|
|
||||||
## 2.13.4 - 2026-09-17
|
|
||||||
### DX
|
|
||||||
* Fix Dockerfile permissions to be able to write to the whole /var/www/app/ directory
|
|
||||||
|
|
||||||
## 2.13.3 - 2026-09-17
|
|
||||||
### DX
|
|
||||||
* Upgrade to php version 8.4 in Dockerfile
|
|
||||||
|
|
||||||
## 2.13.2 - 2026-09-17
|
|
||||||
### DX
|
|
||||||
* Fix permissions for writing to cache directory during helm deployment
|
|
||||||
|
|
||||||
## 2.13.1 - 2026-09-17
|
|
||||||
### Fixed
|
|
||||||
* Dockerfile: create cache directory for helm deployment
|
|
||||||
### DX
|
|
||||||
* Build image with gitea actions
|
|
||||||
|
|
||||||
## 2.13.0 - 2026-07-10
|
|
||||||
### Release
|
|
||||||
* Release chill with bundles version 5.1.3
|
|
||||||
|
|
||||||
## 2.12.0 - 2025-11-10
|
## 2.12.0 - 2025-11-10
|
||||||
### Release
|
### Release
|
||||||
* Update chill bundles to v4.7.0
|
* Update chill bundles to v4.7.0
|
||||||
|
|||||||
+95
-27
@@ -1,38 +1,106 @@
|
|||||||
FROM chill/base-image:8.4-edge@sha256:1476057182ee4f77a52156f20834224a6268be44e5886e8b172b624a40ed9a5f
|
FROM php:8.3-fpm-alpine AS chill_base_php82
|
||||||
|
|
||||||
# copy directories with ownership for the unprivileged runtime user
|
ENV POSTGRES_VERSION=15
|
||||||
COPY --chown=www-data:www-data ./bin /var/www/app/bin/.
|
|
||||||
COPY --chown=www-data:www-data ./composer.* /var/www/app/
|
|
||||||
COPY --chown=www-data:www-data ./config /var/www/app/config/.
|
|
||||||
COPY --chown=www-data:www-data ./migrations /var/www/app/migrations/.
|
|
||||||
COPY --chown=www-data:www-data ./public /var/www/app/public/.
|
|
||||||
COPY --chown=www-data:www-data ./src /var/www/app/src/.
|
|
||||||
COPY --chown=www-data:www-data ./templates /var/www/app/templates/.
|
|
||||||
COPY --chown=www-data:www-data ./translations /var/www/app/translations/.
|
|
||||||
COPY --chown=www-data:www-data ./vendor /var/www/app/vendor/.
|
|
||||||
|
|
||||||
COPY --chown=www-data:www-data ./.env /var/www/app/.env
|
# default UID for the PHP user
|
||||||
|
ARG UID=1000
|
||||||
|
ARG GID=1000
|
||||||
|
|
||||||
|
# install php extensions and deps
|
||||||
|
# apk add --no-cache --update --virtual rabbitmq-c-dev rabbitmq-c-utils gcc g++ make autoconf && pecl install amqp
|
||||||
|
RUN apk update && apk add --no-cache \
|
||||||
|
wget gnupg \
|
||||||
|
libpq-dev \
|
||||||
|
icu-dev icu-libs icu-data-full \
|
||||||
|
oniguruma-dev \
|
||||||
|
libzip libzip-dev \
|
||||||
|
linux-headers \
|
||||||
|
gcc g++ make autoconf \
|
||||||
|
bash git \
|
||||||
|
rabbitmq-c rabbitmq-c-dev \
|
||||||
|
&& docker-php-ext-install pdo_pgsql intl mbstring zip bcmath exif sockets \
|
||||||
|
&& git clone https://github.com/nikic/php-ast.git \
|
||||||
|
&& cd php-ast \
|
||||||
|
&& phpize \
|
||||||
|
&& ./configure \
|
||||||
|
&& make install \
|
||||||
|
&& echo 'extension=ast.so' > /usr/local/etc/php/php.ini \
|
||||||
|
&& cd .. && rm -rf php-ast \
|
||||||
|
&& pecl install redis \
|
||||||
|
&& docker-php-ext-enable redis \
|
||||||
|
&& pecl install amqp \
|
||||||
|
&& docker-php-ext-enable amqp \
|
||||||
|
&& apk add libpng-dev libjpeg-turbo-dev freetype-dev \
|
||||||
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
|
&& docker-php-ext-install -j$(nproc) gd \
|
||||||
|
&& apk add postgresql${POSTGRES_VERSION}-client \
|
||||||
|
&& apk del --purge wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf
|
||||||
|
|
||||||
|
RUN { \
|
||||||
|
echo ""; \
|
||||||
|
echo "memory_limit = 512M"; \
|
||||||
|
echo ""; \
|
||||||
|
} >> /usr/local/etc/php/conf.d/memory_limit.ini
|
||||||
|
|
||||||
|
RUN { \
|
||||||
|
echo ""; \
|
||||||
|
echo "[Date]"; \
|
||||||
|
echo "date.timezone = Europe/Brussels"; \
|
||||||
|
echo ""; \
|
||||||
|
} >> /usr/local/etc/php/conf.d/date.ini
|
||||||
|
|
||||||
|
# temporary fix, while php-cs-fixer has conflict dependencies
|
||||||
|
# with chill
|
||||||
|
RUN curl -o /usr/local/bin/php-cs-fixer https://cs.symfony.com/download/php-cs-fixer-v3.phar \
|
||||||
|
&& chmod +x /usr/local/bin/php-cs-fixer
|
||||||
|
# to make php-cs-fixer works with php 8.2
|
||||||
|
ENV PHP_CS_FIXER_IGNORE_ENV=1
|
||||||
|
|
||||||
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||||
|
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
ENV COMPOSER_MEMORY_LIMIT=-1
|
||||||
|
|
||||||
|
# shell bash preference
|
||||||
|
RUN sed -i " \
|
||||||
|
s|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g; \
|
||||||
|
s|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/sh|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/bash|g" \
|
||||||
|
/etc/passwd
|
||||||
|
|
||||||
|
# chmod on redis.so
|
||||||
|
RUN chmod 755 -R /usr/local/lib/php/extensions/
|
||||||
|
|
||||||
|
WORKDIR /var/www/app
|
||||||
|
|
||||||
|
CMD ["php-fpm"]
|
||||||
|
|
||||||
|
FROM chill_base_php82 AS chill_php82
|
||||||
|
|
||||||
|
# copy directories
|
||||||
|
|
||||||
|
COPY ./bin /var/www/app/bin/.
|
||||||
|
COPY ./composer.* /var/www/app/
|
||||||
|
COPY ./config /var/www/app/config/.
|
||||||
|
COPY ./migrations /var/www/app/migrations/.
|
||||||
|
COPY ./public /var/www/app/public/.
|
||||||
|
COPY ./src /var/www/app/src/.
|
||||||
|
COPY ./templates /var/www/app/templates/.
|
||||||
|
COPY ./translations /var/www/app/translations/.
|
||||||
|
COPY ./vendor /var/www/app/vendor/.
|
||||||
|
|
||||||
|
COPY ./.env /var/www/app/.env
|
||||||
|
|
||||||
# import the manifest.json file
|
# import the manifest.json file
|
||||||
COPY --chown=www-data:www-data ./public/build/manifest.json /var/www/app/public/build/manifest.json
|
COPY ./public/build/manifest.json /var/www/app/public/build/manifest.json
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
ADD ./entrypoint.sh /.
|
||||||
|
|
||||||
# - mark entrypoint executable
|
RUN chmod +x /entrypoint.sh
|
||||||
# - declare the FPM pool user/group at build time (was previously written by entrypoint.sh as root)
|
|
||||||
# - prepare writable Symfony var/ and COMPOSER_HOME directories for the unprivileged runtime user
|
|
||||||
RUN chmod +x /entrypoint.sh \
|
|
||||||
&& printf '[www]\nuser=www-data\ngroup=www-data\n' > /usr/local/etc/php-fpm.d/zz-user.conf \
|
|
||||||
&& mkdir -p /var/www/app/var/cache /var/www/app/var/log /var/www/app/.composer \
|
|
||||||
&& chown -R www-data:www-data /var/www/app/var /var/www/app/.composer \
|
|
||||||
&& chown www-data:www-data /var/www/app
|
|
||||||
# php-fpm listens on 9000 by default (unprivileged port)
|
|
||||||
EXPOSE 9000
|
|
||||||
|
|
||||||
USER www-data
|
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
||||||
ENV COMPOSER_HOME=/var/www/app/.composer
|
ENV PHP_FPM_USER=www-data \
|
||||||
|
PHP_FPM_GROUP=www-data \
|
||||||
|
COMPOSER_HOME=/var/www/app/.composer \
|
||||||
|
SESSION_LIFETIME=10800
|
||||||
|
|
||||||
CMD [ "php-fpm" ]
|
CMD [ "php-fpm" ]
|
||||||
@@ -3,7 +3,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
###> symfony/mailer ###
|
###> symfony/mailer ###
|
||||||
mailer:
|
mailer:
|
||||||
image: axllent/mailpit@sha256:0790692be935ea4420d085694f7985b1f692ca6a8771ab0e0bd8ba75ac180498
|
image: axllent/mailpit
|
||||||
ports:
|
ports:
|
||||||
- "1025"
|
- "1025"
|
||||||
- "8025"
|
- "8025"
|
||||||
|
|||||||
+2
-2
@@ -17,9 +17,9 @@ services:
|
|||||||
|
|
||||||
###> chill-project/chill-bundles ###
|
###> chill-project/chill-bundles ###
|
||||||
redis:
|
redis:
|
||||||
image: redis@sha256:0a014ae5c04f55c82aaad2314de411c7a203de1c4312c3e526939226a0185dd9
|
image: redis
|
||||||
relatorio:
|
relatorio:
|
||||||
image: registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest@sha256:2c4aa2f422c389d940adfd760b0856d237023d66cded0aa026b532b29192212e
|
image: registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest
|
||||||
###< chill-project/chill-bundles ###
|
###< chill-project/chill-bundles ###
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-redis": "*",
|
"ext-redis": "*",
|
||||||
"chill-project/chill-bundles": "v5.1.3",
|
"chill-project/chill-bundles": "v4.7.0",
|
||||||
"hslavich/oneloginsaml-bundle": "^2.10",
|
"hslavich/oneloginsaml-bundle": "^2.10",
|
||||||
"symfony/runtime": "^5.4.0",
|
"symfony/runtime": "^5.4.0",
|
||||||
"symfony/console": "5.4.*",
|
"symfony/console": "5.4.*",
|
||||||
|
|||||||
Generated
+15730
File diff suppressed because it is too large.
Load diff
@@ -30,7 +30,6 @@ return [
|
|||||||
Chill\BudgetBundle\ChillBudgetBundle::class => ['all' => true],
|
Chill\BudgetBundle\ChillBudgetBundle::class => ['all' => true],
|
||||||
Chill\WopiBundle\ChillWopiBundle::class => ['all' => true],
|
Chill\WopiBundle\ChillWopiBundle::class => ['all' => true],
|
||||||
Chill\EventBundle\ChillEventBundle::class => ['all' => true],
|
Chill\EventBundle\ChillEventBundle::class => ['all' => true],
|
||||||
Chill\TicketBundle\ChillTicketBundle::class => ['all' => true],
|
|
||||||
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
||||||
Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true],
|
Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true],
|
||||||
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
|
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ doctrine_migrations:
|
|||||||
'Chill\Migrations\AsideActivity': '@ChillAsideActivityBundle/migrations'
|
'Chill\Migrations\AsideActivity': '@ChillAsideActivityBundle/migrations'
|
||||||
'Chill\Migrations\Calendar': '@ChillCalendarBundle/migrations'
|
'Chill\Migrations\Calendar': '@ChillCalendarBundle/migrations'
|
||||||
'Chill\Migrations\Budget': '@ChillBudgetBundle/migrations'
|
'Chill\Migrations\Budget': '@ChillBudgetBundle/migrations'
|
||||||
'Chill\Migrations\Ticket': '@ChillTicketBundle/migrations'
|
|
||||||
all_or_nothing:
|
all_or_nothing:
|
||||||
true
|
true
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ security:
|
|||||||
path: /logout
|
path: /logout
|
||||||
switch_user: true
|
switch_user: true
|
||||||
# end of lines added by chill-bundles recipe
|
# end of lines added by chill-bundles recipe
|
||||||
user_checker: chill_security.user_checker
|
|
||||||
|
|
||||||
# Easy way to control access for large sections of your site
|
# Easy way to control access for large sections of your site
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ twig:
|
|||||||
# and adapt it lightly.
|
# and adapt it lightly.
|
||||||
#
|
#
|
||||||
form_themes: ['@ChillMain/Form/bootstrap5/bootstrap_5_horizontal_layout.html.twig']
|
form_themes: ['@ChillMain/Form/bootstrap5/bootstrap_5_horizontal_layout.html.twig']
|
||||||
|
globals:
|
||||||
|
# Expose the VersionProvider service to Twig as a global to have access to chill bundles version
|
||||||
|
chillBundlesVersion: '@Chill\MainBundle\Service\VersionProvider'
|
||||||
|
|
||||||
when@dev:
|
when@dev:
|
||||||
twig:
|
twig:
|
||||||
|
|||||||
@@ -22,3 +22,8 @@ services:
|
|||||||
|
|
||||||
# add more service definitions when explicit configuration is needed
|
# add more service definitions when explicit configuration is needed
|
||||||
# please note that last definitions always *replace* previous ones
|
# please note that last definitions always *replace* previous ones
|
||||||
|
|
||||||
|
# provide version of installed chill bundles for display in interface
|
||||||
|
Chill\MainBundle\Service\VersionProvider:
|
||||||
|
arguments:
|
||||||
|
$packageName: 'chill-project/chill-bundles'
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM docker.elastic.co/logstash/logstash-oss:8.1.0-amd64@sha256:f48c2f7db8b63572fa36db259c98c3894d89fb28d37f9546c26acfc0de525338
|
FROM docker.elastic.co/logstash/logstash-oss:8.1.0-amd64
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
bin/logstash-plugin install logstash-output-gelf \
|
bin/logstash-plugin install logstash-output-gelf \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM nginx@sha256:4c41e2d0a3a55b325ed572cd0200bdb72af1433c3daa2bca6ef8eea68ce504a2
|
FROM nginx
|
||||||
|
|
||||||
COPY ./public /var/www/app/public
|
COPY ./public /var/www/app/public
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,23 @@ else
|
|||||||
echo "we assume the database is ready";
|
echo "we assume the database is ready";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ $(id -u) = "0" ]; then
|
||||||
|
{ \
|
||||||
|
echo "[www]"; \
|
||||||
|
echo ""; \
|
||||||
|
echo "user=${PHP_FPM_USER}"; \
|
||||||
|
echo "group=${PHP_FPM_GROUP}"; \
|
||||||
|
} > /usr/local/etc/php-fpm.d/zz-user.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
{ \
|
||||||
|
echo ""; \
|
||||||
|
echo "session.save_handler = redis" ; \
|
||||||
|
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_PORT}?db=10\"" ; \
|
||||||
|
echo "session.gc_maxlifetime = ${SESSION_LIFETIME}" ; \
|
||||||
|
} >> /usr/local/etc/php/conf.d/custom.ini
|
||||||
|
|
||||||
if [ "${APP_ENV}" = "prod" ]; then
|
if [ "${APP_ENV}" = "prod" ]; then
|
||||||
composer dump-env "${APP_ENV}"
|
composer dump-env "${APP_ENV}"
|
||||||
chmod +r /var/www/app/.env.local.php
|
chmod +r /var/www/app/.env.local.php
|
||||||
@@ -31,6 +48,8 @@ fi
|
|||||||
if [ "${CLEAR_CACHE}" != "false" ]; then
|
if [ "${CLEAR_CACHE}" != "false" ]; then
|
||||||
#prepare cache
|
#prepare cache
|
||||||
php /var/www/app/bin/console cache:clear --no-warmup
|
php /var/www/app/bin/console cache:clear --no-warmup
|
||||||
|
chgrp ${PHP_FPM_GROUP} /var/www/app/var/cache -R && chmod g+rw /var/www/app/var/cache -R
|
||||||
|
chgrp ${PHP_FPM_GROUP} /var/www/app/var/log -R && chmod g+rw /var/www/app/var/log -R
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "${@}"
|
exec "${@}"
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@symfony/ux-translator": "file:vendor/symfony/ux-translator/assets",
|
"@symfony/ux-translator": "file:vendor/symfony/ux-translator/assets",
|
||||||
"bootstrap": "5.2.3",
|
"bootstrap": "5.2.3",
|
||||||
"intl-messageformat": "10.7.18"
|
"intl-messageformat": "^10.5.11"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"specs-build": "yaml-merge vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillThirdPartyBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/chill.api.specs.yaml> templates/api/specs.yaml",
|
"specs-build": "yaml-merge vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillThirdPartyBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/chill.api.specs.yaml> templates/api/specs.yaml",
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"reviewers": ["LenaertsJ"]
|
|
||||||
}
|
|
||||||
+11
-18
@@ -94,26 +94,19 @@ module.exports = (async () => {
|
|||||||
Encore
|
Encore
|
||||||
.setOutputPath('public/build/')
|
.setOutputPath('public/build/')
|
||||||
.setPublicPath('/build')
|
.setPublicPath('/build')
|
||||||
.enableSassLoader(function (options) {
|
.enableSassLoader()
|
||||||
// If set to true, Sass won’t print warnings that are caused by dependencies (like bootstrap):
|
|
||||||
// https://sass-lang.com/documentation/js-api/interfaces/options/#quietDeps
|
|
||||||
options.sassOptions.quietDeps = true;
|
|
||||||
options.sassOptions.silenceDeprecations = ['import'];
|
|
||||||
})
|
|
||||||
.enableVueLoader(() => {}, {
|
.enableVueLoader(() => {}, {
|
||||||
version: 3,
|
version: 3,
|
||||||
|
runtimeCompilerBuild: true,
|
||||||
})
|
})
|
||||||
.enableTypeScriptLoader(function (tsConfig){
|
.enableTypeScriptLoader(/*function (tsConfig){
|
||||||
tsConfig.appendTsSuffixTo = [/\.vue$/];
|
tsConfig.appendTsSuffixTo = [/\.vue$/];
|
||||||
tsConfig.appendTsxSuffixTo = [/\.vue$/];
|
tsConfig.appendTsxSuffixTo = [/\.vue$/];
|
||||||
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
|
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
|
||||||
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
|
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
|
||||||
// disable type checking in ts-loader: Vue files are already checked by vue-tsc,
|
tsConfig.compilerOptions.paths = {"translator": [resolve(__dirname, "./assets/translator.ts")]};
|
||||||
// and the generated code (e.g. mergeModels) may use APIs not yet in the bundled @vue/runtime-core types.
|
tsConfig.silent = false;
|
||||||
// see https://github.com/vuejs/core/issues/10331#issuecomment-1938909170
|
}*/)
|
||||||
tsConfig.transpileOnly = true;
|
|
||||||
tsConfig.silent = false;
|
|
||||||
})
|
|
||||||
//.enableForkedTypeScriptTypesChecking()
|
//.enableForkedTypeScriptTypesChecking()
|
||||||
.autoProvidejQuery()
|
.autoProvidejQuery()
|
||||||
.enableSourceMaps(!Encore.isProduction())
|
.enableSourceMaps(!Encore.isProduction())
|
||||||
@@ -136,7 +129,7 @@ module.exports = (async () => {
|
|||||||
;
|
;
|
||||||
|
|
||||||
Encore.addAliases({
|
Encore.addAliases({
|
||||||
translator: resolve(__dirname, './vendor/chill-project/chill-bundles/assets/translator'),
|
translator: resolve(__dirname, './vendor/chill-project/chill-bundles/assets/translator')
|
||||||
});
|
});
|
||||||
|
|
||||||
// populate config with chill entries
|
// populate config with chill entries
|
||||||
|
|||||||
Reference in new issue
Block a user