Skip to content

Commit

Permalink
Merge pull request #24 from Quodatum/dev
Browse files Browse the repository at this point in the history
[mod] basex 11.6
  • Loading branch information
apb2006 authored Dec 3, 2024
2 parents 3e57e98 + 9f1659f commit d4c1457
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ name: multi-arch docker buildx
env:
JDK_IMAGE: eclipse-temurin:17-jre
JDK_TAG: 17-jre
BASEX_VER: https://files.basex.org/releases/11.5/BaseX115.zip
BASEX_TAG: basex-11.5
BASEX_VER: https://files.basex.org/releases/11.6/BaseX116.zip
BASEX_TAG: basex-11.6

on:
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build BaseX docker image with customisation from folder basex
# You probably dont't want to change this file but pass in the args you want
# You probably dont't want to change this file, instead pass in the args you want
# via buildx.yml or similar
# @created 2021-03
# @author="Andy Bunce"
ARG JDK_IMAGE=eclipse-temurin:17-jre
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 2024-12-03
* update BaseX to 11.6
# 2024-11-27
* update BaseX to 11.5
* update github actions versions
Expand Down
11 changes: 8 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,26 @@ docker run -p 28080:8080 \
```
## Supported JVM versions
Tested largely with `eclipse-temurin:17-jre`. This is based on ubuntu latest. It is used because it is available for all the supported platforms.

Java15+ is required to avoid possiblity of container termination due to resource limit policies.
See [OpenJDK's container awareness code](https://developers.redhat.com/articles/2022/04/19/java-17-whats-new-openjdks-container-awareness#recent_changes_in_openjdk_s_container_awareness_code)

*
## Dockerfile notes

### JVM options
#### inaccessibleobjectexception

This is only relevant when running BaseX versions compiled for `Java8` on JVMs 'Java9+`
* --add-opens java.base/java.net=ALL-UNNAMED
* --add-opens java.base/jdk.internal.loader=ALL-UNNAMED

[see](https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m)
See [How to solve InaccessibleObjectException ("Unable to make {member} accessible: module {A} does not 'opens {package}' to {B}") on Java 9?](https://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m)



## Docker-compose
@TODO
A simple case is provided in `samples` folder.
A more complex usage is shown [here](https://github.com/willhoeft-it/basex-oauth2/blob/8b9a830a6864dbfdb26abdcc9f34f6480c81f786/docker-compose.yml#L82)
## See also
The official BaseX image on docker hub. Currently unmaintained. More information at
[basex#2051](https://github.com/BaseXdb/basex/issues/2051)
Expand Down

0 comments on commit d4c1457

Please sign in to comment.