Skip to content

Commit

Permalink
Drop docker/requirments.
Browse files Browse the repository at this point in the history
	- start docker build with path the parent_dir of docker folder
	- use only one requirments
  • Loading branch information
stefosgiorgos committed Oct 24, 2021
1 parent c983382 commit ef2b13d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 154 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM stablebaselines/rl-baselines3-zoo:0.11.0a4


COPY requirements.txt /tmp/


RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt -I

RUN pip install jupyterlab

Expand Down
2 changes: 1 addition & 1 deletion docker/bin/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@



docker build -f docker/Dockerfile -t finrl docker/
docker build -f docker/Dockerfile -t finrl .
141 changes: 0 additions & 141 deletions docker/requirements.txt

This file was deleted.

22 changes: 12 additions & 10 deletions finrl/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import ray
from finrl.apps.config import (
DOW_30_TICKER,
TECHNICAL_INDICATORS_LIST,
TEST_END_DATE,
TEST_START_DATE,
RLlib_PARAMS,
)
from finrl.neo_finrl.env_stock_trading.env_stocktrading import StockTradingEnv


def test(
start_date,
end_date,
Expand All @@ -11,8 +22,7 @@ def test(
if_vix=True,
**kwargs
):
import ray


# import DRL agents
from finrl.drl_agents.stablebaselines3.models import DRLAgent as DRLAgent_sb3
from finrl.drl_agents.rllib.models import DRLAgent as DRLAgent_rllib
Expand Down Expand Up @@ -78,14 +88,6 @@ def test(


if __name__ == "__main__":
from finrl.app.config import DOW_30_TICKER
from finrl.app.config import TECHNICAL_INDICATORS_LIST
from finrl.app.config import TEST_START_DATE
from finrl.app.config import TEST_END_DATE
from finrl.app.config import RLlib_PARAMS

# construct environment
from finrl.neo_finrl.env_stock_trading.env_stock_trading import StockTradingEnv

env = StockTradingEnv

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ stockstats
yfinance
elegantrl
#pyfolio

# plot
matplotlib

Expand Down

0 comments on commit ef2b13d

Please sign in to comment.