-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for php 8.3 and librdkafka 2.1.0, 2.1.1, 2.2.0, 2.3.0
- Loading branch information
Showing
21 changed files
with
6,062 additions
and
655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,9 @@ jobs: | |
fail-fast: true | ||
matrix: | ||
php: | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
- '8.3' | ||
defaults: | ||
run: | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM php:8.3-cli | ||
|
||
# enable ffi and install librdkafka | ||
ARG LIBRDKAFKA_VERSION=v2.3.0 | ||
ENV LIBRDKAFKA_VERSION=$LIBRDKAFKA_VERSION | ||
RUN set -e; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends git zip unzip gdb libffi-dev libc6-dev; \ | ||
docker-php-ext-configure ffi; \ | ||
docker-php-ext-install -j$(nproc) ffi pcntl; \ | ||
git clone --branch "${LIBRDKAFKA_VERSION}" --depth 1 https://github.com/confluentinc/librdkafka.git /tmp/librdkafka; \ | ||
cd /tmp/librdkafka; \ | ||
./configure; \ | ||
make; \ | ||
make install; \ | ||
ldconfig; \ | ||
apt-get autoremove -y; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
rm -rf /tmp/*; | ||
|
||
# install xdebug | ||
ARG XDEBUG_VERSION=beta | ||
RUN pecl install xdebug-${XDEBUG_VERSION}; \ | ||
docker-php-ext-enable xdebug; | ||
|
||
# install rdkafka ext - this is just required to run the compatibility tests | ||
ARG RDKAFKA_EXT_VERSION=6.x | ||
RUN git clone --branch "$RDKAFKA_EXT_VERSION" --depth 1 https://github.com/arnaud-lb/php-rdkafka.git /tmp/php-rdkafka; \ | ||
cd /tmp/php-rdkafka; \ | ||
phpize; \ | ||
./configure; \ | ||
make; \ | ||
make install; \ | ||
rm -rf /tmp/*; | ||
|
||
ENV COMPOSER_HOME /tmp | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
RUN useradd -Ms /bin/bash --user-group --uid 2000 phpdev; \ | ||
mkdir /app; \ | ||
chown phpdev -R /app; \ | ||
chown phpdev -R /tmp; | ||
|
||
USER phpdev | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.