debug redis

This commit is contained in:
Christian Winther 2024-01-17 14:13:38 +00:00
parent 6563d4d0b9
commit d8b37e6870
3 changed files with 11 additions and 7 deletions

View File

@ -188,14 +188,16 @@ jobs:
cache-from: type=gha,scope=${{ matrix.target_runtime }}-${{ matrix.php_base }}-${{ matrix.php_version }}
cache-to: type=gha,mode=max,scope=${{ matrix.target_runtime }}-${{ matrix.php_base }}-${{ matrix.php_version }}
# goss validate the image
#
# See: https://github.com/goss-org/goss
- uses: e1himself/goss-installation-action@v1
with:
version: "v0.4.4"
- name: Execute Goss tests
run: |
dgoss run \
-v "./.env.testing:/var/www/.env" \
-e EXPECTED_PHP_VERSION=${{ matrix.php_version }} \
-e PHP_BASE_TYPE=${{ matrix.php_base }} \
-e "EXPECTED_PHP_VERSION=${{ matrix.php_version }}" \
-e "PHP_BASE_TYPE=${{ matrix.php_base }}" \
${{ steps.meta.outputs.tags }}

View File

@ -128,18 +128,21 @@ services:
- "${DOCKER_DB_PORT_EXTERNAL}:3306"
redis:
image: redis:7
image: redis:7.2
container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-redis"
restart: unless-stopped
command: ["/etc/redis/redis.conf", "--requirepass", "${REDIS_PASSWORD:-}"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD:-}
env_file:
- ".env"
volumes:
- "${DOCKER_CONFIG_ROOT}/redis:/etc/redis"
- "${DOCKER_REDIS_DATA_PATH}:/data"
ports:
- "${DOCKER_REDIS_PORT_EXTERNAL}:6399"
- "${DOCKER_REDIS_PORT_EXTERNAL}:6379"
healthcheck:
interval: 10s
timeout: 5s
retries: 2
test: ["CMD", "redis-cli", "-p", "6399", "ping"]
test: ["CMD", "redis-cli", "-p", "6379", "ping"]

View File

@ -67,7 +67,6 @@ command:
- pdo_sqlite
- Phar
- posix
- random
- readline
- redis
- Reflection