Skip to content

Commit

Permalink
Add Arke
Browse files Browse the repository at this point in the history
  • Loading branch information
m-an committed Feb 18, 2019
1 parent 0b42b9c commit 91cee0a
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
COMPOSE_PROJECT_NAME=microkube
COMPOSE_FILE=compose/app.yaml:compose/backend.yaml:compose/gateway.yaml:compose/proxy.yaml:compose/daemons.yaml:compose/frontend.yaml:compose/cryptonodes.yaml
COMPOSE_FILE=compose/app.yaml:compose/backend.yaml:compose/gateway.yaml:compose/proxy.yaml:compose/daemons.yaml:compose/frontend.yaml:compose/cryptonodes.yaml:compose/arke.yaml
16 changes: 16 additions & 0 deletions config/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@ app:
name: "Microkube"
domain: "app.local"
subdomain: "www"
arke:
strategy:
type: 'copy'
pair: 'ETHUSD'
target:
driver: rubykube
host: 'http://www.app.local'
name: John
key: changeme
secret: changeme
sources:
- driver: bitfinex
name: Joe
key: changeme
secret: changeme
ssl:
enabled: true
email: "[email protected]"
Expand All @@ -11,6 +26,7 @@ images:
frontend: rubykube/mikroapp:0.1.5
tower: rubykube/tower:0.1.8
postmaster: quay.io/openware/postmaster:0.0.3
arke: rubykube/arke:0.1.5
vendor:
frontend: https://github.com/rubykube/mikroapp.git
storage:
Expand Down
15 changes: 15 additions & 0 deletions config/arke/strategy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
strategy:
type: 'copy'
pair: 'ETHUSD'
target:
driver: rubykube
host: "http://www.devkube.com"
name: John
key: ""
secret: ""
sources:
- driver: bitfinex
host: ""
name: Joe
key: ""
secret: ""
18 changes: 18 additions & 0 deletions lib/tasks/service.rake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ namespace :service do
@switch.call(args, method(:start), method(:stop))
end

desc 'Run arke'
task :arke, [:command] do |task, args|
args.with_defaults(:command => 'start')

def start
puts '----- Starting arke -----'
sh 'docker-compose up -d arke'
end

def stop
puts '----- Stopping arke -----'
sh 'docker-compose rm -fs arke'
end


@switch.call(args, method(:start), method(:stop))
end

desc '[Optional] Run peatio daemons (ranger, peatio daemons)'
task :daemons, [:command] do |task, args|
@daemons = %w[ranger withdraw_audit blockchain global_state deposit_collection deposit_collection_fees deposit_coin_address slave_book pusher_market pusher_member matching order_processor trade_executor withdraw_coin k]
Expand Down
9 changes: 9 additions & 0 deletions templates/compose/arke.yaml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.6'

services:
arke:
image: "<%= @config['images']['arke'] %>"
volumes:
- ../config/arke/values.yaml:/home/app/config/values.yaml
command: start

2 changes: 2 additions & 0 deletions templates/config/arke/strategy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
strategy:
<%= @config['arke]['strategy'].to_yaml %>

0 comments on commit 91cee0a

Please sign in to comment.