diff options
Diffstat (limited to 's2i')
-rwxr-xr-x | s2i/bin/assemble | 8 | ||||
-rwxr-xr-x | s2i/bin/run | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble index 918395e..b82b59b 100755 --- a/s2i/bin/assemble +++ b/s2i/bin/assemble @@ -23,4 +23,10 @@ echo "---> Installing application source..." cp -Rf /tmp/src/. ./ echo "---> Building application from source..." -# TODO: Add build steps for your application, eg npm install, bundle install, pip install, etc. +if test -f Gemfile; then + bundle exec jekyll build +else + jekyll build +fi +cd _site +cp -a . /var/www/html diff --git a/s2i/bin/run b/s2i/bin/run index f726e00..9d031e9 100755 --- a/s2i/bin/run +++ b/s2i/bin/run @@ -7,4 +7,4 @@ # https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md # -exec asdf -p 8080 +exec /usr/sbin/httpd |