aboutsummaryrefslogtreecommitdiffstats
path: root/s2i/bin/assemble
blob: e02945b6dd03c27e8a89d66055cc5452a8ea3d02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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
cd /opt/app-root
set

echo "---> Installing application source ..."
rm -rf /tmp/src/.git
pwd
ls -la
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 ./