You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,17 @@
1
1
# Change log
2
2
3
+
## 2.0.0
4
+
5
+
## Breaking changes
6
+
7
+
- Just like Bref v2, support for PHP 7.3 and 7.4 was dropped. PHP 8.0 or greater is required.
8
+
9
+
## Internal changes
10
+
11
+
These internal changes will not impact most users, however we list them in case you have an advanced use case:
12
+
13
+
- The "bref-extra" PHP extensions are now installed in the official Bref directory for PHP extensions: `/opt/bref/extensions`. They were previously installed in `/opt/bref-extra`.
Copy file name to clipboardExpand all lines: docs/create_your_own_extension_layer.md
+30-33Lines changed: 30 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,11 @@ FROM scratch
28
28
```
29
29
30
30
The environment variable `PHP_VERSION` is passed from the Makefile as an argument
31
-
to docker build. It may have values like: `73`, `74`, `80`. A docker image is created
31
+
to docker build. It may have values like: `80`, `81`. A docker image is created
32
32
for each `PHP_VERSION`. If the build procedure of your extension differs for each version,
33
33
you may use this variable to switch processing in Dockerfile.
34
34
35
-
There are some other env variables available,`PHP_BUILD_DIR` is `/tmp/build/php`, `INSTALL_DIR` is `/opt/bref`.
35
+
There are some other env variables available, like `PHP_BUILD_DIR` or `INSTALL_DIR`.
36
36
37
37
### Building your extension
38
38
@@ -47,6 +47,8 @@ RUN ./configure --with-pgsql=${INSTALL_DIR}
47
47
RUN make -j `nproc` && make install
48
48
49
49
RUN cp `php-config --extension-dir`/pgsql.so /tmp/pgsql.so
50
+
RUN echo 'extension=pgsql.so' > /tmp/ext.ini
51
+
RUN php /bref/lib-copy/copy-dependencies.php /tmp/pgsql.so /tmp/extension-libs
50
52
```
51
53
52
54
You may need to:
@@ -57,19 +59,23 @@ You may need to:
57
59
58
60
The Dockerfiles for [these](../layers) extensions could be very helpful.
59
61
62
+
> **Note**
63
+
> The `/bref/lib-copy/copy-dependencies.php` script will automatically copy system dependencies (libraries) used by the extension provided as a first argument.
64
+
60
65
### Copy files
61
66
62
67
The final extension layer is just a zip archive of files that overlay the PHP layer.
63
68
The extension and all related files that need to be installed should be placed `/opt`
64
69
directory in the final image.
65
70
66
71
```Dockerfile
67
-
RUN echo 'extension=/opt/bref-extra/pgsql.so' > /tmp/ext.ini
Note that the "Memcached" layer provides both extension for [Memcache](https://pecl.php.net/package/memcache) and [Memcached](https://pecl.php.net/package/memcached).
0 commit comments