Skip to content

Commit

Permalink
Merge pull request #12 from kool-dev/fix_build
Browse files Browse the repository at this point in the history
Fix Build
  • Loading branch information
dbpolito authored Oct 5, 2023
2 parents 1681431 + 5be8fb9 commit b8d2fc2
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI/CD

on: [push, workflow_dispatch]
on: [push, pull_request, workflow_dispatch]

env:
DOCKER_BUILDKIT: 1
Expand Down
8 changes: 6 additions & 2 deletions 8.0-nginx-swoole-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.0-nginx-prod

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.0-nginx-swoole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.0-nginx

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.1-nginx-swoole-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.1-nginx-prod

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.1-nginx-swoole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.1-nginx

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.2-nginx-swoole-prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.2-nginx-prod

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
8 changes: 6 additions & 2 deletions 8.2-nginx-swoole/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM kooldev/php:8.2-nginx

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@ RUN docker-php-ext-install sockets && \
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*
2 changes: 2 additions & 0 deletions kool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ scripts:
- docker build --pull -t kooldev/php:8.0-nginx-swoole-prod 8.0-nginx-swoole-prod
- docker build --pull -t kooldev/php:8.1-nginx-swoole 8.1-nginx-swoole
- docker build --pull -t kooldev/php:8.1-nginx-swoole-prod 8.1-nginx-swoole-prod
- docker build --pull -t kooldev/php:8.2-nginx-swoole 8.2-nginx-swoole
- docker build --pull -t kooldev/php:8.2-nginx-swoole-prod 8.2-nginx-swoole-prod
8 changes: 6 additions & 2 deletions template/Dockerfile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

RUN apk add libpq libpq-dev curl-dev

RUN docker-php-ext-install sockets && \
RUN apk add --no-cache --virtual .build-deps linux-headers && \
docker-php-ext-install sockets && \
docker-php-source extract && \
mkdir /usr/src/php/ext/swoole && \
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.0.tar.gz -o swoole.tar.gz && \
Expand All @@ -12,4 +13,7 @@
--enable-swoole-pgsql \
--enable-openssl \
--enable-sockets --enable-swoole-curl && \
docker-php-ext-install -j$(nproc) swoole
docker-php-ext-install -j$(nproc) swoole && \
# cleanup
apk del .build-deps && \
rm -rf /var/cache/apk/* /tmp/*

0 comments on commit b8d2fc2

Please sign in to comment.