Skip to content

Commit

Permalink
fix: Fixed confis and installation
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Sep 26, 2023
1 parent 8b9f6b8 commit ed5e5e5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ volumes:
services:
redis:
container_name: ddev-${DDEV_SITENAME}-redis
image: redis:${DDEV_REDIS_VERSION:-6}-alpine
image: redis:${DDEV_REDIS_VERSION:-6-alpine}
command: /etc/redis/conf/redis.conf
volumes:
- '.:/mnt/ddev_config'
Expand Down
19 changes: 16 additions & 3 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ pre_install_actions:

# list of files and directories listed that are copied into project .ddev directory
project_files:
- docker-compose.redis.yaml
- commands/redis/redis
- commands/redis/redis-flush
- redis/scripts/settings.ddev.redis.php
- redis/scripts/setup-drupal-settings.sh
- redis/redis.conf
- commands/redis/redis
- redis/advanced.conf
- redis/append.conf
- redis/general.conf
- redis/io.conf
- redis/memory.conf
- redis/network.conf
- redis/security.conf
- redis/snapshots.conf
- docker-compose.redis.yaml

# List of files and directories that are copied into the global .ddev directory
global_files:
Expand All @@ -17,7 +26,11 @@ post_install_actions:
- |
#ddev-nodisplay
#ddev-description:Install redis settings for Drupal 9+ if applicable
redis/scripts/setup-drupal-settings.sh
bash redis/scripts/setup-drupal-settings.sh
- |
#ddev-description: Change the redis dump filename
#
sed -i "s/REPLACE_ME/${DDEV_SITENAME}/g" redis/snapshots.conf
removal_actions:
- |
Expand Down
2 changes: 1 addition & 1 deletion redis/advanced.conf
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ rdb-save-incremental-fsync yes

############################## DEBUG COMMAND #############################

enable-debug-command yes
# enable-debug-command yes

########################### ACTIVE DEFRAGMENTATION #######################
#
Expand Down
2 changes: 1 addition & 1 deletion redis/append.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ appendfilename "appendonly.aof"
# directory. The name of the directory is determined by the appenddirname
# configuration parameter.

appenddirname "append"
# appenddirname "append"

# The fsync() call tells the Operating System to actually write data on disk
# instead of waiting for more data in the output buffer. Some OS will really flush
Expand Down
3 changes: 2 additions & 1 deletion tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ setup() {
set -eu -o pipefail

export ADDON_DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )/.."
export PROJECT=testproj
export PROJECT=testproject
export TEST_DIR="$HOME/tmp/$PROJECT"
export DDEV_NON_INTERACTIVE=true

Expand Down Expand Up @@ -68,6 +68,7 @@ health_checks() {
teardown() {
set -eu -o pipefail
cd "$TEST_DIR" || ( printf "unable to cd to $TEST_DIR\n" && exit 1 )
ddev logs -s redis
ddev stop
ddev delete -Oy "$PROJECT" >/dev/null 2>&1
[ "$TEST_DIR" != "" ] && rm -rf "$TEST_DIR"
Expand Down

0 comments on commit ed5e5e5

Please sign in to comment.