-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Kafka Messenger] Update CI, update dependencies, Upgrade to PHP 8.1
- Loading branch information
1 parent
d5230da
commit 485cffa
Showing
43 changed files
with
535 additions
and
457 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
FROM php:8.1-fpm-alpine | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
ENV PATH=$HOME/.composer/vendor/bin:$PATH | ||
|
||
# Download script to install PHP extensions and dependencies | ||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync | ||
|
||
# install system utilities | ||
RUN apk add --no-cache \ | ||
curl \ | ||
nano \ | ||
git \ | ||
zip unzip | ||
|
||
# Install dev libraries | ||
RUN apk add --no-cache \ | ||
icu-dev \ | ||
libpq-dev \ | ||
libxml2-dev \ | ||
librdkafka-dev \ | ||
unixodbc-dev | ||
|
||
# Install PHP | ||
RUN install-php-extensions \ | ||
bz2 \ | ||
pcntl \ | ||
intl \ | ||
zip \ | ||
sockets \ | ||
xdebug-stable \ | ||
rdkafka-stable \ | ||
@composer | ||
|
||
# Configure PHP | ||
COPY conf/conf.d/docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | ||
COPY conf/php.development.ini /usr/local/etc/php/php.ini | ||
|
||
WORKDIR /var/www/html | ||
|
||
CMD sleep infinity |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
#! /bin/bash | ||
end=$((SECONDS+60)) | ||
END=$((SECONDS+60)) | ||
SLEEP_TIME_BEFORE_RECONNECT=5 | ||
|
||
while [ $SECONDS -lt $end ]; do | ||
while [ $SECONDS -lt $END ]; do | ||
if echo dump | nc localhost 2181 | grep broker ; then | ||
exit 0 | ||
else | ||
echo "Kafka didn't start in time" | ||
echo "$(date) - Trying connect to kafka:2181" | ||
fi | ||
sleep 1 | ||
done | ||
sleep $SLEEP_TIME_BEFORE_RECONNECT | ||
done | ||
|
||
echo "$(date) - Connection to kafka:2181 established" |
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.