X-Git-Url: http://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=blobdiff_plain;f=dist%2Fcontainers%2Fargeo2-tp;h=bf3994993fda5c883e7c00e819732ae8fc874baa;hp=c2f77bfaaa1a2dae42221f4db4dd6668075c4828;hb=f0c115ab3b4d31ce6af04bba072229602196259f;hpb=694e2a2f528fcb8b0c24d915c976fe5b5f99715d diff --git a/dist/containers/argeo2-tp b/dist/containers/argeo2-tp index c2f77bfaa..bf3994993 100755 --- a/dist/containers/argeo2-tp +++ b/dist/containers/argeo2-tp @@ -1,6 +1,7 @@ #!/bin/sh -container=$(buildah from ubi8/ubi-minimal) +source "$(dirname "$0")/buildah-metadata" +container=$(buildah from argeo2-java:openjdk-v$VERSION_JAVA) source "$(dirname "$0")/buildah-common" @@ -8,22 +9,20 @@ buildah config --label release="1" $container buildah config --label version="$VERSION_ARGEO_TP" $container # Metadata -buildah config --label name="argeo2-tp-openjdk11-ubi8" $container -buildah config --label summary="Argeo 2 OSGi Third Parties based on OpenJDK 11 and Red Hat UBI 8" $container - -# Java 11 -buildah run $container -- microdnf install java-11-openjdk-headless +buildah config --label name="argeo2-tp" $container +buildah config --label description="Argeo 2 OSGi Third Parties" $container +buildah config --label url=https://hub.docker.com/repository/docker/argeo/argeo2-tp $container # Argeo buildah run $container -- rpm -Uvh http://repo.argeo.org/rpm/argeo2-release-latest-7.noarch.rpm # Argeo Third Parties buildah run $container -- microdnf install argeo-cms-e4-rap-tp osgi-boot-equinox -# Argeo OSGi Boot -buildah run $container -- microdnf install osgi-boot # Configuration 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 buildah config --workingdir /var/lib/argeo $container buildah config --volume /var/lib/argeo $container -buildah commit $container argeo2-tp:latest +buildah commit --rm --format docker $container argeo2-tp:v$VERSION_ARGEO_TP +buildah push argeo2-tp:v$VERSION_ARGEO_TP docker://argeo/argeo2-tp:v$VERSION_ARGEO_TP +buildah push argeo2-tp:v$VERSION_ARGEO_TP docker://argeo/argeo2-tp:latest