This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "lua::calculate_pnl" do | |
context "prices is increasing" do | |
it "returns positive profit" do | |
pnl = Wolverine.util.calcualte_pnl([1, 2, 3]) | |
pnl.should > 0 | |
end | |
# more verifications |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
containers: | |
redis: | |
dockerfile: docker/redis | |
image: docker-redis | |
run: | |
volume: | |
- /var/data/myapp/redis:/data | |
detach: true | |
memcached: | |
dockerfile: docker/memcached |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! which wget > /dev/null; then | |
yum install -y wget | |
fi | |
export DOCKER_VERSION=1.3.0 | |
pushd /tmp | |
if [ ! -f /usr/bin/docker ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO[6bff69a4] Finished in 5.502 seconds with exit status 0 (successful). | |
INFO[87cf85d8] Running /usr/bin/env fleetctl --debug start bitcoind.service on 128.199.106.149 | |
DEBUG[87cf85d8] Command: cd /home/core/www/vax-bitcoin-server/releases/20150127091639 && /usr/bin/env fleetctl --debug start bitcoind.service | |
DEBUG[87cf85d8] 2015/01/27 09:17:41 INFO client.go:353: etcd: sending HTTP request GET http://127.0.0.1:4001/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true | |
DEBUG[87cf85d8] 2015/01/27 09:17:41 INFO client.go:360: etcd: recv response from GET http://127.0.0.1:4001/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true: 307 Temporary Redirect | |
DEBUG[87cf85d8] 2015/01/27 09:17:41 INFO client.go:353: etcd: sending HTTP request GET http://10.130.172.56:4001/v2/keys/_coreos.com/fleet/machines?consistent=true&recursive=true&sorted=true | |
DEBUG[87cf85d8] 2015/01/27 09:17:41 INFO client.go:360: etcd: recv response from GET http://10.130.172.56:4001/v2/keys/_co |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REDIS_WEBSOCKET_URL = ENV['REDIS_WEBSOCKET'] || "redis://localhost:6379/0" | |
REDIS_SIDEKIQ_URL = ENV['REDIS_SIDEKIQ'] || "redis://localhost:6379/0" | |
Redis.current = Redis.new(url: REDIS_SIDEKIQ_URL, driver: :hiredis) |
OlderNewer