finalized changes to docker implements

This commit is contained in:
art 2020-04-05 21:29:16 +00:00
parent 120774c000
commit 7fd0a347b7
10 changed files with 19 additions and 9 deletions

View File

@ -1,2 +1,2 @@
FROM python
WORKDIR ~/
WORKDIR ~/

View File

@ -19,4 +19,5 @@
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"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
WORKDIR ~/
COPY ./ ./
RUN pip install -r requirements.txt
CMD ["bash"]

View File

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

View File

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