mirror of
https://github.com/harness/drone.git
synced 2025-05-12 23:20:10 +08:00
Instructions for local development
This commit is contained in:
parent
854d3443d7
commit
9ecb97704a
12
README.md
12
README.md
@ -26,6 +26,7 @@ Interested in contributing? Great! Please read our [contributor guidelines](http
|
|||||||
* [Database Services](#databases)
|
* [Database Services](#databases)
|
||||||
* [Caching](#caching)
|
* [Caching](#caching)
|
||||||
* [Params Injection](#params-injection)
|
* [Params Injection](#params-injection)
|
||||||
|
* [Local development](#local-development)
|
||||||
* [Documentation and References](#docs)
|
* [Documentation and References](#docs)
|
||||||
|
|
||||||
### System
|
### System
|
||||||
@ -278,7 +279,7 @@ decrease overall build time. Examples include your `.npm`, `.m2`, `bundler`, etc
|
|||||||
|
|
||||||
```
|
```
|
||||||
cache:
|
cache:
|
||||||
- /usr/local/bin/go/pkg
|
- /usr/local/bin/go/pkg
|
||||||
```
|
```
|
||||||
|
|
||||||
This will cache the directory relative to the root directory of your repository:
|
This will cache the directory relative to the root directory of your repository:
|
||||||
@ -306,6 +307,15 @@ notify:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### Local development
|
||||||
|
|
||||||
|
Local Drone setup for development is pretty straightforward.
|
||||||
|
|
||||||
|
You will need to clone the repo, install Vagrant and run `vagrant up`.
|
||||||
|
This command will download base Ubuntu image, setup the virtual machine and build Drone.
|
||||||
|
|
||||||
|
Afterwards, you will need to [install Docker in this VM manually](http://docs.docker.io/en/latest/installation/ubuntulinux/).
|
||||||
|
|
||||||
### Docs
|
### Docs
|
||||||
|
|
||||||
* [drone.readthedocs.org](http://drone.readthedocs.org/) (Coming Soon)
|
* [drone.readthedocs.org](http://drone.readthedocs.org/) (Coming Soon)
|
||||||
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -14,7 +14,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
|
|
||||||
# FIXME: Maybe this is enough
|
# FIXME: Maybe this is enough
|
||||||
config.vm.provider "virtualbox" do |v|
|
config.vm.provider "virtualbox" do |v|
|
||||||
v.customize ["modifyvm", :id, "--memory", "1024"]
|
v.customize ["modifyvm", :id, "--memory", "2048"]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Drone by default runs on port 80. Forward from host to guest
|
# Drone by default runs on port 80. Forward from host to guest
|
||||||
|
Loading…
Reference in New Issue
Block a user