]> git.argeo.org Git - lgpl/argeo-commons.git/blob - dist/containers/argeo2-tp-openjdk
[maven-release-plugin] prepare release argeo-commons-2.1.83
[lgpl/argeo-commons.git] / dist / containers / argeo2-tp-openjdk
1 #!/bin/sh
2
3 container=$(buildah from ubi8/ubi-minimal)
4
5 buildah config --label release="1" $container
6 buildah config --label version="2.1.25" $container
7
8 source "$(dirname "$0")/buildah-common"
9
10 # Metadata
11 buildah config --label name="argeo2-tp-openjdk11-ubi8" $container
12 buildah config --label summary="Argeo 2 OSGi Third Parties based on OpenJDK 11 and Red Hat UBI 8" $container
13
14 # Java 11
15 buildah run $container -- microdnf install java-11-openjdk-headless
16
17 # Argeo
18 buildah run $container -- rpm -Uvh http://repo.argeo.org/rpm/argeo2-release-latest-7.noarch.rpm
19 # Argeo Third Parties
20 buildah run $container -- microdnf install argeo-cms-e4-rap-tp osgi-boot-equinox
21 # Argeo OSGi Boot
22 buildah run $container -- microdnf install osgi-boot
23
24 # Configuration
25 buildah config --entrypoint '["java","-Dosgi.bundles=org.argeo.osgi.boot.jar@start","-Dosgi.configuration=/var/lib/argeo/state","-Dosgi.data=/var/lib/argeo/data","-jar","/usr/share/osgi/boot/org.eclipse.osgi.jar","-console","2323"]' $container
26 buildah config --workingdir /var/lib/argeo $container
27 buildah config --volume /var/lib/argeo $container
28
29 buildah commit $container argeo2-tp:latest