Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit d3bc860

Browse files
author
Anthony Emengo
committed
Update documentation
[ci skip]
1 parent 35368e4 commit d3bc860

File tree

3 files changed

+96
-49
lines changed

3 files changed

+96
-49
lines changed

FAQ.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# FAQ
2+
3+
## Can I configure the working directory?
4+
5+
Yes you can, by exporting the environment variable `CFDEV_HOME` to your custom location before invoking CF Dev. All
6+
state used by the plugin will be contained in the that directory. By default, the working directory is set to `~/.cfdev`.
7+
8+
## `cf dev start` failed while deploying. It got stuck at _Progress x of 15 (55m10s)_.
9+
10+
Running an entire PAAS on one workstation is an ambitious endeavor and the workstation has to be performant enough
11+
for the task. The most common insufficiency is the disk speed due to CF Dev being such an disk I/O intensive process.
12+
As mentioned in our [recommended requirements](https://github.com/cloudfoundry-incubator/cfdev#recommended-system-requirements).
13+
No less than flash storage (i.e. SSDs) is recommended for use with CF Dev. If your workstation has an HDD, this is the most
14+
likely cause of issue.
15+
16+
We are always working towards reducing the footprint of CF Dev.
17+
18+
## The only service available is mysql. How do I get access to pivotal apps manager, rabbitmq, redis, spring-cloud-services?
19+
20+
A separate asset is needed. You can download the correct asset for your platform at
21+
[https://network.pivotal.io/products/pcfdev](https://network.pivotal.io/products/pcfdev).
22+
Then you perform a start with the downloaded asset specified via the `-f` flag, like so: `cf dev start -f ./pcfdev-v*.tgz`
23+
24+
## Why are the assets to download so big?
25+
26+
Under the hood, CF Dev is performing a [BOSH](https://bosh.io/docs/) deploy - but into containers rather than full-sized VMs.
27+
The significant bulk of what is packaged are those same assets that are needed for a deployment into a cloud provider.
28+
29+
## How do I inspect debugging information?
30+
31+
Logging information is written to various files in the `log` directory of the CF Dev working directory. If the working directory has not
32+
been reconfigured, it can be found in: `~/.cfdev/log`.
33+
34+
## What ports are available for use with TCP routing?
35+
36+
`1024 - 1049`.
37+
38+
## Is there a command to make more ports available?
39+
40+
No. Exposing ports to the VM can currently only be specified during the build process of the virtual machine.
41+
42+
## What is the pcfdev repository? https://github.com/pivotal-cf/pcfdev
43+
44+
pcfdev is our previous, _deprecated_ offering that satisfied the same use case: standing up a local Cloud Foundry environment.
45+
We have chosen to move away from it because its architecture made maintenance incredibly difficult. Engineers are no longer allocated to it
46+
and CF Dev is meant to supplant it completely. In addition to offering more recent version of CF internals and features, CF Dev
47+
make use of native hypervisors which offers better performance.
48+
49+
## Copyright
50+
51+
See [LICENSE](LICENSE) for details.
52+
Copyright (c) 2018 [Pivotal Software, Inc](http://www.pivotal.io/).

README.md

Lines changed: 44 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,75 @@
1-
![ci.cfdev.sh](http://ci.cfdev.sh/api/v1/teams/main/pipelines/cfdev/jobs/build-cli/badge)
2-
3-
```
4-
$ cf dev start
5-
Downloading Resources...
6-
Starting VPNKit ...
7-
Starting the VM...
8-
Deploying the BOSH Director...
9-
Deploying CF...
10-
11-
██████╗███████╗██████╗ ███████╗██╗ ██╗
12-
██╔════╝██╔════╝██╔══██╗██╔════╝██║ ██║
13-
██║ █████╗ ██║ ██║█████╗ ██║ ██║
14-
██║ ██╔══╝ ██║ ██║██╔══╝ ╚██╗ ██╔╝
15-
╚██████╗██║ ██████╔╝███████╗ ╚████╔╝
16-
╚═════╝╚═╝ ╚═════╝ ╚══════╝ ╚═══╝
17-
is now running!
1+
# CF Dev
182

19-
To begin using CF Dev, please run:
20-
cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
21-
22-
Admin user => Email: admin / Password: admin
23-
Regular user => Email: user / Password: pass
3+
![ci.cfdev.sh](http://ci.cfdev.sh/api/v1/teams/main/pipelines/cfdev/jobs/build-cli/badge)
244

25-
```
5+
![start](./docs/start.png)
266

277
***********************************
288

29-
CF Dev is a new 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.
30-
31-
## Prerequisites
32-
33-
* [CF CLI](https://github.com/cloudfoundry/cli)
34-
* Internet connection (or Dnsmasq or Acrylic) required for wildcard DNS resolution
35-
* Please note CF Dev only supports MacOS and Windows 10 at this time
9+
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.
3610

3711
## Recommended system requirements
38-
* Operating system: MacOS 10.12+/Windows 10+
12+
13+
* Operating system: MacOS 10.12+/Windows 10+/Linux
3914
* CPU: 2 Cores or more
4015
* Memory: 8 Gigabytes _available memory_
4116
* Disk: 60GB _flash_ storage
17+
* Dependencies: _QEMU_ and _Libvirt_ for Linux
18+
* Ubuntu: `sudo apt install qemu-kvm libvirt-bin libvirt-doc`
4219

43-
## Install
44-
1. _(if needed)_ Uninstall your existing PCF Dev plugin if it is installed `cf uninstall-plugin pcfdev`
45-
1. Install the CF Dev plugin `cf install-plugin -r CF-Community "cfdev"`.
46-
47-
## Start
48-
Run CF Dev `cf dev start`.
20+
## Getting Started
4921

22+
### Install
5023

51-
## Run BOSH with CF Dev
52-
1. _(if needed)_ Install [BOSH CLI v2](https://bosh.io/docs/cli-v2.html).
53-
1. Set environment variables to point BOSH to your CF Dev instance `eval "$(cf dev bosh env)"`.
54-
1. Run BOSH `bosh <command you want to run>`.
24+
1. Install the [CF CLI](https://github.com/cloudfoundry/cli)
25+
1. Install the CF Dev plugin `cf install-plugin -r CF-Community cfdev`
26+
1. Run CF Dev `cf dev start`
5527

56-
## Project Backlog
28+
### Use BOSH
5729

58-
Follow the CF Dev team's progress [here](https://github.com/cloudfoundry-incubator/cfdev/projects/1). This backlog contains a prioritized list of features and bugs the CF Dev team is working on. Check the project board for the latest updates on features and when they will be released.
30+
1. Install [BOSH CLI v2](https://bosh.io/docs/cli-v2.html).
31+
1. Set environment variables to point BOSH to your CF Dev instance
32+
* Unix: `eval "$(cf dev bosh env)"`
33+
* Windows: `cf dev bosh env | Invoke-Expression`
34+
1. Run BOSH `bosh <command you want to run>`
5935

60-
## Uninstall
36+
### Uninstall
6137

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

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

42+
To reclaim consumed disk space, delete your CF Dev directory:
43+
44+
* Unix: `rm -rf ~/.cfdev`
45+
* Windows `Remove-Item -Recurse ~/.cfdev`
46+
47+
## Features
48+
49+
* **Insecure Docker Registries:** Invoke `cf dev start` with the `-r` flag to specify a comma separated list of insecure docker registries that will be
50+
available for use during the `cf push` process.
51+
52+
* **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_
53+
your CF Dev virtual machine. _Not yet supported on the Linux platform_.
54+
55+
* **Host Access:** Access the host machine from within application containers using the `host.cfdev.sh` domain name.
56+
57+
* **TCP Routing:** You can learn more about TCP Routing from within the Cloud Foundry platform [here](https://github.com/cloudfoundry/routing-release#post-deploy-steps).
58+
6659
## Telemetry
6760

6861
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.
6962

70-
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`
63+
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`.
7164

7265
You can learn more about what we do with telemetry [here](https://github.com/cloudfoundry-incubator/cfdev/wiki/Telemetry)
7366

74-
## TCP Ports
67+
## Community
68+
69+
* [#cfdev on Cloudfoundry Slack](https://cloudfoundry.slack.com)
7570

76-
The tcp port range has been limited to 1024 - 1049 to prevent reaching file descriptor limits on some systems.
71+
* [Contributing](CONTRIBUTING.md)
7772

78-
## Contributing
73+
## FAQ
7974

80-
If you are interested in contributing to CF Dev, please refer to the [contributing guidelines](CONTRIBUTING.md).
75+
See [FAQ](FAQ.md).

docs/start.png

99.4 KB
Loading

0 commit comments

Comments
 (0)