Skip to content

chore(*): add v1.24.3 version constraint, reformat install.yaml #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions install.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
name: redis-commander

dependencies:
- redis
- redis

# list of files and directories listed that are copied into project .ddev directory
project_files:
- docker-compose.redis-commander.yaml
- docker-compose.redis-commander_norouter.yaml
- commands/host/redis-commander
- docker-compose.redis-commander.yaml
- docker-compose.redis-commander_norouter.yaml
- commands/host/redis-commander


pre_install_actions:
# Ensure we're on DDEV 1.23+. It's required for the `redis-commander` command (launch by port).
- |
#ddev-nodisplay
#ddev-description:Checking DDEV version
(ddev debug capabilities | grep corepack >/dev/null) || (echo "Please upgrade DDEV to v1.23+ to enable launching." && false)
ddev_version_constraint: '>= v1.24.3'

post_install_actions:
- |
#ddev-description:If router disabled, directly expose port
#
if ( {{ contains "ddev-router" (list .DdevGlobalConfig.omit_containers | toString) }} ); then
printf "#ddev-generated\nservices:\n redis-commander:\n ports:\n - 1358:1358\n" > docker-compose.redis-commander_norouter.yaml
fi
Expand Down