Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Travis. Docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
DeviaVir committed Jan 7, 2018
1 parent e8fc526 commit a652fd4
Show file tree
Hide file tree
Showing 6 changed files with 300 additions and 135 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "8"
- "9"
before_install:
- rm -rf package-lock.json
- npm install https://github.com/floatdrop/pinkie-promise.git
- npm install -g node-gyp
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
> “To follow the path, look to the master, follow the master, walk with the master, see through the master, become the master.”
> – Zen Proverb
# Zenbot [![Build/Test Status](https://travis-ci.org/DeviaVir/zenbot.svg?branch=master)](https://travis-ci.org/DeviaVir/zenbot)

## Current Status

Zenbot 4 is functional, but is having trouble reliably making profit. At this point, **I would recommend against trading with large amounts** until some of these issues can be worked out:
Expand Down Expand Up @@ -109,7 +111,6 @@ After installing (step 2 above),

```
cd zenbot
docker-compose build
docker-compose up (-d if you don't want to see the log)
```

Expand All @@ -126,6 +127,17 @@ docker-compose exec server zenbot list-selectors
docker-compose exec server zenbot backfill <selector> --days <days>
```

#### Updating docker

In case you are behind on updates, you can run:
```
docker pull deviavir/zenbot:unstable
```
And re-run `docker-compose up -d` to start the new image.

`deviavir/zenbot` is automatically updated after every merge.
You can follow the tags/builds here: https://hub.docker.com/r/deviavir/zenbot/builds/

## Selectors

A "selector" is a short identifier that tells Zenbot which exchange and currency pair to act on. Use the form `{exchange_slug}.{asset}-{currency}`. A complete list of selectors your Zenbot install supports can be found with:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server:
build: .
image: deviavir/zenbot:unstable
volumes:
- ./conf.js:/app/conf.js
- ./extensions:/app/extensions
Expand All @@ -12,7 +12,7 @@ mongodb:
image: mongo:latest
volumes_from:
- mongodb-data
command: mongod --smallfiles
command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null

mongodb-data:
image: mongo:latest
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.1'
services:

server:
build: .
image: deviavir/zenbot:unstable
volumes:
- ./conf.js:/app/conf.js
- ./extensions:/app/extensions
Expand All @@ -22,7 +22,7 @@ services:
image: mongo:latest
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --logpath=/dev/null
command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null
ports:
- 27017:27017

Expand Down
Loading

0 comments on commit a652fd4

Please sign in to comment.