]> git.argeo.org Git - lgpl/argeo-commons.git/blob - dist/containers/argeo2-tp
Deploy Java 11.
[lgpl/argeo-commons.git] / dist / containers / argeo2-tp
1 #!/bin/sh
2
3 source "$(dirname "$0")/buildah-metadata"
4 container=$(buildah from argeo/argeo2-java:$ARCH)
5
6 source "$(dirname "$0")/buildah-common"
7
8 buildah config --label release="1" $container
9 buildah config --label version="$VERSION_ARGEO_TP" $container
10
11 # Metadata
12 buildah config --label name="argeo2-tp" $container
13 buildah config --label description="Argeo 2 OSGi Third Parties" $container
14 buildah config --label url=https://hub.docker.com/repository/docker/argeo/argeo2-tp $container
15
16 # Argeo
17 buildah run $container -- rpm -Uvh http://repo.argeo.org/rpm/argeo2-release-latest-7.noarch.rpm
18 # Argeo Third Parties
19 buildah run $container -- microdnf install argeo-cms-e4-rap-tp osgi-boot-equinox
20 buildah run $container -- microdnf clean all
21
22 # Configuration
23 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
24 buildah config --workingdir /var/lib/argeo $container
25 buildah config --volume /var/lib/argeo $container
26
27 buildah commit --rm --format docker $container argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH
28 buildah tag argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH argeo/argeo2-tp:$ARCH
29
30 buildah push argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH docker://argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH
31 buildah push argeo/argeo2-tp:$ARCH docker://argeo/argeo2-tp:$ARCH