finalized changes to docker implements

This commit is contained in:
art 2020-04-05 21:29:16 +00:00
parent 06f008746a
commit 114eee5d57
10 changed files with 19 additions and 9 deletions

View File

@ -19,4 +19,5 @@
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.testing.pytestPath": "/usr/local/py-utils/bin/pytest" "python.testing.pytestPath": "/usr/local/py-utils/bin/pytest"
}, },
"postCreateCommand": "pip install -r analysis-master/analysis-amd64/requirements.txt"
} }

0
analysis-master/analysis-amd64/build.sh Normal file → Executable file
View File

View File

@ -1,4 +1,5 @@
FROM python FROM python
WORKDIR ~/ WORKDIR ~/
COPY ./ ./ COPY ./ ./
RUN pip install -r requirements.txt
CMD ["bash"] CMD ["bash"]

View File

@ -0,0 +1,6 @@
numba
numpy
scipy
scikit-learn
six
matplotlib

View File

@ -1,5 +1,11 @@
import setuptools import setuptools
requirements = []
with open("requirements.txt", 'r') as file:
for line in file:
requirements.append(line)
setuptools.setup( setuptools.setup(
name="analysis", name="analysis",
version="1.0.0.009", version="1.0.0.009",
@ -10,14 +16,7 @@ setuptools.setup(
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://github.com/titanscout2022/tr2022-strategy", url="https://github.com/titanscout2022/tr2022-strategy",
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
install_requires=[ install_requires=requirements,
"numba",
"numpy",
"scipy",
"scikit-learn",
"six",
"matplotlib"
],
license = "GNU General Public License v3.0", license = "GNU General Public License v3.0",
classifiers=[ classifiers=[
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",

View File

@ -0,0 +1,3 @@
cd ..
docker build -t tra-analysis-amd64-dev -f docker/Dockerfile .
docker run -it tra-analysis-amd64-dev