-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.46 - Dockerized for easy release, improved performance and better …
…compatibility v1.46 - Dockerized Screeni-py for release on Dockerhub (joshipranjal/screeni-py:latest) * Dockerization added, TA-Lib re-enabled for better results * req and workflow modified * OTA disabled inside docker * runner/launch script added * Docker and workflow fixed * add dev docker build, isDocker added to utility, OtaUpdater modified for docker * dev docker build merged into test * docker build added to existing build workflow * docker build added to existing build workflow * watchlist disabled for docker * docs updated for docker * numpy MKL disabled * test workflow fixed * req fixed * test script fixed --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: pranjal-joshi <[email protected]>
- Loading branch information
1 parent
8318d74
commit 654a250
Showing
14 changed files
with
237 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Project : Screenipy | ||
# Author : Pranjal Joshi | ||
# Created : 17/08/2023 | ||
# Description : Dockerfile to build Screeni-py image for release | ||
|
||
# FROM ubuntu:latest as base | ||
FROM tensorflow/tensorflow:2.9.2 as base | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y software-properties-common | ||
|
||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
python3.8 \ | ||
python3-pip \ | ||
build-essential \ | ||
git \ | ||
vim nano wget curl \ | ||
&& \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV LANG C.UTF-8 | ||
|
||
ADD . /opt/program/ | ||
|
||
ENV PATH="/opt/program:${PATH}" | ||
|
||
WORKDIR /opt/program | ||
|
||
RUN chmod +x * | ||
|
||
WORKDIR /opt/program/.github/dependencies/ | ||
RUN tar -xzf ta-lib-0.4.0-src.tar.gz | ||
|
||
WORKDIR /opt/program/.github/dependencies/ta-lib/ | ||
RUN ./configure --prefix=/usr --build=x86_64-unknown-linux-gnu | ||
RUN make | ||
RUN make install | ||
|
||
WORKDIR /opt/program/ | ||
RUN python3 -m pip install --upgrade pip | ||
# RUN pip3 install ta-lib==0.4.24 | ||
|
||
RUN pip3 install -r "requirements.txt" | ||
|
||
ENV PYTHONUNBUFFERED=TRUE | ||
ENV PYTHONDONTWRITEBYTECODE=TRUE | ||
|
||
WORKDIR /opt/program/src/ | ||
# ENTRYPOINT [ "python3","screenipy.py" ] |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
cd src | ||
python3 screenipy.py |
This file contains 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
Oops, something went wrong.