Skip to content

Commit

Permalink
restructured repo
Browse files Browse the repository at this point in the history
  • Loading branch information
seekersoftec committed Jun 30, 2024
1 parent 4c12901 commit 8b9e0d7
Show file tree
Hide file tree
Showing 1,446 changed files with 10 additions and 5,548 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v3
with:
context: services/metatrader/
file: services/metatrader/Dockerfile.mt5
context: metatrader-5/
file: metatrader-5/Dockerfile.mt5
platforms: linux/amd64
push: true
tags: fortesenselabs/metatrader:lastest,fortesenselabs/metatrader:5
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
NAMESPACE=metatrader-terminal


build:
docker build -f Dockerfile.mt5 -t fortesenselabsmt .
docker build -f metatrader-5/Dockerfile.mt5 -t fortesenselabsmt metatrader-5/

run: build
docker run --rm -dit -p 5900:5900 -p 8000:8000 --name fortesenselabsmt -v fortesenselabsmt:/data fortesenselabsmt
Expand Down
6 changes: 5 additions & 1 deletion services/metatrader/README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![example workflow](https://github.com/FortesenseLabs/metatrader-terminal/actions/workflows/deploy-metatrader-terminal-image.yml/badge.svg)
![example workflow](https://github.com/FortesenseLabs/metatrader-terminal/actions/workflows/deploy.yml/badge.svg)

# MetaTrader (with vnc-alpine)

Expand Down Expand Up @@ -88,6 +88,10 @@ login to shell
make shell
```

## TODOS

- write a client in python (can follow the python-binance format)

## Resources

- https://github.com/AwesomeTrading/Backtrader-MQL5-API
Expand Down
6 changes: 2 additions & 4 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
load('ext://namespace', 'namespace_create', 'namespace_inject')
namespace_create('metatrader-terminal')

docker_build('metatrader', 'services/metatrader', dockerfile = 'services/metatrader/Dockerfile.mt5')
docker_build('exchange', 'services/exchange', dockerfile = 'services/exchange/Dockerfile.dev')

docker_build('metatrader', 'metatrader-5', dockerfile = 'metatrader-5/Dockerfile.mt5')

yaml = helm(
'infrastructure/k8s',
Expand All @@ -20,7 +18,7 @@ yaml = helm(

k8s_yaml(yaml)

k8s_resource('metatrader', port_forwards=['5900', '8000'])
k8s_resource('metatrader', port_forwards=['5900', '5901', '8000'])
k8s_resource('db', port_forwards='5432')


Expand Down
5 changes: 0 additions & 5 deletions infrastructure/k8s/env.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ env:
MT5_SERVER: login-server
MT_FILES_DIR: EA-expert-file-location
DATABASE_URL: postgresql://user:password@db.metatrader-terminal/database?sslmode=disable
exchange:
BINANCE_TESTNET: true
BINANCE_API_KEY: YOUR_BINANCE_API_KEY
BINANCE_SECRET_KEY: YOUR_BINANCE_SECRET_KEY
DATABASE_URL: postgresql://user:password@db.metatrader-terminal/database?sslmode=disable
db:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
Expand Down
47 changes: 0 additions & 47 deletions infrastructure/k8s/templates/exchange.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions infrastructure/k8s/templates/metatrader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,5 @@ spec:
value: "{{ .Values.env.metatrader.MT5_SERVER }}"
- name: MT_FILES_DIR
value: "{{ .Values.env.metatrader.MT_FILES_DIR }}"
- name: NATS_URL
value: "{{ .Values.env.metatrader.NATS_URL }}"
- name: NATS_USER
value: "{{ .Values.env.nats.USER }}"
- name: NATS_PASS
value: "{{ .Values.env.nats.PASS }}"
- name: DATABASE_URL
value: "{{ .Values.env.metatrader.DATABASE_URL }}"
1 change: 0 additions & 1 deletion infrastructure/k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ imagePullSecret: metatrader-terminal-config
images:
db: postgres:13
metatrader: metatrader
exchange: exchange
48 changes: 0 additions & 48 deletions infrastructure/main.tf

This file was deleted.

10 changes: 0 additions & 10 deletions infrastructure/providers.tf

This file was deleted.

10 changes: 0 additions & 10 deletions infrastructure/variables.tf

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 8b9e0d7

Please sign in to comment.