martes, 10 de septiembre de 2019

Install Cloud Foundry y cflocal

Install Cloud Foundry y cflocal


https://docs.cloudfoundry.org/cf-cli/install-go-cli.html


bext@bext-G3-3779:~$ wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
[sudo] password for bext: 
OK
bext@bext-G3-3779:~$ echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
deb https://packages.cloudfoundry.org/debian stable main
bext@bext-G3-3779:~$ sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://mx.archive.ubuntu.com/ubuntu bionic InRelease                     
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]    
Ign:4 https://apt.datadoghq.com stable InRelease                               
Get:6 http://mx.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]   
Hit:7 https://apt.datadoghq.com stable Release                                 
Get:9 http://mx.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] 
Get:5 https://cf-cli-debian-repo.s3.amazonaws.com stable InRelease [2 665 B]   
Get:10 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [581 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [368 kB]
Get:12 https://cf-cli-debian-repo.s3.amazonaws.com stable/main amd64 Packages [9 165 B]
Get:13 https://cf-cli-debian-repo.s3.amazonaws.com stable/main i386 Packages [9 161 B]
Get:14 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [729 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [503 kB]
Get:16 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [263 kB]
Get:17 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [285 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [170 kB]
Get:19 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [70.9 kB]
Get:20 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [140 kB]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [22.6 kB]
Get:22 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [979 kB]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [10.4 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [31.7 kB]
Get:25 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1 003 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [6 712 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2 872 B]
Get:28 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [253 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB]
Get:31 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [200 kB]
Get:32 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Get:33 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [443 kB]
Get:34 http://mx.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [7 312 B]
Get:35 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [4 152 B]
Get:36 http://mx.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6 788 B]
Get:37 http://mx.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2 464 B]
Get:38 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4 688 B]
Get:39 http://mx.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7 916 B]
Get:40 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2 464 B]
Fetched 6 540 kB in 10s (680 kB/s)                                             
Reading package lists... Done
bext@bext-G3-3779:~$ sudo apt-get install cf-cli
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm7
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  cf-cli
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 6 012 kB of archives.
After this operation, 22.4 MB of additional disk space will be used.
Get:1 https://packages.cloudfoundry.org/debian stable/main amd64 cf-cli amd64 6.46.1 [6 012 kB]
Fetched 6 012 kB in 7s (851 kB/s)                                              
Selecting previously unselected package cf-cli.
(Reading database ... 185693 files and directories currently installed.)
Preparing to unpack .../cf-cli_6.46.1_amd64.deb ...
Unpacking cf-cli (6.46.1) ...
Setting up cf-cli (6.46.1) ...
bext@bext-G3-3779:~$ cf --help
bash: /snap/bin/cf: No such file or directory


Se cierra la terminal y se abre otra para limpiar

bext@bext-G3-3779:~$ cf
cf version 6.46.1+4934877ec.2019-08-23, Cloud Foundry command line tool
Usage: cf [global options] command [arguments...] [command options]

Before getting started:
  config    login,l      target,t
  help,h    logout,lo    

Application lifecycle:
  apps,a        run-task,rt    events
  push,p        logs           set-env,se
  start,st      ssh            create-app-manifest
  stop,sp       app            delete,d
  restart,rs    env,e          
  restage,rg    scale          

Services integration:
  marketplace,m        create-user-provided-service,cups
  services,s           update-user-provided-service,uups
  create-service,cs    create-service-key,csk
  update-service       delete-service-key,dsk
  delete-service,ds    service-keys,sk
  service              service-key
  bind-service,bs      bind-route-service,brs
  unbind-service,us    unbind-route-service,urs

Route and domain management:
  routes,r        delete-route    create-domain
  domains         map-route       
  create-route    unmap-route     

Space management:
  spaces         create-space    set-space-role
  space-users    delete-space    unset-space-role

Org management:
  orgs,o       set-org-role
  org-users    unset-org-role

CLI plugin management:
  plugins           add-plugin-repo      repo-plugins
  install-plugin    list-plugin-repos    

Commands offered by installed plugins:

Global options:
  --help, -h                         Show help
  -v                                 Print API request diagnostics to stdout

TIP: Use 'cf help -a' to see all commands.
bext@bext-G3-3779:~$ 

Ahora instalamos la version local

bext@bext-G3-3779:~$ cf install-plugin cflocal
Searching CF-Community for plugin cflocal...
Plugin cflocal 0.19.0 found in: CF-Community
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin cflocal? [yN]: y
Starting download of plugin binary from repository CF-Community...
 14.36 MiB / 14.36 MiB [===========================================] 100.00% 15s
Installing plugin cflocal...
OK

Plugin cflocal 0.19.0 successfully installed.
bext@bext-G3-3779:~$ 


Probamos cflocal
https://github.com/cloudfoundry-incubator/cflocal

eot

No hay comentarios:

Publicar un comentario