Work on SNAPSHOTs containers.
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 30 Jan 2020 06:55:31 +0000 (07:55 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 30 Jan 2020 06:55:31 +0000 (07:55 +0100)
dist/containers/argeo2-node-snapshots [new file with mode: 0755]
dist/containers/argeo2-snapshots.repo [new file with mode: 0644]
maven/assembly-descriptors/assemblies/a2-source-snapshots.xml [new file with mode: 0644]

diff --git a/dist/containers/argeo2-node-snapshots b/dist/containers/argeo2-node-snapshots
new file mode 100755 (executable)
index 0000000..d390ec0
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+source "$(dirname "$0")/buildah-metadata"
+container=$(buildah from argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH)
+
+# Override version
+buildah copy $container argeo2-snapshots.repo /etc/yum.repos.d/
+
+source "$(dirname "$0")/buildah-common"
+
+#buildah config --label release="1" $container
+#buildah config --label version="$VERSION_ARGEO_COMMONS" $container
+
+# Metadata
+buildah config --label name="argeo2-node" $container
+buildah config --label description="Argeo 2 Node" $container
+buildah config --label url=https://hub.docker.com/repository/docker/argeo/argeo2-node $container
+
+# Argeo Node
+buildah run $container -- microdnf install osgi-boot argeo-cms-e4-rap argeo-node
+buildah run $container -- microdnf clean all
+
+# Configuration
+buildah config --entrypoint '["/usr/sbin/argeoctl","start"]' $container
+buildah config --port 8080 $container
+
+buildah commit --rm --format docker $container argeo/argeo2-node:snapshots-$ARCH
+
+buildah push argeo/argeo2-node:snapshots-$ARCH docker://argeo/argeo2-node:snapshots-$ARCH
diff --git a/dist/containers/argeo2-snapshots.repo b/dist/containers/argeo2-snapshots.repo
new file mode 100644 (file)
index 0000000..39ccba5
--- /dev/null
@@ -0,0 +1,4 @@
+[argeo-osgi-staging]
+name=Argeo 2 OSGi (staging)
+baseurl=http://snapshots.argeo.org/rpm/testing/argeo-osgi-2/el7/
+gpgcheck=no
diff --git a/maven/assembly-descriptors/assemblies/a2-source-snapshots.xml b/maven/assembly-descriptors/assemblies/a2-source-snapshots.xml
new file mode 100644 (file)
index 0000000..bf796ac
--- /dev/null
@@ -0,0 +1,25 @@
+<assembly
+       xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+       <id>a2-source-snapshots</id>
+       <baseDirectory></baseDirectory>
+       <formats>
+               <format>dir</format>
+       </formats>
+       <dependencySets>
+               <dependencySet>
+                       <unpack>false</unpack>
+                       <outputFileNameMapping>${artifact.groupId}/${artifact.artifactId}-${artifact.version}.${artifact.extension}</outputFileNameMapping>
+                       <outputDirectory></outputDirectory>
+                       <useTransitiveDependencies>true</useTransitiveDependencies>
+                       <scope>runtime</scope>
+                       <includes>
+                               <include>*:*:jar:*-SNAPSHOT</include>
+                       </includes>
+                       <excludes>
+                               <exclude>*:*:pom:*</exclude>
+                       </excludes>
+               </dependencySet>
+       </dependencySets>
+</assembly>
\ No newline at end of file