How to install CloudFoundry on local server

前端 未结 5 1279
萌比男神i
萌比男神i 2021-02-04 12:02

I know that CF is made for running on multiple cloud services for one unified view of an microservice app. However, I would like to install and run the cloud foundry on my CentO

相关标签:
5条回答
  • 2021-02-04 12:24

    Setup CF (Cloud Foundry)

    ** UPDATE ** Probably the easiest way is PCF Dev https://pivotal.io/pcf-dev BOSH Lite gives you more options, but for most people just trying out CF I would recommend PCF Dev.

    Easiest way is to deploy CF using BOSH Lite. You will probably need 16gb of ram.

    Install Vagrant

    gem install vagrant
    

    Download BOSH Lite

    git clone https://github.com/cloudfoundry/bosh-lite
    

    Start up BOSH Lite

    cd bosh-lite
    vagrant up --provider=virtualbox
    

    Target Bosh Lite

    bosh target 192.168.50.4 lite
    

    username/password: admin/admin

    Add needed routes

    bin/add-route
    

    Download the Stemcell

    wget https://s3.amazonaws.com/bosh-warden-stemcells/bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz
    

    Install BOSH CLI

    gem install bosh_cli --no-ri --no-rdoc
    

    Upload the stemcell that BOSH Lite CF uses

    bosh upload stemcell bosh-stemcell-3147-warden-boshlite-ubuntu-trusty-go_agent.tgz
    

    Download CF

    git clone https://github.com/cloudfoundry/cf-release.git --recursive
    

    Generate the CF BOSH Lite manifest

    scripts/generate-bosh-lite-dev-manifest
    

    Create, Upload and Deploy release

    bosh create release --force && bosh upload release && bosh -n deploy
    

    ^^^ This will take awhile ^^^


    Work with CF

    Install CF CLI
    See instructions here:
    https://github.com/cloudfoundry/cli

    Login to CF

    cf login -a https://api.bosh-lite.com --skip-ssl-validation -u admin -p admin
    

    Create an org

    cf create-org org
    

    Create a space

    cf create-space space -o org
    

    Target org and space

    cf target -o org -s space
    

    Push App

    cf push
    

    That should do it!

    0 讨论(0)
  • 2021-02-04 12:25

    Just a heads up that the workflow for setting up a bosh-lite has changed: http://bosh.io/docs/bosh-lite.html

    I'd also suggest using cf-deployment instead of cf-release.

    0 讨论(0)
  • 2021-02-04 12:28

    The easiest way is to use the new PCF Dev. This runs well on machines with at least 8GB of RAM. Download and start it as described in the documentation

    After a few minutes you have a full working CF on your local machine having MySQL, Redis and RabbitMQ as marketplace services. Currently Apps Manager or Spring Cloud Services are missing but according to here these will be added in future releases as well.

    0 讨论(0)
  • 2021-02-04 12:31

    The simplest way to enjoy Stackato locally is to check Stackato Cloud Foundry Micro Cloud - http://docs.stackato.com/admin/setup/microcloud.html. You just need a virtualbox, then download the MicroCloud VM, run it in VirtualBox and voila you can start deploying microservices.

    With a decent Internet connection, you will be enjoying Cloud Foundry in like 5 minutes :)

    0 讨论(0)
  • 2021-02-04 12:36

    To deploy CF on a single server for educational purposes you may want to try out deploying CloudFoundry using BOSH Lite as described in the docs. Your server should at least have 16GB of RAM.

    0 讨论(0)
提交回复
热议问题