Move container build scripts
[lgpl/argeo-commons.git] / dist / containers / argeo2-tp
diff --git a/dist/containers/argeo2-tp b/dist/containers/argeo2-tp
deleted file mode 100755 (executable)
index a033ab0..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-source "$(dirname "$0")/buildah-metadata"
-container=$(buildah from argeo/argeo2-java:$ARCH)
-
-source "$(dirname "$0")/buildah-common"
-
-buildah config --label release="1" $container
-buildah config --label version="$VERSION_ARGEO_TP" $container
-
-# Metadata
-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
-buildah run $container -- microdnf clean all
-
-# 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 --rm --format docker $container argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH
-buildah tag argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH argeo/argeo2-tp:$ARCH
-
-buildah push argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH docker://argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH
-buildah push argeo/argeo2-tp:$ARCH docker://argeo/argeo2-tp:$ARCH