Giter VIP home page Giter VIP logo

rapier's Introduction

rapier

Zorro + Darwinex MT4 setup on Linux via Docker

Based on nevmerzhitsky/headless-metatrader4

This repository contains binaries which are freely available from:

If I am inadvertently in violation of their license by including them here then I will happily remove them.

Make a private copy

Make a private copy for yourself so you can update the files in secrets/ without giving away your credentials.

There's probably a better way to do this but this way is quite convenient.

An alternative to this is that you can also copy your secrets over the top of the templates provided immediately prior to building and running the container.

Install Docker

Choose an AMI, anything that can run Docker is fine.

Ubuntu 20.04

Install the AWS tools.

sudo apt install -y awscli

Install docker.

sudo apt update
sudo apt install -y docker.io

Allow current user to run docker.

sudo usermod -aG docker $USER

Amazon Linux 2

Install git.

sudo yum install -y git

Install docker.

sudo amazon-linux-extras install docker
sudo service docker start

Make docker auto-start.

sudo chkconfig docker on

Allow current user to run docker.

sudo usermod -a -G docker $USER

(optional) Store docker files in another location

If you have a fast local disk you may want to use it, this won't be persisted if your spot instance gets terminated though.

Create a file /etc/docker/daemon.json to move the docker storage location. This requires at least 5 GiB currently.

{
  "data-root": "/mnt/docker"
}

note: I ended up not using this, but thought I would document it as I thought it may be useful to someone.

Build and Run Zorro Container

Clone this repo.

git clone [email protected]:<user>/rapier

Copy your secrets/ into place unless they're already committed to the cloned repo.

(optional) Enable vi mode in the shell so you don't go insane.

cp rapier/bashrc .bashrc
cp rapier/inputrc .inputrc

Log out and log back in for the .bashrc changes + docker permissions to take effect.

(optional) Update DNS info.

You will need to modify the shell script to have the desired hosted zone and recordset first.

rapier/bin/update-route53.sh

(optional) Start a screen session so that you can exit the shell and everything will keep running.

screen -R

Start the container.

rapier/bin/run.sh

(optional) Detach from the screen session and logout.

<Ctrl-A> <Ctrl-D>
exit

You can reattach to the session by using screen -R again.

rapier's People

Contributors

jacobstanley avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.