Giter Site home page Giter Site logo

cloudfoundry-attic / cfdev Goto Github PK

View Code? Open in Web Editor NEW
227.0 27.0 67.0 19.13 MB

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit

License: Apache License 2.0

Shell 1.44% Go 97.60% Ruby 0.23% PowerShell 0.73%

cfdev's Introduction

Update on CF Dev

This repository is no longer receiving updates.


CF Dev

start


CF Dev is a distribution of Cloud Foundry designed to run on a developer’s laptop or workstation using native hypervisors and a fully functional BOSH Director. CF Dev gives application developers the full Cloud Foundry experience in a lightweight, easy to install package. CF Dev is intended for application developers who wish to develop and debug their application locally on a full-featured Cloud Foundry. CF Dev is also an excellent getting started environment for developers interested in learning and exploring Cloud Foundry.

Recommended system requirements

  • Operating system: MacOS 10.12+/Windows 10+/Linux (Note: Only the Ubuntu distro is currently suppported)
  • CPU: 2 Cores or more
  • Memory: 8 Gigabytes available memory
  • Disk: 60GB flash storage
  • Dependencies: QEMU and Libvirt for Linux
    • Ubuntu: sudo apt install qemu-kvm libvirt-bin libvirt-doc

Getting Started

Install

  1. Install the CF CLI
  2. Install the CF Dev plugin cf install-plugin -r CF-Community cfdev
  3. Run CF Dev cf dev start

Note: For more installation and configuration options, please see the FAQ.

Use BOSH

  1. Install BOSH CLI v2.
  2. Set environment variables to point BOSH to your CF Dev instance
    • Unix: eval "$(cf dev bosh env)"
    • Windows: cf dev bosh env | Invoke-Expression
  3. Run BOSH bosh <command you want to run>

Uninstall

To stop CF Dev run cf dev stop. This will completely stop and destroy the CF Dev VM.

To uninstall the CF Dev cf CLI plugin run cf uninstall-plugin cfdev.

To reclaim consumed disk space, delete your CF Dev directory:

  • Unix: rm -rf ~/.cfdev
  • Windows Remove-Item -Recurse ~/.cfdev

Features

  • Insecure Docker Registries: Invoke cf dev start with the -r flag to specify a comma separated list of insecure docker registries that will be available for use during the cf push process.

  • Proxy Support: Export HTTP_PROXY, HTTPS_PROXY, NO_PROXY environment variables during your terminal session to have them respected during the start process and within your CF Dev virtual machine. Not yet supported on the Linux platform.

  • Host Access: Access the host machine from within application containers using the host.cfdev.sh domain name.

  • TCP Routing: You can learn more about TCP Routing from within the Cloud Foundry platform here.

Telemetry

Here on the CF Dev team, we use telemetry to help us understand how our tool is being used. We value our users privacy, therefore all telemetry is completely anonymous. There is no way for anyone with the telemetry to identify who is using the CF Dev tool. In an effort to make our data as transparent as possible, we will be publishing aggregated anonymous usage data to this page periodically to help our user community understand how the tool is being used.

In addition to making this data completely anonymous, we require users to opt-in to allowing us to collect telemetry from their tool. Upon running $ cf dev start for the first time, we will prompt the user to opt-in to capturing analytics. Any time after that you can turn on/off telemetry by running $ cf dev telemetry --on/off.

You can learn more about what we do with telemetry here

Development

See Docs.

Community

FAQ

See FAQ.

cfdev's People

Contributors

aemengo avatar andyliuliming avatar christopherclark avatar dgodd avatar dgoddard avatar dprotaso avatar drnic avatar ekcasey avatar foresteckhardt avatar geofffranks avatar joaopapereira avatar ktpv avatar siennathesane avatar ssisil avatar teancom avatar xtreme-stevehiehn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cfdev's Issues

CF Login fails: Port 443 Connection Refused

cf login -a https://api.v3.pcfdev.io --skip-ssl-validation
API endpoint: https://api.v3.pcfdev.io
FAILED
Error performing request: Get https://api.v3.pcfdev.io/v2/info: dial tcp 10.144.0.34:443: getsockopt: connection refused

windows cf dev fails on deploying bosh director

When trying to start cf dev on a windows 10 machine, it fails while deploying the bosh director with the following message:

cf dev start: Failed to deploy the BOSH Director: process exited with status 1

I'm not sure where or how to look for more information to diagnose this problem.
output of version command:
D:\cf-dev>cf dev version
CLI: 0.0.10
cf: v4.3.0
cf-mysql: 36.15.0

Does cfdev download anything, on every start?

I downloaded cfdev. First time, as expected, it took a long time.

But on subsequent restarts (after stopping) of cf dev, it is taking 20+ minutes to start.
It already has the iso in ~/.cfdev/cache folder.
Does it download any bits on every restart?

Support for VMware Hypervisors

It looks like the wrappers around LinuxKit are currently only supporting HyperKit? I assume right now this is mac-Os only. Does your roadmap currently have any plans for supporting Fusion/Workstation?

cf login fails on cfdev with i/o timeout

PS C:\WINDOWS\system32> cf dev start
Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
Downloading Resources...
Creating the VM...=============>| 100.0%
Starting VPNKit...
Starting the VM...
Waiting for Garden...
Deploying the BOSH Director...
Deploying CF...
  Uploading ReleasesDeploying Mysql...
  Done (7m12s)

          ██████╗███████╗██████╗ ███████╗██╗   ██╗
         ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
         ██║     █████╗  ██║  ██║█████╗  ██║   ██║
         ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
         ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
          ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
                     is now running!

        To begin using CF Dev, please run:
            cf login -a https://api.dev.cfdev.sh --skip-ssl-validation

        Admin user => Email: admin / Password: admin
        Regular user => Email: user / Password: pass
PS C:\WINDOWS\system32> cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
API endpoint: https://api.dev.cfdev.sh
FAILED
Error performing request: Get https://api.dev.cfdev.sh/v2/info: dial tcp 10.144.0.34:443: i/o timeout
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.
PS C:\WINDOWS\system32> ping 10.144.0.34

Pinging 10.144.0.34 with 32 bytes of data:
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128

Ping statistics for 10.144.0.34:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C

Notes:

  • I am not behind a proxy
  • This is on Windows 10
  • Hyper-V console shows the cfdev VM

Issues connecting to Docker container running on localhost

If I start a service defined in a docker compose file:

version: "2"

services:
  my_service:
    image: my_service_image
    ports:
      - 8080:80

by running docker-compose up -d my_service, I can curl -i localhost:8080 from the command line on my machine and get a response from my service as expected.

If I deploy a basic app to CF Dev (for example, see here) by running cf push and try to run

cf ssh hello-world
curl -i host.pcfdev.io:8080

the curl request hangs, and eventually dies on the error curl: (7) Failed to connect to host.pcfdev.io port 8080: Connection timed out

On my local machine, I can also run

$ nc -vz localhost 8080
found 0 associations
found 1 connections:
     1:	flags=82<CONNECTED,PREFERRED>
	outif lo0
	src 127.0.0.1 port 63891
	dst 127.0.0.1 port 8080
	rank info not available
	TCP aux info available

Connection to localhost port 8080 [tcp/http-alt] succeeded!

but from within my hello-world app running nc -vz host.pcfdev.io 8080 also hangs and eventually results in the message

nc: connect to host.pcfdev.io port 8080 (tcp) failed: Connection timed out

Running nslookup host.pcfdev.io while ssh'd into my hello-world app gives the following:

Server:		169.254.0.2
Address:	169.254.0.2#53

Name:	host.pcfdev.io
Address: 192.168.65.1

I used to be able to use the host.pcfdev.io URL like I would use localhost so that my apps running in PCF Dev could send requests to apps running in Docker containers, but this no longer seems possible with CF Dev. Is there a new URL I should be using, or is this functionality no longer supported?

Installation fails on archlinux

Downloaded the plugin and tried installing it failed on my linux box . Error below


[ ~]$ cf install-plugin ~/Downloads/cfdev-v0.1-darwin
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin /home/rajesh/Downloads/cfdev-v0.1-darwin? [yN]
: y
fork/exec /home/rajesh/.cf/plugins/temp575906849/805106444: exec format error
File is not a valid cf CLI plugin binary.
FAILED


[~]$ uname -r
4.15.3-2-ARCH


CF dev panic

Running the latest CF CLI v.6.36.1 and 6.36.2, cf dev panics , i.e. no help text. I can use cf dev start as expected, but figured looking for help text might be a common first action.

$ cf install-plugin http://d3p1cc0zb2wjno.cloudfront.net/cfdev/cfdev-v0.0.4-darwin
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin http://d3p1cc0zb2wjno.cloudfront.net/cfdev/cfdev-v0.0.4-darwin? [yN]: y
Starting download of plugin binary from URL...
 8.78 MiB / 8.78 MiB [=================================================================================] 100.00% 2s
Installing plugin cfdev...
OK
Plugin cfdev 0.0.4 successfully installed.
xenophon:github stuartcharlton$ cf dev
panic: runtime error: index out of range

goroutine 1 [running]:
main.(*Plugin).Run(0xc4201f40f0, 0x4532400, 0xc42014c660, 0xc42001e1d0, 0x1, 0x1)
	/ext-go/1/src/code.cloudfoundry.org/cfdev/main.go:106 +0x40f
code.cloudfoundry.org/cli/plugin.Start(0x452a080, 0xc4201f40f0)
	/ext-go/1/src/code.cloudfoundry.org/cli/plugin/plugin_shim.go:34 +0x2a0
main.main()
	/ext-go/1/src/code.cloudfoundry.org/cfdev/main.go:81 +0x8db
xenophon:github stuartcharlton$ cf -v
cf version 6.36.1+e3799ad7e.2018-04-04

As a CF Dev user, I can access apps manager when I start up CF Dev in PCF mode

When I start up PCF when i run cf dev start -f pcf
Then I will see the following screen (with P before CFDEV)

Downloading Resources...
Starting VPNKit ...
Starting the VM...
Deploying the BOSH Director...
Deploying CF...

  ██████╗███████╗██████╗ ███████╗██╗   ██╗
 ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
 ██║     █████╗  ██║  ██║█████╗  ██║   ██║
 ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
 ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
  ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
             is now running!

To begin using CF Dev, please run:
    cf login -a https://api.v3.pcfdev.io --skip-ssl-validation

Admin user => Email: admin / Password: admin
Regular user => Email: user / Password: pass

To access Apps Manager  navigate here : https://apps.v3.pcfdev.io

And I can access apps manager at https://apps.v3.pcfdev.io

Yarn executable was not detected in the system

err

It took quite a while, but, I was able to get CF running locally! 😄
On pushing a vanilla Rails app, I got the yarn failure above.

Where do I go from here?

I can push the same app to PWS. Where is yarn handled there? Where do I specify it here?

Thanks,

Unable to sync assets with v0.0.2

Running cfdev v0.0.2

$ cf dev start
Downloading Resources...
Error encountered running 'start' : Unable to sync assets: resource server returned status code 404

As a CF Dev user, I can start CF Dev on Linux

Acceptance Criteria

Scenario : Start CF Dev on Linux

GIVEN I installed the cfdev linux binary as a CF CLI plugin
WHEN I run cf dev start
THEN I see the following output in my terminal

Downloading Resources...
Deploying the BOSH Director...
Deploying CF...

  ██████╗███████╗██████╗ ███████╗██╗   ██╗
 ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
 ██║     █████╗  ██║  ██║█████╗  ██║   ██║
 ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
 ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
  ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
             is now running!

To begin using CF Dev, please run:
    cf login -a https://api.v3.pcfdev.io --skip-ssl-validation

Admin user => Email: admin / Password: admin
Regular user => Email: user / Password: pass

AND CATS (for PCF) passes
AND I can target the VM BOSH director with v3.pcfdev.io (or any route, given that it's a wildcard)
AND CF Dev will be started without a VM or VPNKit

Scenario 2 : Set os in segment to Linux

GIVEN A user has opted in to collecting telemetry
WHEN CF Dev is started on a Linux machine
THEN all segment telemetry calls will set the OS to Linux


Developer Notes

  • NO_PROXY, HTTP_PROXY and HTTPS_PROXY need to be respected

Can't start the pcf dev using iso file

Hello everyone,

I'm trying to start the PCF Dev using the .iso file from this page: https://network.pivotal.io/products/pcfdev#/releases/152982

But during execution of the cf dev start command I've faced with next exception (I'm running command using an administrator mode):

PS C:\WINDOWS\system32> cf dev start -f C:\pcf\pcfdev-pas.v.2.0.18.0-build.0.75.0.iso -m 8096
Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
FAILED
cf dev start: adding aliases: exit status 1

As a CF Dev user, I can use a built in Mysql service

GIVEN I have started cf dev successfully
WHEN I run cf marketplace
THEN I will see the following output in the cli

$ cf marketplace
Getting services from marketplace in org cfdev-org / space cfdev-space as admin...
OK

service      plans        description
p-mysql     10mb, 20mb   MySQL databases on demand

As CF Dev user, I can specify a service that I want to start with the `-s` flag

Scenario : Filtering services

WHEN I pass in a service with the -s flag in cf dev start
THEN only the specified services will be started

Scenario : all specified CF Dev
WHEN I pass in all to the -s flag in cf dev start
THEN mysql service will be included in the cf dev instance

Scenario : none specified
WHEN I pass in none to the -s flag in cf dev start
THEN no services will be started

Progress bar for "Downloading Resources..."?

I'm personally aware how big BOSH + CF is, so as I watch Downloading Resources... Like a child on a long family car trip, I am definitely wondering "Are we there yet?"

Can we add a progress bar/estimate of time? Perhaps a new person thinks this Downloading Resources... is a quick thing and doesn't realise that on their slow Internet it might be hours?

documentation: disk space required

Hi, you should definitely mention ~ how much disk space will be needed to install cfdev with this. I tried it out, ran out of disk, and had to struggle quite a bit not to totally f... up my laptop..

Trigger request for root password sooner

As a regular user of cf dev stop and later cf dev start, and knowing that it takes 30 mins to bootstrap, I start the command and walk away. Only to come back in 10-30 mins to see it waiting for my root password.

Can we please trigger the prompts for user interactions (root password in this case) ASAP before going into other long running behaviour?

Merci
Nic

cf-dev install is timing out

Hi:

I am trying to install the cf-dev plugin on my macbook OS terminal with the stated command "cf install-plugin cfdev", but it fails with the following message "Get https://plugins.cloudfoundry.org/list: dial tcp: i/o timeout".

I tried increasing the environment variable "CF_DIAL_TIMEOUT" to 360 and it still gives me the same error of "i/o timeout", albeit after some time. My CF_CLI version is the latest at 6.37. I have tried reinstalling CF-CLI and connecting through two different wifi networks. Any advice would be much appreciated. Thank you.

MySQL service in pcfdev-pas.v.2.1.0

How do I create a MySQL instance in pcfdev-pas.v.2.1.0-build.0.8.0.dev?

I can see MySQL server, proxy and monitor running in bosh

mysql/b0197675-1fae-4d37-826c-50c19d7ddbcb running us-central1-a 10.144.0.132 379a6b1b-ef20-4067-449c-e543a9e07cfb large.disk -
mysql_monitor/92ab7fce-5458-40c7-bcac-1bf3c90c8d5e running us-central1-a 10.144.0.139 2545ca17-c79b-42ef-6691-bfd4b7b22dc8 micro -
mysql_proxy/6b05161f-48b9-47c4-b930-22b75a32d6c0 running us-central1-a 10.144.0.131 73af2c2a-491c-43da-6c58-80953521185d micro -

sudo: illegal option -- -

Trying to install on MacOs; I previously had an install of pcfdev on the same machine.

johns-MacBook-Pro-183:~ johnallwright$ cf install-plugin downloads/cfdev-v0.0.1-darwin
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin downloads/cfdev-v0.0.1-darwin? [yN]: y
Installing plugin cfdev...
OK
Plugin cfdev 0.0.1 successfully installed.
johns-MacBook-Pro-183:~ johnallwright$ cf dev start
Setting up IP aliases for the BOSH Director & CF Router (requires root privileges)
sudo: illegal option -- -
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] []
usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ...
Error encountered running 'start' : Unable to alias BOSH Director/CF Router IP: exit status 1

"cf dev start" not working on non-english windows environments

I installed the latest plugin (version 0.0.9) to the CF CLI on my Windows 10 environment and the command
cf dev start

failed with

C:\path\to\my\home\cf dev start
Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
Downloading Resources...
Creating the VM...=============>| 100.0%
FAILED
cf dev start: creating the vm: removing netowrk adapter: exit status 1

After some investigation in source code I found out that when constructing the powershell command, the english default name for the network adapter is tried to get removed (link to source):

cmd = exec.Command("powershell.exe", "-Command", fmt.Sprintf("Remove-VMNetworkAdapter "+
		"-VMName %s "+
		"-Name 'Network Adapter'",
		vm.Name))

Unfortunately, on non-english installations the adapter's default name is different (in german its "Netzwerkadapter"), hence the powershell command fails and cfdev can not be started :/.

Would be great to handle this properly, in worst case by using "" as name (as the command is intended to remove the default attached network adapter, it should be safe to use "" as there are no other adapters at that point).

CF Dev does not fully expose TCP Routes / Non-standard Ports

CF Dev should allow a TCP route / non-standard port to be fully exposed to the host. Three versions/setups were tested and failed:

  • 0.0.11 (no iso)
  • 0.0.10 (no iso)
  • 0.0.9 + pcfdev-pas.v.2.0.20.0-build.0.82.0.iso

However, these VirtualBox-based local CF installations succeeded:

All were tested with an analogous setup. See "Repro Steps" below.

For Simplicity, use a Docker Image

We don't have to make our own CF app. Per the docs, we can use a Docker image that uses an EXPOSE directive with a non-standard port:

If you specify the EXPOSE directive, then the corresponding app pushed to Cloud Foundry listens on that exposed port.

Repro Steps

Note: Using Windows Powershell syntax. You may need to adjust slightly based on your OS.

1. Discover the default TCP router-group GUID and modify the port range to include the port we are interested in (in this case we are testing with the default Redis port, so 6379)

PS C:\path> cf curl /routing/v1/router_groups
PS C:\path> $json=@"
>> {\"reservable_ports\": \"1024-6399\"}
>> "@
PS C:\path> cf curl /routing/v1/router_groups/d6962e2e-7099-4f79-79d8-aef0612cde04 -X PUT -d $json 

2. Create a TCP domain (IF your CF installation does not include one) using the TCP router-group exposed in Step (1).

PS C:\path> cf create-shared-domain tcp.MY-DOMAIN-NAME --router-group default-tcp

MY-DOMAIN-NAME might be dev.cfdev.sh or local.pcfdev.io or something else, depending on your install. @emalm in Issue 301 also suggested just using the IP address directly.

3. Push an app with a non-standard port and map a TCP route to it.

PS C:\path> cf push myredis -o redis --no-route
PS C:\path> cf map-route myredis tcp.MY-DOMAIN-NAME --port 6379

4. Test access to the port from the host.

PS C:\path> redis-cli -h tcp.MY-DOMAIN-NAME ping
PS C:\path> telnet tcp.MY-DOMAIN-NAME 6379

As a CF Dev User, I can resume where I left off in cf dev start

Scenario : Resume CF Dev Start

GIVEN I am resuming a cf dev start process that was killed before completing
WHEN I run cf dev start
THEN I should see a progress bar that reflects how far along I previously was with the start process
AND the progress bar should indicate how much longer I have in the start process

Please configure GITBOT

Pivotal provides the Gitbot service to synchronize issues and pull requests made against public GitHub repos with Pivotal Tracker projects.

If you are a Pivotal employee, you can configure Gitbot to sync your GitHub repo to your Pivotal Tracker project with a pull request.

Steps:

  • Fork this repo: cfgitbot-config (an ask+cf@ ticket is the fastest way to get read access if you get a 404)
  • Add the Toolsmiths-Bots team to have admin access to your repo
  • Add the cf-gitbot ([email protected]) user to have owner access to your Pivotal Tracker project
  • Add your new repo and or project to config-production.yml file
  • Submit a PR, which will get auto-merged if you've done it right

If you are not a pivotal employee, you can request that [email protected] set up the integration for you.

You might also be interested in configuring GitHub's Service Hook for Tracker on your repo so you can link your commits to Tracker stories. You can do this yourself by following the directions at:

https://www.pivotaltracker.com/blog/guide-githubs-service-hook-tracker/

If you do not want to use Pivotal Tracker to manage this GitHub repo, Please add this repo to the Ignored repositories list

If there are any questions, please reach out to [email protected].

cf dev start: Failed to deploy services: unable to parse bosh config: yaml: line 1: mapping values are not allowed in this context

Hi devs,
After having workarounded the issue with non-english environment on Windows, I now stumbled upon another issue:

Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
Downloading Resources...
Creating the VM...=============>| 100.0%
Starting VPNKit...
Starting the VM...
Waiting for Garden...
Deploying the BOSH Director...
Deploying CF...
  Uploading ReleasesFAILED
cf dev start: Failed to deploy services: unable to parse bosh config: yaml: line 1: mapping values are not allowed in this context

Any hint or idea where to look at?
The cache\cf-deps.iso file has been newly downloaded (size is 4.882.026..240 bytes), and from what I see there are no relevant logs on my windows machine that might help ...

As the VM is still up and running: Is there any way to log in to it (e. g. via SSH) and check guest machine logs? (if that could help at all)

Date on bosh instance is wrong so certificates aren't valid yet

On my laptop in GMT+10:

$ date
Wed  1 Aug 2018 13:42:07 AEST

So the GMT time would be 03:42:07.

But inside a cfdev bosh instance I see an older time:

# date
Wed Aug  1 00:14:32 UTC 2018

Amusing perhaps, but it means that the certificates I generate on my laptop are not yet valid for another 3.5 hours.

Any ideas about this?

Note: my cfdev is not recently deployed; so my guess is an ntp configuration issue. Are we configuring ntp?

What is root ca/ssl cert for uaa.v3.pcfdev.io?

I have a demo app [1] which accepts $UAA_CA_CERT_FILE as a reference to the UAA's custom root CA.

I'm having troubles figuring out where in the bosh -d cf manifest the root CA for the https://uaa.v3.pcfdev.io and https://login.v3.pcfdev.io is.

A good candidate looked like:

bosh int <(bosh -d cf manifest) --path /instance_groups/name=api/jobs/name=routing-api/properties/uaa/ca_cert

But its not working for the demo app:

bosh int <(bosh -d cf manifest) --path /instance_groups/name=api/jobs/name=routing-api/properties/uaa/ca_cert > tmp/cfdev-uaa.cert
export UAA_URL=https://uaa.v3.pcfdev.io
export UAA_CA_CERT=$(bosh int <(bosh -d cf manifest) --path /instance_groups/name=api/jobs/name=routing-api/properties/uaa/ca_cert)

docker run -ti -p 9292:9292 -e UAA_URL=$UAA_URL -e UAA_CA_CERT=$UAA_CA_CERT \
    starkandwayne/uaa-example-omniauth-login-only

(see [1] for setup of client + sample user)

But when the authorized grant returns back from my UAA, my client errors with:

D, [2018-08-02T08:52:03.100070 #13013] DEBUG -- omniauth: <---- no response due to exception: #<CF::UAA::SSLException: Invalid SSL Cert for https://login.v3.pcfdev.io/oauth/token. Use '--skip-ssl-validation' to continue with an insecure target>

What is the correct SSL cert/root CA for cfdev endpoints?

[1] https://github.com/starkandwayne/ultimate-guide-to-uaa-examples/tree/master/ruby/omniauth-login-only

As a CF Dev user, I can start PCF 2.1

Scenario: Startup PCF

When I run cf dev start -f pcf (given: cf dev start -f cf is the same as cf dev start)
Then I see (add P before CF Dev in ascii art)

Downloading Resources...
Starting VPNKit ...
Starting the VM...
Deploying the BOSH Director...
Deploying CF...

  ██████╗███████╗██████╗ ███████╗██╗   ██╗
 ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
 ██║     █████╗  ██║  ██║█████╗  ██║   ██║
 ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
 ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
  ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
             is now running!

To begin using CF Dev, please run:
    cf login -a https://api.v3.pcfdev.io --skip-ssl-validation

Admin user => Email: admin / Password: admin
Regular user => Email: user / Password: pass

And CATS (for PCF) passes
And I can target the VM BOSH director with v3.pcfdev.io (or any route, given that it's a wildcard)
And Components behave as in PCF 2.1 (https://docs.pivotal.io/pivotalcf/2-1/pcf-release-notes/runtime-rn.html)
And All PAS components are present (ex. credhub)

Notes

  • Provide a link to a binary in a private S3 bucket with a time-limited S3 access URL
  • Binary should point to PCF releases in the private S3 bucket, also using time-limited S3 access URL
  • Time limit should be 2 weeks
  • PCF stuff should be a separate iso
  • Only separate iso needs time-limited URL
  • Tearing apart tile is OK

bosh ssh

I need to set bosh deployment in order to "bosh ssh"
How do I set it? or can I even "bosh ssh"
Thanks

pcf dev not able to login windows10 Hyper-V

I am able to install pcf dev and windows Hyper-V successfully, but I am not able to login i am getting 502 bad gateway issues.
I am able to ping this server easily and getting the reply..
https://api.dev.cfdev.sh/V2/info -> getting 502 badgateway error. I am sitting behind proxy.. and configured https_proxy propertly

I am getting reply propertly if I ping 10.144.0.34
I am able to see the cfdev in Hyper-V terminal

Deploying concourse to cfdev

This is not an issue, but was wondering if anyone has successfully done it.
Is tweaking the concourse manifest to map to the cloud config do the trick?
Or anything else would be required? Just looking at concourse.
Will look at credhub etc later.

Cache the state of cf dev

Hello,

Could you add a feature to cache the state of cf dev to survive a restart quickly vs having going through a redeployment of bosh,cf and services on every start? 30 minutes to start cf dev is just too much to wait.

Progress Bar for Deploying CF

Hello,

Is there a way to add a progress bar to show the status of deploying BOSH and CF. Right now it feels like I am waiting for a long time and I do not know if its stuck or moving along.

As a CF Dev user, I can start run CF Dev on Windows 10 with Hyper-V framework

When I run cf dev start on Windows 10 without Virtualbox
Then I will see the following output:

Downloading Resources...
Starting VPNKit ...
Starting the VM...
Deploying the BOSH Director...
Deploying CF...

  ██████╗███████╗██████╗ ███████╗██╗   ██╗
 ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
 ██║     █████╗  ██║  ██║█████╗  ██║   ██║
 ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
 ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
  ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
             is now running!

To begin using CF Dev, please run:
    cf login -a https://api.v3.pcfdev.io --skip-ssl-validation

Admin user => Email: admin / Password: admin
Regular user => Email: user / Password: pass

And CATS passes
And I can target the VM BOSH director with v3.pcfdev.io (or any route, given that it's a wildcard)

Error downloading resources after installing the plugin

Vinay-Upadhya-MacBook-Pro:Downloads vupadhya$ cf install-plugin cfdev-v0.0.1-darwin

Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk.

Do you want to install the plugin cfdev-v0.0.1-darwin?> yes

Installing plugin cfdev-v0.0.1-darwin...
OK
Plugin cfdev v0.0.1 successfully installed.
Vinay-Upadhya-MacBook-Pro:Downloads vupadhya$ cf dev start
Setting up IP aliases for the BOSH Director & CF Router (requires root privileges)
Password:
Downloading Resources...
Error encountered running 'start' : Unable to sync assets: read tcp 192.168.0.201:49708->13.33.46.10:443: read: connection reset by peer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.