-
Notifications
You must be signed in to change notification settings - Fork 3
WIP: Merge the tiny dockerization work into master #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
db0ab23
24dc2c6
6864e38
901eea8
e9da2a6
ef417f3
7fc5e85
246c89f
78bd7c5
82a6ca3
073277a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| FROM python:3 | ||
|
|
||
| ENV PYTHONUNBUFFERED 1 | ||
|
|
||
| RUN mkdir /game_project | ||
|
|
||
| WORKDIR /game_project | ||
|
|
||
| COPY requirements-phase1.txt /game_project/ | ||
| RUN pip install -r requirements-phase1.txt | ||
|
|
||
| COPY kanarya_config.json /etc/ | ||
|
|
||
| COPY . /game_project/ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bunu komple kopyalamak yerine volume olarak bağlasak, yeniden derlemeden güncelleme şansı olur.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. olabilir bakarız |
||
|
|
||
| COPY requirements-phase2.txt /game_project/ | ||
| RUN pip install -r requirements-phase2.txt | ||
|
|
||
| RUN python manage.py migrate --noinput | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ben bunu dışarıdan kullanıcıya bırakmayı tercih ediyorum. Otomatik yapınca, yayına alma ya da farklı kullanıcıların farklı branchlerde farklı migrationlarla çalışma durumlarına beklenmedik sonuçlar çıkabiliyor.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Migrate'i mi diyorsun? |
||
|
|
||
| # RUN python manage.py createsuperuser | ||
| # Run with docker exec -it ${container_name} python manage.py createsuperuser | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| version: '3' | ||
| services: | ||
| db: | ||
| image: postgres | ||
| environment: | ||
| - POSTGRES_DB=postgres | ||
| - POSTGRES_USER=postgres | ||
| - POSTGRES_PASSWORD=postgres | ||
| web: | ||
| build: . | ||
| command: python manage.py runserver 0.0.0.0:8000 | ||
| volumes: | ||
| - .:/game_project | ||
| ports: | ||
| - "8000:8000" | ||
| depends_on: | ||
| - db |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "SECRET_KEY": "loremipsum", | ||
| "EMAIL_USER": "username", | ||
| "EMAIL_PASS": "password" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| torch>=1.1.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # asgiref==3.2.7 | ||
| # boto==2.49.0 | ||
| # boto3==1.13.11 | ||
| # botocore==1.16.11 | ||
| # bpemb==0.3.0 | ||
| # certifi==2020.4.5.1 | ||
| # chardet==3.0.4 | ||
| # cloudpickle==1.4.1 | ||
| # cycler==0.10.0 | ||
| # decorator==4.4.2 | ||
| # Deprecated==1.2.10 | ||
| Django==3.0.5 | ||
| django-crispy-forms==1.9.0 | ||
| # docutils==0.15.2 | ||
| flair==0.4.1 | ||
| # future==0.18.2 | ||
| # gensim==3.8.3 | ||
| # hyperopt==0.2.4 | ||
| # idna==2.9 | ||
| # jmespath==0.10.0 | ||
| # joblib==0.15.1 | ||
| # kiwisolver==1.2.0 | ||
| # matplotlib==3.2.1 | ||
| # mpld3==0.3 | ||
| # networkx==2.4 | ||
| # numpy==1.18.4 | ||
| Pillow==7.1.1 | ||
| # psutil==5.7.0 | ||
| # pyparsing==2.4.7 | ||
| # python-dateutil==2.8.1 | ||
| # pytorch-pretrained-bert==0.6.2 | ||
| # pytz==2019.3 | ||
| # regex==2018.1.10 | ||
| # requests==2.23.0 | ||
| # s3transfer==0.3.3 | ||
| # scikit-learn==0.23.0 | ||
| # scipy==1.4.1 | ||
| # segtok==1.5.10 | ||
| # sentencepiece==0.1.90 | ||
| # six==1.14.0 | ||
| # sklearn==0.0 | ||
| # smart-open==2.0.0 | ||
| # sqlitedict==1.6.0 | ||
| # sqlparse==0.3.1 | ||
| # threadpoolctl==2.0.0 | ||
| # tqdm==4.46.0 | ||
| # urllib3==1.25.9 | ||
| # wrapt==1.12.1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,4 @@ | ||
| asgiref==3.2.7 | ||
| boto==2.49.0 | ||
| boto3==1.13.11 | ||
| botocore==1.16.11 | ||
| bpemb==0.3.0 | ||
| certifi==2020.4.5.1 | ||
| chardet==3.0.4 | ||
| cloudpickle==1.4.1 | ||
| cycler==0.10.0 | ||
| decorator==4.4.2 | ||
| Deprecated==1.2.10 | ||
| Django==3.0.5 | ||
| django-crispy-forms==1.9.0 | ||
| docutils==0.15.2 | ||
| flair==0.4.1 | ||
| future==0.18.2 | ||
| gensim==3.8.3 | ||
| hyperopt==0.2.4 | ||
| idna==2.9 | ||
| jmespath==0.10.0 | ||
| joblib==0.15.1 | ||
| kiwisolver==1.2.0 | ||
| matplotlib==3.2.1 | ||
| mpld3==0.3 | ||
| networkx==2.4 | ||
| numpy==1.18.4 | ||
| Pillow==7.1.1 | ||
| psutil==5.7.0 | ||
| pyparsing==2.4.7 | ||
| python-dateutil==2.8.1 | ||
| pytorch-pretrained-bert==0.6.2 | ||
| pytz==2019.3 | ||
| regex==2018.1.10 | ||
| requests==2.23.0 | ||
| s3transfer==0.3.3 | ||
| scikit-learn==0.23.0 | ||
| scipy==1.4.1 | ||
| segtok==1.5.10 | ||
| sentencepiece==0.1.90 | ||
| six==1.14.0 | ||
| sklearn==0.0 | ||
| smart-open==2.0.0 | ||
| sqlitedict==1.6.0 | ||
| sqlparse==0.3.1 | ||
| threadpoolctl==2.0.0 | ||
| torch==1.1.0 | ||
| tqdm==4.46.0 | ||
| urllib3==1.25.9 | ||
| wrapt==1.12.1 | ||
| Pillow==7.1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Projenin spesifik olarak beklediği ya da sorun çıkardığı bir Python sürümü var mı?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valla tam emin değilim ama 3 olsun demiştim