blob: c8e04f6d0a9c04db74f3651add17121afca38793 (
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
|
#!/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 [[ "$1" == "-h" ]]; then
exec /usr/libexec/s2i/usage
fi
export HOME=/opt/app-root
cd $HOME
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 ./
|