Skip to content

Instantly share code, notes, and snippets.

@paulohrpinheiro
Last active September 9, 2015 15:29
Show Gist options
  • Save paulohrpinheiro/6460bb4be7046d8d06fa to your computer and use it in GitHub Desktop.
Save paulohrpinheiro/6460bb4be7046d8d06fa to your computer and use it in GitHub Desktop.
Primeiros comandos ao entrar no openshift
phrp@paulaum:~$ rhc ssh diy
Connecting to [email protected] ...
Enter passphrase for key '/home/phrp/.ssh/id_rsa':
*********************************************************************
You are accessing a service that is for use only by authorized users.
If you do not have authorization, discontinue use at once.
Any use of the services is subject to the applicable terms of the
agreement which can be found at:
https://www.openshift.com/legal
*********************************************************************
Welcome to OpenShift shell
This shell will assist you in managing OpenShift applications.
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Shell access is quite powerful and it is possible for you to
accidentally damage your application. Proceed with care!
If worse comes to worst, destroy your application with "rhc app delete"
and recreate it
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Type "help" for more info.
[diy-sysincloudit.rhcloud.com 55e5156a7628e1d752000132]\> export PS1="[\W]$ "
[55e5156a7628e1d752000132]$ cd $OPENSHIFT_DATA_DIR
[data]$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
[data]$ export PERLBREW_ROOT=$OPENSHIFT_DATA_DIR/perlbrew
[data]$ mkdir $PERLBREW_ROOT
[data]$ \wget -O - http://install.perlbrew.pl | bash
--2015-09-09 11:28:28-- http://install.perlbrew.pl/
Resolvendo install.perlbrew.pl... 217.70.184.38
Conectando-se a install.perlbrew.pl|217.70.184.38|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 302 Moved Temporarily
Localização: https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew-install [redirecionando]
--2015-09-09 11:28:29-- https://raw.githubusercontent.com/gugod/App-perlbrew/master/perlbrew-install
Resolvendo raw.githubusercontent.com... 23.235.39.133
Conectando-se a raw.githubusercontent.com|23.235.39.133|:443... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: 1254 (1,2K) [text/plain]
Salvando em: “STDOUT”
0% [ ] 0 --.-K/s
## Download the latest perlbrew
100%[================================================================================================================================>] 1.254 --.-K/s em 0s
2015-09-09 11:28:29 (208 MB/s) - escrito para a saída padrão [1254/1254]
## Installing perlbrew
perlbrew is installed: /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/bin/perlbrew
perlbrew root (/var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew) is initialized.
Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:
source /var/lib/openshift/55e5156a7628e1d752000132/app-root/data//perlbrew/etc/bashrc
Simply run `perlbrew` for usage details.
Happy brewing!
## Installing patchperl
## Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment