forked from pact-foundation/pact-php
-
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.
feat: demo pact ffi musl converted to dynamic .so for alpine
- Loading branch information
Showing
3 changed files
with
55 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM php:8.3-alpine | ||
RUN apk add --no-cache linux-headers libffi-dev protoc protobuf-dev musl-dev autoconf gcc g++ make | ||
COPY --from=composer/composer:2-bin /composer /usr/local/bin/composer | ||
RUN docker-php-ext-install sockets | ||
RUN docker-php-ext-install ffi | ||
RUN pecl install grpc | ||
RUN echo 'extension=grpc.so' >> /usr/local/etc/php/conf.d/grpc.ini | ||
RUN curl -LO https://github.com/YOU54F/pact-plugins/releases/download/pact-plugin-cli-v0.1.3/pact-plugin-cli-linux-$(uname -m)-musl.gz && \ | ||
gunzip pact-plugin-cli-linux-$(uname -m)-musl.gz && \ | ||
chmod +x pact-plugin-cli-linux-$(uname -m)-musl && \ | ||
mv pact-plugin-cli-linux-$(uname -m)-musl /usr/local/bin/pact-plugin-cli | ||
|
||
RUN pact-plugin-cli install --yes https://github.com/you54f/pact-protobuf-plugin/releases/tag/v-0.3.14 | ||
RUN pact-plugin-cli install --yes https://github.com/you54f/pact-plugins/releases/tag/csv-plugin-0.0.6 |
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