Skip to content

Commit 769261e

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 3f2ee51 + 89296a9 commit 769261e

File tree

1 file changed

+29
-21
lines changed

1 file changed

+29
-21
lines changed

README.adoc

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// DO NOT EDIT THIS FILE IT IS GENERATED!!
22
= MMBase Docker Images
33
:toc:
4-
5-
4+
:tag: latest-jdk25
65

76
I created a few docker images to ease running and building MMBase in these new ages. Basically they are java 8, which is already a bit more modern then the latest releases back then. It shouldn't be a big issue to run on more recent jvm's so experimentally also java 25 images are built.
87

@@ -25,44 +24,36 @@ and `major java version` is either `8` or `25` currently.
2524
:leveloffset: +1
2625

2726

28-
= mmbase/env:latest
27+
= mmbase/env:{tag}
2928

3029
This is the base image which contains minimal tools to run MMBase.
3130
I.e. it is a debian image with java (8 or 25) and image magick.
3231

3332
To run the streams application 'ffmpeg' is needed, which be installed additionally.
3433

35-
Also a proper prompt and other convenience tools are installed.
34+
Also, a proper prompt and other convenience tools are installed.
3635

3736

3837

39-
= mmbase/tomcat:latest
38+
= mmbase/tomcat:{tag}
4039

4140
This image is based on `mmbase/env` and sets up also a tomcat. Without any application though. It basically serves as a base image for other images containing actual applications
4241

4342
E.g.
4443

45-
[source, Dockerfile]
44+
[source, Dockerfile, subs="attributes"]
4645
----
47-
from ghcr.io/mmbase/tomcat:latest
46+
FROM ghcr.io/mmbase/tomcat:{tag}
4847
48+
ARG MARIA_DB_VERSION=3.5.7
4949
50-
COPY target/oip-1.2-SNAPSHOT.war /tmp
51-
----
50+
RUN curl --fail -L https://repo1.maven.org/maven2/org/mariadb/jdbc/mariadb-java-client/${MARIA_DB_VERSION}/mariadb-java-client-${MARIA_DB_VERSION}.jar -o ${CATALINA_BASE}/lib/mariadb-java-client-${MARIA_DB_VERSION}.jar
5251
53-
= mmbase/example-webapp:latest
52+
# ON BUILD, the war in target/*.war will be used
5453
55-
This e.g. is then based on `mmbase/tomcat` but also installs the 'example-webapp' (currently `1.9-SNAPSHOT`)
56-
57-
You may run it like so:
58-
[source, base]
59-
----
60-
docker run --name mmbase-example-webapp -p 8080:8080 mmbase/example-webapp:latest
6154
----
6255

63-
This will start the 'example' application on 8080. It is running on a non-persistent hsql database then.
64-
65-
= mmbase/build:latest
56+
= mmbase/build:{tag}
6657

6758
This is currently used to https://github.com/mmbase/mmbase/actions[build MMBase].
6859

@@ -73,14 +64,31 @@ It contains the tools necessary for that. I.e. the build tools itself, but some
7364

7465
== Example
7566

76-
[source, bash]
67+
[source, bash, subs=attributes]
7768
----
7869
michiel@L824:(MMBase-1_9)~/github/mmbase/mmbase$ git remote -v
7970
origin [email protected]:mmbase/mmbase.git (fetch)
8071
origin [email protected]:mmbase/mmbase.git (push)
81-
michiel@L824:(MMBase-1_9)~/github/mmbase/mmbase$ docker run -it -v $HOME/.m2:/root/.m2 -v $(pwd):/work mmbase/build:latest
72+
michiel@L824:(MMBase-1_9)~/github/mmbase/mmbase$ docker run -it -v $HOME/.m2:/root/.m2 -v $(pwd):/work mmbase/build:{tag}
8273
root@101c0579daf9:/# cd /work/
8374
root@101c0579daf9:/work# mvn package
8475
----
8576

77+
= mmbase/commandserver:{tag}
78+
79+
This is an extension of `mmbase/env:{tag}` , which has the MMBase command server installed, and also ffmpeg.
80+
81+
= mmbase/example-webapp:latest
82+
83+
This e.g. is then based on `mmbase/tomcat` but also installs the 'example-webapp' (currently `1.9-SNAPSHOT`)
84+
85+
You may run it like so:
86+
[source, base]
87+
----
88+
docker run --name mmbase-example-webapp -p 8080:8080 mmbase/example-webapp:latest
89+
----
90+
91+
This will start the 'example' application on 8080. It is running on a non-persistent hsql database then.
92+
93+
8694
:leveloffset: -1

0 commit comments

Comments
 (0)