]> git.argeo.org Git - lgpl/argeo-commons.git/blob - dist/containers/argeo2-node-snapshots
Make remote default workspace configurable via System properties.
[lgpl/argeo-commons.git] / dist / containers / argeo2-node-snapshots
1 #!/bin/sh
2
3 source "$(dirname "$0")/buildah-metadata"
4 container=$(buildah from argeo/argeo2-tp:$VERSION_ARGEO_TP-$ARCH)
5
6 # Override version
7 buildah copy $container argeo2-snapshots.repo /etc/yum.repos.d/
8
9 source "$(dirname "$0")/buildah-common"
10
11 #buildah config --label release="1" $container
12 #buildah config --label version="$VERSION_ARGEO_COMMONS" $container
13
14 # Metadata
15 buildah config --label name="argeo2-node" $container
16 buildah config --label description="Argeo 2 Node" $container
17 buildah config --label url=https://hub.docker.com/repository/docker/argeo/argeo2-node $container
18
19 # Argeo Node
20 buildah run $container -- microdnf install osgi-boot argeo-cms-e4-rap argeo-node
21 buildah run $container -- microdnf clean all
22
23 # Override settings
24 buildah copy $container dev-settings.sh /etc/argeo/settings.sh
25
26 # Configuration
27 buildah config --entrypoint '["/usr/sbin/argeoctl","start"]' $container
28 buildah config --port 8080 $container
29
30 buildah commit --rm --format docker $container argeo/argeo2-node:snapshots-$ARCH
31
32 buildah push argeo/argeo2-node:snapshots-$ARCH docker://argeo/argeo2-node:snapshots-$ARCH