aboutsummaryrefslogtreecommitdiffstats
path: root/s2i/bin
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-21 14:25:37 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-21 14:25:37 +0100
commitc16cb9786491aa6db5160dabacc6c72b153c1e48 (patch)
treee79f231d2be555a493ea8f8543294906dae28825 /s2i/bin
downloads2i-virtio-spec-c16cb9786491aa6db5160dabacc6c72b153c1e48.tar.gz
first try ...
Diffstat (limited to 's2i/bin')
-rwxr-xr-xs2i/bin/assemble33
-rwxr-xr-xs2i/bin/run2
-rwxr-xr-xs2i/bin/usage12
3 files changed, 47 insertions, 0 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble
new file mode 100755
index 0000000..a6c5663
--- /dev/null
+++ b/s2i/bin/assemble
@@ -0,0 +1,33 @@
+#!/bin/bash -e
+#
+# S2I assemble script for the 'kraxel/s2i-jekyll' image.
+# The 'assemble' script builds your application source so that it is ready to run.
+#
+# For more information refer to the documentation:
+# https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
+#
+
+# If the 'kraxel/s2i-jekyll' assemble script is executed with the '-h' flag, print the usage.
+if [[ "$1" == "-h" ]]; then
+ exec /usr/libexec/s2i/usage
+fi
+
+set -e
+
+echo "---> Enabling s2i support in httpd24 image ..."
+source ${HTTPD_CONTAINER_SCRIPTS_PATH}/common.sh
+config_s2i
+
+echo "---> Installing application source ..."
+rm -rf /tmp/src/.git
+mv /tmp/src ./virtio-spec
+
+echo "---> Building virtio spec ..."
+(cd virtio-spec; sh makeall.sh)
+
+echo "---> Move docs output and cleanup ..."
+mkdir output
+cp -v virtio-spec/*.{html,css,pdf} output
+
+echo "---> Fix permissions ..."
+fix-permissions ./
diff --git a/s2i/bin/run b/s2i/bin/run
new file mode 100755
index 0000000..e63ae48
--- /dev/null
+++ b/s2i/bin/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${0}.httpd" "$@"
diff --git a/s2i/bin/usage b/s2i/bin/usage
new file mode 100755
index 0000000..9ca2b10
--- /dev/null
+++ b/s2i/bin/usage
@@ -0,0 +1,12 @@
+#!/bin/bash -e
+cat <<EOF
+This is the kraxel/s2i-virtio-spec S2I image:
+To use it, install S2I: https://github.com/openshift/source-to-image
+
+Sample invocation:
+
+s2i build <source code path/URL> kraxel/s2i-virtio-spec <application image>
+
+You can then run the resulting image via:
+docker run <application image>
+EOF