Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to change for additional steps #86

Closed
chargio opened this issue May 20, 2017 · 5 comments
Closed

Document how to change for additional steps #86

chargio opened this issue May 20, 2017 · 5 comments

Comments

@chargio
Copy link

chargio commented May 20, 2017

It is possible to perform additional steps (i.e. update bundler)?

@chargio
Copy link
Author

chargio commented May 20, 2017

I've create more .s2i/save-artifacts and .s2i/assemble (with execution rights). But nothing happens

@chargio
Copy link
Author

chargio commented May 20, 2017

It was in .s2i/bin/assemble, now I've got passed that moment.
Executing

gem install bundler -f
npm install yarn
node_modules/yarn/bin/yarn install

@chargio
Copy link
Author

chargio commented May 20, 2017

The build got stuck with yarn ...:(
Modifying it for bower (deprecated, by the way)

@chargio
Copy link
Author

chargio commented May 20, 2017

My .s2i/bin/assemble file installs the latest bundler, bower, and install javascript:

#!/bin/bash
echo "Updating bundler to new version"
cd $HOME
gem install bundler -f
echo "moving bundler to /tmp/src"
cp -r ./bin /tmp/src
rm -rf ./bin/

echo "Executing original script:"
/usr/libexec/s2i/assemble
rc=$?

if [ $rc -eq 0 ]; then
    echo "After successful assembling"
    npm install bower
    node_modules/bower/bin/bower install
    echo "Finished install bower assets"
else
    echo "After failed assembling"
fi

exit $rc

@coreydaley
Copy link
Contributor

Documentation for how to perform additional instructions are located in the docs folder of this repository here: https://github.com/openshift/source-to-image/tree/master/docs

information specific to the assemble script is located in this user guide: https://github.com/openshift/source-to-image/blob/master/docs/user_guide.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants