Created
May 17, 2018 12:17
-
-
Save ekohl/874038637a21764914cc0c1f5b015749 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
if [[ ! -d foreman ]] ; then | |
git clone https://github.com/theforeman/foreman | |
( | |
cd foreman | |
cp config/settings.yaml.example config/settings.yaml | |
cp config/database.yml.example config/database.yml | |
bundle install --without mysql mysql2 postgresql libvirt journald telemetry vmware rackspace ovirt gce | |
npm install | |
) | |
fi | |
if [[ ! -d katello ]] ; then | |
git clone https://github.com/Katello/katello | |
( | |
cd foreman | |
echo "gemspec name: 'katello', path: '../katello', development_group: 'katello_dev'" > bundler.d/katello.local.rb | |
bundle install | |
) | |
( | |
cd katello | |
npm install | |
) | |
fi | |
cd foreman | |
rm -rf bundler.d/katello.local.rb public/webpack ../katello/public/webpack | |
echo "Building Foreman webpack" | |
NODE_ENV=production node_modules/.bin/webpack --bail --config config/webpack.config.js | |
ls -1 public/webpack | |
cat public/webpack/manifest.json | |
echo "Building Katello webpack" | |
echo "gemspec name: 'katello', path: '../katello', development_group: 'katello_dev'" > bundler.d/katello.local.rb | |
NODE_ENV=production node_modules/.bin/webpack --bail --config config/webpack.config.js --env.pluginName=katello | |
ls -1 ../katello/public/webpack/katello | |
cat ../katello/public/webpack/katello/manifest.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment