How to Permanently enable SCL within OpenShift gears

Solution Unverified - Updated -

Issue

  • Trying to figure out the best way to permanently enable SCL within the OpenShift gear ssh sessions.
    • Specifically, we need to enable SCL mongodb24 so we can just run "mongo" to connect to our external databases.
      • I know there is the "scl enable mongodb24 'mongo '" command but this causes workflow problems for us outside of OpenShift!
      • I have looked into sourcing the SCL mongo script within "~/app-root/data/.bash_profile" and "/etc/profile.d" but both do not work because the gear ssh session calls the "rhcsh" script which overrides the needed exports.

Environment

  • OpenShift Enterprise 2.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.