Skip to content

Commit c014d6e

Browse files
committed
Upstream tag fix
1 parent 4dd1205 commit c014d6e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
ARG BASE_TAG=php8.2-alpine
1+
ARG BASE_TAG=5.0.3-php8.2-alpine
2+
#php8.2-alpine -> = 5.1 swoole = alpine 3.19 = php 8.2 rc 18 with psql bug
23

34
# https://hub.docker.com/r/phpswoole/swoole
45
FROM phpswoole/swoole:$BASE_TAG
@@ -16,8 +17,6 @@ RUN set -ex \
1617
openssl \
1718
postgresql \
1819
postgresql-dev \
19-
php82=8.2.16-r0 \
20-
php82-pdo_pgsql=8.2.16-r0 \
2120
jpeg-dev \
2221
libpng-dev \
2322
libjpeg-turbo \
@@ -44,5 +43,5 @@ USER nobody
4443
# Expose the port nginx is reachable on
4544
EXPOSE 8080
4645

47-
# Let supervisord start nginx + octane
46+
# Let supervisord start nginx & php-fpm
4847
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

testpdo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
2-
$dsn = 'pgsql:host=host.docker.internal;port=5432;dbname=postgres';
2+
$dsn = 'pgsql:host=host.docker.internal;port=5432;dbname=vra_cloud_api';
33
try {
4-
$pdo = new PDO($dsn, 'postgres', 'password');
4+
$pdo = new PDO($dsn, 'sail', 'password');
55
echo "Connected successfully";
66
} catch (PDOException $e) {
77
echo "Connection failed: " . $e->getMessage();

0 commit comments

Comments
 (0)