Cf application in Bluemix - install dependency package - ibm-cloud

I have a Spring Boot application deployed as a Cloud Foundry app on Bluemix. Unfortunately the core of this app depends on an external program (e.g. abc) which can be easily installed using apt-get install abc on a desktop environment.
Is there any way to install such a dependency in a cloud foundry environment?
Many thanks for your support
Luca

I'm working on a similar challenge with R and am using a soon-to-be-discontinued git repo which uses apt-get options to allow you to redirect your install into folders/directories where you have write authority during the staging process. You'll have to update your paths to ensure that you can access the installed code. The install process is multi-step,
define the alternate path for apt
define the path for your installation
update apt
use apt-get install ... to download the necessary packages and associated dependencies
use dpkg to install the downloaded packages

Related

Offline Ros Bridge Intallation / without internet

We want to install Ros Bridge to our server. But we don't have internet access on server. Is it possible we can install without internet?
Thank you...
You can download the package and all it's dependencies on a different device (with similar architecture) like
sudo apt-get install ros-<rosdistro>-rosbridge-server --download-only
This will place the packages at /var/cache/apt/archives. The files then can be used for installation without the need of downloading them again. So after moving them to your server, this can be done with
apt-get install ros-<rosdistro>-rosbridge-server

Install Nagios plugins - missing install instructional step?

I have Nagios XI installed and want to monitor remote Redhat machine using SSH. Installing the agent is likely not allowed in our environment.
This is from Nagios instruction from the page 2
Before you can use the check_by_ssh plugin, you must install/configure the following on the remote Linux/Unix server you want to
monitor:
● Create a nagios user
● Install Nagios plugins and/or monitoring scripts
● Install and configure the SSH daemon
I downloaded the Nagios official plugins(I believe there are 50 plugins) and extracted the files, but there is no instructional step for install command. I read the README file, but this seems to give me the steps of making the install files from the source, I think.
Is there a simple command that will run the install in order for me to install the plugins that will include check_by_ssh plugin?
This answer was given by Nagios support team:
Nagios Plugin Installation
cd /tmp/nagios-plugins-2.1.2
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

Enabling component manager in gcloud CLI

I made a fresh install of gcloud for ubuntu as instructed here. I want to use the additional components offered by gcloud like kubectl and docker.
So, when I tried typing gcloud components install kubectl, I get an error saying that The component manager is disabled for this installation. Here is the full error message:
This is because you installed google-cloud-sdk with a package manager like apt-get or yum.
kubectl:
If you look here you can see how to install additional components. Basically sudo apt-get install kubectl.
If by docker you mean the docker-credential-gcr then I don't know if there's a way to install using a package manager, can't seem to find it. Perhaps ou can try the github repo. Mind you, you don't need this for commands like gcloud docker -- push gcr.io/your-project/your-image:version.
If you mean actual docker for building images and running them locally, that's standalone software which you need to install separately, instructions here.
Alternatively, you can uninstall google-cloud-sdk with apt-get and then reinstall with interactive installer, which will support the suggested gcloud components install *

unable to install pg-native (libpq-dev) on ubuntu 14.04

I'm trying to install https://github.com/brianc/node-pg-native on a container.
Looks like I've to install postgresql (server) to install libpq-dev. I don't want to install postgresql server on a container, as it has to only connect to server.
I tried installing on postgresql-client but no use. I'm using ubuntu:14.04 . Any suggestions?
If I'm doing something completely please wrong let me know.
libpq-dev doesn't install the full server but does install a lot of development dependencies. The pg-native node module doesn't supply pre built binaries so you need to install all the dev dependencies for npm to complete the build for you.
If you are concerned about your image size, it is possible to build the node module in a build container with all the build dependencies to create a tar.gz of it. Then extract the built package into your app instead of using npm install. This can be done generally for all node modules to speed up your build process and remove all build tools from the docker image you run the application from.

how install rvm on RHL7 using centos repo

How to install rvm(ruby) on RHL7 using centos repo.
I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.
when I try to install ruby 1.93 using rvm I got this:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?
Our client does not have registered system with redhat, So I did configure centos repository.
But how can I tell RVM to use this centos repository?
I managed the problem running:
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc:
softwarecollections
For your case, they have software collection for Ruby193 and Ruby22.
On each page you will find instructions on how to use it.