Skip to content

Commit 81de8bb

Browse files
authored
excimer support (#484)
1 parent 503c35c commit 81de8bb

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ functions:
5959
| Decimal | `${bref-extra:decimal-php-81}` |
6060
| DS | `${bref-extra:ds-php-81}` |
6161
| Elastic APM | `${bref-extra:elastic-apm-php-81}` |
62+
| Excimer | `${bref-extra:excimer-php-81}` |
6263
| GD | `${bref-extra:gd-php-81}` |
6364
| gnupg | `${bref-extra:gnupg-php-81}` |
6465
| GMP | `${bref-extra:gmp-php-81}` |

layers/excimer/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ARG PHP_VERSION
2+
ARG BREF_VERSION
3+
FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
4+
5+
RUN pecl install excimer
6+
RUN cp `php-config --extension-dir`/excimer.so /tmp/excimer.so
7+
RUN echo 'extension=excimer.so' > /tmp/ext.ini
8+
9+
# Build the final image with just the files we need
10+
FROM scratch
11+
12+
# Copy things we installed to the final image
13+
COPY --from=ext /tmp/excimer.so /opt/bref/extensions/excimer.so
14+
COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-excimer.ini

layers/excimer/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"php": [
3+
"80",
4+
"81",
5+
"82"
6+
]
7+
}

layers/excimer/test.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
if (!class_exists($class = 'ExcimerProfiler')) {
4+
echo sprintf('FAIL: Class "%s" does not exist.', $class).PHP_EOL;
5+
exit(1);
6+
}
7+
8+
exit(0);

0 commit comments

Comments
 (0)