use .develop dockerfile, move docs to develop.md, add freqtrade_bash

This commit is contained in:
Ashton Honnecke 2019-09-26 09:22:49 -06:00
parent fe483ad011
commit 11bb7e520c
3 changed files with 53 additions and 50 deletions

View File

@ -1,48 +0,0 @@
# Local development
The fastest and easiest way to start up is to use docker-compose.develop which gives developers the ability to start the bot up with all the required dependencies, *without* needing to install any freqtrade specific dependencies on your local machine.
# Install
## git
``` bash
sudo apt install git
```
## docker
``` bash
sudo apt install docker
```
## docker-compose
``` bash
sudo apt install docker-compose
```
# Starting the bot
## Develop dockerfile
``` bash
rm docker-compose.yml && mv docker-compose.develop.yml docker-compose.yml
```
## Docker Compose
## Starting
``` bash
docker-compose up
```
![Docker compose up](https://user-images.githubusercontent.com/419355/65456322-47f63a80-de06-11e9-90c6-3c74d1bad0b8.png)
### Rebuilding
``` bash
docker-compose build
```
### Execing (effectively SSH into the container)
The `exec` command requires that the container already be running, if you want to start it
that can be effected by `docker-compose up` or `docker-compose run freqtrade_develop`
``` bash
docker-compose exec freqtrade_develop /bin/bash
```
![image](https://user-images.githubusercontent.com/419355/65456522-ba671a80-de06-11e9-9598-df9ca0d8dcac.png)

View File

@ -4,6 +4,17 @@ services:
freqtrade_develop: freqtrade_develop:
build: build:
context: . context: .
dockerfile: "./Dockerfile" dockerfile: "./Dockerfile.develop"
volumes: volumes:
- ".:/freqtrade" - ".:/freqtrade"
entrypoint:
- "freqtrade"
freqtrade_bash:
build:
context: .
dockerfile: "./Dockerfile.develop"
volumes:
- ".:/freqtrade"
entrypoint:
- "/bin/bash"

View File

@ -38,8 +38,48 @@ def test_method_to_test(caplog):
assert log_has("This event happened", caplog) assert log_has("This event happened", caplog)
# Check regex with trailing number ... # Check regex with trailing number ...
assert log_has_re(r"This dynamic event happened and produced \d+", caplog) assert log_has_re(r"This dynamic event happened and produced \d+", caplog)
``` ```
### Local docker usage
The fastest and easiest way to start up is to use docker-compose.develop which gives developers the ability to start the bot up with all the required dependencies, *without* needing to install any freqtrade specific dependencies on your local machine.
#### Install
* [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* [docker](https://docs.docker.com/install/)
* [docker-compose](https://docs.docker.com/compose/install/)
#### Starting the bot
##### Use the develop dockerfile
``` bash
rm docker-compose.yml && mv docker-compose.develop.yml docker-compose.yml
```
#### Docker Compose
##### Starting
``` bash
docker-compose up
```
![Docker compose up](https://user-images.githubusercontent.com/419355/65456322-47f63a80-de06-11e9-90c6-3c74d1bad0b8.png)
##### Rebuilding
``` bash
docker-compose build
```
##### Execing (effectively SSH into the container)
The `exec` command requires that the container already be running, if you want to start it
that can be effected by `docker-compose up` or `docker-compose run freqtrade_develop`
``` bash
docker-compose exec freqtrade_develop /bin/bash
```
![image](https://user-images.githubusercontent.com/419355/65456522-ba671a80-de06-11e9-9598-df9ca0d8dcac.png)
## Modules ## Modules
### Dynamic Pairlist ### Dynamic Pairlist
@ -182,7 +222,7 @@ git log --oneline --no-decorate --no-merges master..develop
Once the PR against master is merged (best right after merging): Once the PR against master is merged (best right after merging):
* Use the button "Draft a new release" in the Github UI (subsection releases) * Use the button "Draft a new release" in the Github UI (subsection releases)
* Use the version-number specified as tag. * Use the version-number specified as tag.
* Use "master" as reference (this step comes after the above PR is merged). * Use "master" as reference (this step comes after the above PR is merged).
* Use the above changelog as release comment (as codeblock) * Use the above changelog as release comment (as codeblock)