Skip to content
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

Issue #410: Install the redis PHP extension in Tugboat #433

Merged
merged 5 commits into from
Feb 21, 2024
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
10 changes: 7 additions & 3 deletions scaffold/tugboat/steps/1-init.sh.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,16 @@ docker-php-ext-install gd
# of GD. Lullabot will likely be publishing an ADR recommending it too.
apt-get install -y imagemagick
{% if memory_cache_type == "memcached" %}
# Install the PHP memcache extension. The Drupal Redis module recommends
# phpredis so no PHP extension is required.
# Install the PHP memcache extension.

apt-get install -y zlib1g-dev
pecl install memcache
yes '' | pecl install -f memcache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I've never needed to do any of this in tugboat or CI - just pecl install <something>. What's up here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should run fine in non-interactive mode, but won't run without asking questions if you put that directly into the tugboat terminal - bit hard for me to test at the moment with our setup so just left it at what I can test directly

echo 'extension=memcache.so' > /usr/local/etc/php/conf.d/memcache.ini
{% elseif memory_cache_type == "redis" %}
# Install the PHP redis extension.

yes '' | pecl install -f redis
echo 'extension=redis.so' > /usr/local/etc/php/conf.d/redis.ini
{% endif %}

# Install node
Expand Down
Loading