Skip to content

Instantly share code, notes, and snippets.

@mingalevme
Created March 1, 2020 11:46
Show Gist options
  • Select an option

  • Save mingalevme/c47c53e487729400aa3ccb7b1ef8adea to your computer and use it in GitHub Desktop.

Select an option

Save mingalevme/c47c53e487729400aa3ccb7b1ef8adea to your computer and use it in GitHub Desktop.

Revisions

  1. mingalevme created this gist Mar 1, 2020.
    7 changes: 7 additions & 0 deletions php-redis-custom-flags.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    NPROC=$(getconf _NPROCESSORS_ONLN)
    mkdir -p /usr/src/php/ext
    cd /usr/src/php/ext
    pecl bundle redis
    docker-php-ext-configure redis --enable-redis-igbinary --enable-redis-lzf
    docker-php-ext-install -j${NPROC} redis
    cd -
    6 changes: 6 additions & 0 deletions php-redis-default-flags.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
    && pecl install redis \
    && docker-php-ext-enable redis \
    && apk del pcre-dev ${PHPIZE_DEPS} \
    && rm -rf /tmp/pear