initial commit with apps from course repo
This commit is contained in:
25
s2i-build/.s2i/bin/assemble
Executable file
25
s2i-build/.s2i/bin/assemble
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# S2I assemble script for the 's2i-do288-httpd' 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
|
||||
# If the 's2i-do288-httpd' assemble script is executed with '-h' flag,
|
||||
# print the usage.
|
||||
exec /usr/libexec/s2i/usage
|
||||
fi
|
||||
|
||||
# Restore artifacts from the previous build (if they exist).
|
||||
#
|
||||
if [ "$(ls /tmp/artifacts/ 2>/dev/null)" ]; then
|
||||
echo "---> Restoring build artifacts..."
|
||||
mv /tmp/artifacts/. ./
|
||||
fi
|
||||
|
||||
echo "---> Copying source files to web server directory..."
|
||||
cp -Rf /tmp/src/. /var/www/html/
|
||||
|
||||
10
s2i-build/.s2i/bin/run
Executable file
10
s2i-build/.s2i/bin/run
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# S2I run script for the 's2i-do288-httpd' image.
|
||||
# The run script executes the server that runs your application.
|
||||
#
|
||||
# For more information see the documentation:
|
||||
# https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
|
||||
#
|
||||
|
||||
exec /usr/sbin/httpd -D FOREGROUND
|
||||
12
s2i-build/.s2i/bin/usage
Executable file
12
s2i-build/.s2i/bin/usage
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
cat <<EOF
|
||||
This is the s2i-do288-httpd S2I image:
|
||||
To use it, install S2I: https://github.com/openshift/source-to-image
|
||||
|
||||
Sample invocation:
|
||||
|
||||
s2i build git://<source code> s2i-do288-httpd <application image>
|
||||
|
||||
You can then run the resulting image via:
|
||||
docker run <application image>
|
||||
EOF
|
||||
Reference in New Issue
Block a user