Closed mehmetfazil closed 4 years ago
thx for your try my app and bug report. I fixed Dockerfile at 40ffdd59dff6f8803d085fb01fc6a8ff87cd985e. I started this project just recently and actually app has no functions. Just frame. So you can't use this for leaderboard yet... I hope I can make it works soon.
When running with docker-compose, I got this error message
$ docker-compose up Creating network "racoon_default" with the default driver Pulling minio (minio/minio:latest)... latest: Pulling from minio/minio 21c83c524219: Pull complete 7ba13696f4c2: Pull complete 5ede9d18c03d: Pull complete 1b2542108725: Pull complete Digest: sha256:ead26f33ad60678e7c303e692915cda2cd71bc15df8240a589db988211e7527d Status: Downloaded newer image for minio/minio:latest Pulling postgresql (postgres:12)... 12: Pulling from library/postgres 54fec2fa59d0: Pull complete 30a95add0890: Pull complete 57bc798d3c84: Pull complete a41bedb2c5de: Pull complete 589548c3abb4: Pull complete c4c6b75d5deb: Pull complete 8f8c045a6a99: Pull complete 69f9dd86b24d: Pull complete 45bbaba740ff: Pull complete 1761ca7befa0: Pull complete 57feb34018f4: Pull complete bede8373accc: Pull complete 6e4c69fbe63b: Pull complete 8a7949704ab2: Pull complete Digest: sha256:d96835c9032988c8a899cb8a3c54467dae81daaa99485de70e8c9bddd5432d92 Status: Downloaded newer image for postgres:12 Pulling pgadmin4 (dpage/pgadmin4:latest)... latest: Pulling from dpage/pgadmin4 4167d3e14976: Pull complete 1baf8a687be7: Pull complete c76509a1f144: Pull complete 309d8543d55b: Pull complete 37b423a1c32f: Pull complete c05e20d6543d: Pull complete 8bd6c7d6cf1c: Pull complete 93783dae8078: Pull complete 5c61990c4949: Pull complete 76c622ed8ece: Pull complete 36fc6b7789d0: Pull complete 63cf12813a47: Pull complete acd604ceb3a5: Pull complete 9f53bd025e54: Pull complete 56313ebeeee2: Pull complete 5d8e0c29316b: Pull complete bcea4b9b7369: Pull complete Digest: sha256:fb7ad1c5d9cc659f957c60d1f08b60a4955370604b556f4832b8c9b29aa65988 Status: Downloaded newer image for dpage/pgadmin4:latest Building racoon ERROR: Cannot locate specified Dockerfile: Dockerfile fazil @ ~/Source/racoon $ docker-compose up Building racoon ERROR: Cannot locate specified Dockerfile: Dockerfile fazil @ ~/Source/racoon $ cd .. fazil @ ~/Source $ rm -rf racoon/ fazil @ ~/Source $ git clone https://github.com/onukura/Racoon.git Cloning into 'Racoon'... remote: Enumerating objects: 2159, done. remote: Counting objects: 100% (2159/2159), done. remote: Compressing objects: 100% (1546/1546), done. remote: Total 2159 (delta 622), reused 2115 (delta 578), pack-reused 0 Receiving objects: 100% (2159/2159), 13.21 MiB | 5.63 MiB/s, done. Resolving deltas: 100% (622/622), done. fazil @ ~/Source $ cd Racoon/ fazil @ ~/Source/Racoon $ docker-compose up Building racoon Step 1/8 : FROM python:3.7 3.7: Pulling from library/python 90fe46dd8199: Pull complete 35a4f1977689: Pull complete bbc37f14aded: Pull complete 74e27dc593d4: Pull complete 4352dcff7819: Pull complete deb569b08de6: Pull complete 1aa33568be24: Pull complete a8034acd5893: Pull complete 5ae88975c1eb: Pull complete Digest: sha256:5393a912e2d17cd657149ce5dfeb9675eff8282401ff1da3744be1f2bec7c283 Status: Downloaded newer image for python:3.7 ---> 84d66a048f90 Step 2/8 : RUN mkdir /app ---> Running in 75e162094dc5 Removing intermediate container 75e162094dc5 ---> c8752a9d791f Step 3/8 : WORKDIR /app ---> Running in 3644d2cfd705 Removing intermediate container 3644d2cfd705 ---> 8efc4793a364 Step 4/8 : ADD . /app/ ---> 8ba1de536837 Step 5/8 : RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --upgrade pip ---> Running in b2d4b540ad00 Requirement already up-to-date: pip in /usr/local/lib/python3.7/site-packages (20.1) Removing intermediate container b2d4b540ad00 ---> 5a0119cab2a1 Step 6/8 : RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt ---> Running in 105bee984979 Collecting appdirs==1.4.3 Downloading appdirs-1.4.3-py2.py3-none-any.whl (12 kB) Collecting attrs==19.3.0 Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB) Collecting black==19.10b0 Downloading black-19.10b0-py36-none-any.whl (97 kB) Collecting boto3==1.13.4 Downloading boto3-1.13.4-py2.py3-none-any.whl (128 kB) Collecting botocore==1.16.4 Downloading botocore-1.16.4-py2.py3-none-any.whl (6.2 MB) Collecting certifi==2020.4.5.1 Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB) Collecting chardet==3.0.4 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) Collecting click==7.1.2 Downloading click-7.1.2-py2.py3-none-any.whl (82 kB) Collecting codecov==2.0.22 Downloading codecov-2.0.22-py2.py3-none-any.whl (15 kB) Collecting coverage==5.1 Downloading coverage-5.1-cp37-cp37m-manylinux1_x86_64.whl (227 kB) Collecting dnspython==1.16.0 Downloading dnspython-1.16.0-py2.py3-none-any.whl (188 kB) Collecting docutils==0.15.2 Downloading docutils-0.15.2-py3-none-any.whl (547 kB) Collecting email-validator==1.1.0 Downloading email_validator-1.1.0-py2.py3-none-any.whl (17 kB) Collecting Flask==1.1.2 Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB) Collecting Flask-Login==0.5.0 Downloading Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB) Collecting Flask-Script==2.0.6 Downloading Flask-Script-2.0.6.tar.gz (43 kB) Collecting Flask-SQLAlchemy==2.4.1 Downloading Flask_SQLAlchemy-2.4.1-py2.py3-none-any.whl (17 kB) Collecting Flask-WTF==0.14.3 Downloading Flask_WTF-0.14.3-py2.py3-none-any.whl (13 kB) Collecting idna==2.9 Downloading idna-2.9-py2.py3-none-any.whl (58 kB) Collecting itsdangerous==1.1.0 Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB) Collecting Jinja2==2.11.2 Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB) Collecting jmespath==0.9.5 Downloading jmespath-0.9.5-py2.py3-none-any.whl (24 kB) Collecting joblib==0.14.1 Downloading joblib-0.14.1-py2.py3-none-any.whl (294 kB) Collecting Markdown==3.2.1 Downloading Markdown-3.2.1-py2.py3-none-any.whl (88 kB) Collecting MarkupSafe==1.1.1 Downloading MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl (27 kB) Collecting numpy==1.18.4 Downloading numpy-1.18.4-cp37-cp37m-manylinux1_x86_64.whl (20.2 MB) Collecting pandas==1.0.3 Downloading pandas-1.0.3-cp37-cp37m-manylinux1_x86_64.whl (10.0 MB) Collecting pathspec==0.8.0 Downloading pathspec-0.8.0-py2.py3-none-any.whl (28 kB) Collecting psycopg2==2.8.5 Downloading psycopg2-2.8.5.tar.gz (380 kB) Collecting python-dateutil==2.8.1 Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) Collecting pytz==2020.1 Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB) Collecting regex==2020.4.4 Downloading regex-2020.4.4-cp37-cp37m-manylinux2010_x86_64.whl (679 kB) Collecting requests==2.23.0 Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB) Collecting s3transfer==0.3.3 Downloading s3transfer-0.3.3-py2.py3-none-any.whl (69 kB) Collecting scikit-learn==0.22.2.post1 Downloading scikit_learn-0.22.2.post1-cp37-cp37m-manylinux1_x86_64.whl (7.1 MB) Collecting scipy==1.4.1 Downloading scipy-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (26.1 MB) Collecting six==1.14.0 Downloading six-1.14.0-py2.py3-none-any.whl (10 kB) Collecting SQLAlchemy==1.3.16 Downloading SQLAlchemy-1.3.16-cp37-cp37m-manylinux2010_x86_64.whl (1.2 MB) Collecting toml==0.10.0 Downloading toml-0.10.0-py2.py3-none-any.whl (25 kB) Collecting typed-ast==1.4.1 Downloading typed_ast-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (737 kB) Collecting urllib3==1.25.9 Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB) Collecting waitress==1.4.3 Downloading waitress-1.4.3-py2.py3-none-any.whl (148 kB) Collecting Werkzeug==1.0.1 Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB) Collecting WTForms==2.3.1 Downloading WTForms-2.3.1-py2.py3-none-any.whl (169 kB) Requirement already satisfied: setuptools>=36 in /usr/local/lib/python3.7/site-packages (from Markdown==3.2.1->-r requirements.txt (line 24)) (46.1.3) Building wheels for collected packages: Flask-Script, psycopg2 Building wheel for Flask-Script (setup.py): started Building wheel for Flask-Script (setup.py): finished with status 'done' Created wheel for Flask-Script: filename=Flask_Script-2.0.6-py3-none-any.whl size=14015 sha256=459b298241620ed084a06a353f6b7eefa09aad55a87d4227d978cc742402d215 Stored in directory: /root/.cache/pip/wheels/b5/fb/6b/01ea56e8a6486540ebe086676c8b3a823f1bbcc830df0cd4f0 Building wheel for psycopg2 (setup.py): started Building wheel for psycopg2 (setup.py): finished with status 'done' Created wheel for psycopg2: filename=psycopg2-2.8.5-cp37-cp37m-linux_x86_64.whl size=467681 sha256=c40ae01c5e4f550d085098d3e4a274947d164eb5bc498eef50c605068585f428 Stored in directory: /root/.cache/pip/wheels/69/74/ec/7764aea035627654bf137f89a91405ac239c569ce10ae87137 Successfully built Flask-Script psycopg2 Installing collected packages: appdirs, attrs, typed-ast, pathspec, click, regex, toml, black, docutils, urllib3, six, python-dateutil, jmespath, botocore, s3transfer, boto3, certifi, chardet, coverage, idna, requests, codecov, dnspython, email-validator, itsdangerous, MarkupSafe, Jinja2, Werkzeug, Flask, Flask-Login, Flask-Script, SQLAlchemy, Flask-SQLAlchemy, WTForms, Flask-WTF, joblib, Markdown, numpy, pytz, pandas, psycopg2, scipy, scikit-learn, waitress Successfully installed Flask-1.1.2 Flask-Login-0.5.0 Flask-SQLAlchemy-2.4.1 Flask-Script-2.0.6 Flask-WTF-0.14.3 Jinja2-2.11.2 Markdown-3.2.1 MarkupSafe-1.1.1 SQLAlchemy-1.3.16 WTForms-2.3.1 Werkzeug-1.0.1 appdirs-1.4.3 attrs-19.3.0 black-19.10b0 boto3-1.13.4 botocore-1.16.4 certifi-2020.4.5.1 chardet-3.0.4 click-7.1.2 codecov-2.0.22 coverage-5.1 dnspython-1.16.0 docutils-0.15.2 email-validator-1.1.0 idna-2.9 itsdangerous-1.1.0 jmespath-0.9.5 joblib-0.14.1 numpy-1.18.4 pandas-1.0.3 pathspec-0.8.0 psycopg2-2.8.5 python-dateutil-2.8.1 pytz-2020.1 regex-2020.4.4 requests-2.23.0 s3transfer-0.3.3 scikit-learn-0.22.2.post1 scipy-1.4.1 six-1.14.0 toml-0.10.0 typed-ast-1.4.1 urllib3-1.25.9 waitress-1.4.3 Removing intermediate container 105bee984979 ---> e5166e499cfd Step 7/8 : RUN python manage.py initialize_db && python manage.py create_admin ---> Running in 2ebe546aec87 usage: manage.py [-?] {create_user,create_admin,init_user,recreate_db,init_app,create_dummy_data,shell,runserver} ... manage.py: error: invalid choice: 'initialize_db' (choose from 'create_user', 'create_admin', 'init_user', 'recreate_db', 'init_app', 'create_dummy_data', 'shell', 'runserver') ERROR: Service 'racoon' failed to build: The command '/bin/sh -c python manage.py initialize_db && python manage.py create_admin' returned a non-zero code: 2
Just stumbled upon your repo from datascienceleaderboard, and wanted to give it a try