Skip to content

Commit 4a70563

Browse files
committed
Add Support do Oci8
1 parent 413f349 commit 4a70563

File tree

5 files changed

+108
-0
lines changed

5 files changed

+108
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM kooldev/php:8.0-nginx-oci8-prod
2+
3+
RUN apk add libpq libpq-dev curl-dev
4+
5+
RUN docker-php-ext-install sockets && \
6+
docker-php-source extract && \
7+
mkdir /usr/src/php/ext/swoole && \
8+
curl -sfL https://github.com/swoole/swoole-src/archive/v5.0.1.tar.gz -o swoole.tar.gz && \
9+
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
10+
docker-php-ext-configure swoole \
11+
--enable-mysqlnd \
12+
--enable-swoole-pgsql \
13+
--enable-openssl \
14+
--enable-sockets --enable-swoole-curl && \
15+
docker-php-ext-install -j$(nproc) swoole

8.0-nginx-swoole-oci8/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM kooldev/php:8.0-nginx-oci8
2+
3+
RUN apk add libpq libpq-dev curl-dev
4+
5+
RUN docker-php-ext-install sockets && \
6+
docker-php-source extract && \
7+
mkdir /usr/src/php/ext/swoole && \
8+
curl -sfL https://github.com/swoole/swoole-src/archive/v5.0.1.tar.gz -o swoole.tar.gz && \
9+
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
10+
docker-php-ext-configure swoole \
11+
--enable-mysqlnd \
12+
--enable-swoole-pgsql \
13+
--enable-openssl \
14+
--enable-sockets --enable-swoole-curl && \
15+
docker-php-ext-install -j$(nproc) swoole
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM kooldev/php:8.1-nginx-prod
2+
3+
RUN apk add libpq libpq-dev curl-dev
4+
5+
RUN docker-php-ext-install sockets && \
6+
docker-php-source extract && \
7+
mkdir /usr/src/php/ext/swoole && \
8+
curl -sfL https://github.com/swoole/swoole-src/archive/v5.0.1.tar.gz -o swoole.tar.gz && \
9+
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
10+
docker-php-ext-configure swoole \
11+
--enable-mysqlnd \
12+
--enable-swoole-pgsql \
13+
--enable-openssl \
14+
--enable-sockets --enable-swoole-curl && \
15+
docker-php-ext-install -j$(nproc) swoole

8.1-nginx-swoole-oci8/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM kooldev/php:8.1-nginx
2+
3+
RUN apk add libpq libpq-dev curl-dev
4+
5+
RUN docker-php-ext-install sockets && \
6+
docker-php-source extract && \
7+
mkdir /usr/src/php/ext/swoole && \
8+
curl -sfL https://github.com/swoole/swoole-src/archive/v5.0.1.tar.gz -o swoole.tar.gz && \
9+
tar xfz swoole.tar.gz --strip-components=1 -C /usr/src/php/ext/swoole && \
10+
docker-php-ext-configure swoole \
11+
--enable-mysqlnd \
12+
--enable-swoole-pgsql \
13+
--enable-openssl \
14+
--enable-sockets --enable-swoole-curl && \
15+
docker-php-ext-install -j$(nproc) swoole

fwd-template.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,54 @@
4848
"path": "template/Dockerfile"
4949
}
5050
]
51+
},
52+
{
53+
"name": "8.0-nginx-swoole-oci8",
54+
"data": {
55+
"from": "kooldev/php:8.0-nginx-oci8"
56+
},
57+
"files": [
58+
{
59+
"name": "Dockerfile",
60+
"path": "template/Dockerfile"
61+
}
62+
]
63+
},
64+
{
65+
"name": "8.0-nginx-swoole-oci8-prod",
66+
"data": {
67+
"from": "kooldev/php:8.0-nginx-oci8-prod"
68+
},
69+
"files": [
70+
{
71+
"name": "Dockerfile",
72+
"path": "template/Dockerfile"
73+
}
74+
]
75+
},
76+
{
77+
"name": "8.1-nginx-swoole-oci8",
78+
"data": {
79+
"from": "kooldev/php:8.1-nginx"
80+
},
81+
"files": [
82+
{
83+
"name": "Dockerfile",
84+
"path": "template/Dockerfile"
85+
}
86+
]
87+
},
88+
{
89+
"name": "8.1-nginx-swoole-oci8-prod",
90+
"data": {
91+
"from": "kooldev/php:8.1-nginx-prod"
92+
},
93+
"files": [
94+
{
95+
"name": "Dockerfile",
96+
"path": "template/Dockerfile"
97+
}
98+
]
5199
}
52100
]
53101
}

0 commit comments

Comments
 (0)