Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2df974f
Force build
NeZanyat Sep 19, 2018
ea7875a
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
32a4279
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
7fc6dfe
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
4a01287
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
6159bd0
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
e3ca16e
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
4e277f4
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
4430b23
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
618a1b8
Update Dockerfile-scidash
NeZanyat Sep 19, 2018
578c247
Trigger build
gidili Sep 20, 2018
b5ab924
add installation script
Sep 25, 2018
818dfc9
Update Dockerfile-scidash
NeZanyat Sep 25, 2018
c235f7f
update README.md
Sep 25, 2018
9921428
use deploy/geppetto/GepppettoConfiguration.json
Sep 25, 2018
85f3ae4
Merge pull request #49 from MetaCell/feature_installation
NeZanyat Sep 27, 2018
ab8676d
Merge pull request #50 from MetaCell/development-roman
NeZanyat Oct 3, 2018
f824b98
Trigger build
NeZanyat Oct 3, 2018
c4270ad
Build fix
NeZanyat Oct 3, 2018
34c5d63
Trigger build
gidili Oct 18, 2018
3375e4c
Uncache build
NeZanyat Oct 18, 2018
ae63da4
Update Dockerfile-scidash
NeZanyat Oct 28, 2018
50d6ae7
Update Dockerfile-scidash
NeZanyat Oct 29, 2018
7d6bb36
Merge pull request #51 from MetaCell/development-roman
NeZanyat Oct 29, 2018
fba92a6
Merge pull request #54 from MetaCell/development-roman
NeZanyat Nov 1, 2018
9996582
point to development branch for pygeppetto-django
gidili Nov 8, 2018
81f1484
Point install to dev branch of pygeppetto-django
gidili Nov 8, 2018
112f7cf
Base flow optimization
NeZanyat Nov 24, 2018
a425108
Test build flow
NeZanyat Nov 26, 2018
e519b39
Path fix for build
NeZanyat Nov 26, 2018
267c9f4
Step for frontend, because codefresh has no installed frontend on bui…
NeZanyat Nov 26, 2018
79adbae
Making codefresh install frontend before building
NeZanyat Nov 26, 2018
00c22c7
Possible fix
NeZanyat Nov 26, 2018
13a68e5
Possible fix
NeZanyat Nov 26, 2018
b8962d3
Possible fix
NeZanyat Nov 26, 2018
129e88f
Required field fix
NeZanyat Nov 26, 2018
8c66fec
Proper image for make
NeZanyat Nov 26, 2018
eb3e68d
More suitable image
NeZanyat Nov 26, 2018
36a4b00
New parts of codefresh flow, pushing scripts, deployment changes
NeZanyat Nov 27, 2018
c2fe5f3
Fix, actual version
NeZanyat Nov 27, 2018
4366e61
Date range fix
NeZanyat Nov 27, 2018
56f6472
Investigate k8 environment
NeZanyat Nov 28, 2018
e7747cc
Default deployment step
NeZanyat Nov 28, 2018
b0a4d86
Fix
NeZanyat Nov 28, 2018
c74b2b8
Cache fix
NeZanyat Nov 29, 2018
a901d61
Update docker-compose.yml
NeZanyat Nov 29, 2018
af6dc98
Data type changed to DateField, cause we don't need such of precision
NeZanyat Dec 3, 2018
f383886
Merge branch 'development' into fix_items-which-are-created-today-is-…
NeZanyat Dec 3, 2018
dff8bd6
Clean up
NeZanyat Dec 3, 2018
86326a0
Clean up
NeZanyat Dec 3, 2018
25aa61c
Merge pull request #56 from MetaCell/fix_items-which-are-created-toda…
NeZanyat Dec 3, 2018
85a6f3b
Fix compatibility with pygeppetto-django
NeZanyat Dec 3, 2018
91b78f8
Installation now works through Makefile
NeZanyat Dec 3, 2018
55426a8
Readme updates
NeZanyat Dec 3, 2018
b53f1c1
Merge branch 'master' into development
NeZanyat Dec 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
static
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,5 @@ venv.bak/

static/org.geppetto.frontend
pygeppetto_server/
tags
pygeppetto-django
92 changes: 92 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
install: create-db install-frontend install-backend
@echo "==========================="
@echo "= Finished ="
@echo "==========================="

install-frontend:
@echo "==========================="
@echo "= Install frontend ="
@echo "==========================="
@./service/scripts/install-frontend.sh

install-backend:
@echo "==========================="
@echo "= Install backend ="
@echo "==========================="
@./service/scripts/install-backend.sh

install-backend-with-env:
@echo "==========================="
@echo "= Install backend ="
@echo "==========================="
@./service/scripts/install-backend.sh -v

create-db:
@echo "==========================="
@echo "= Create database ="
@echo "==========================="
@./service/scripts/db-create-psql.sh

run-dev: migrate generate-tags
make run-django & \
make run-frontend

django-migrate: make-migrations migrate

make-migrations:
./manage.py makemigrations

migrate:
./manage.py migrate

run-django:
./manage.py runserver

run-frontend:
cd static/org.geppetto.frontend/src/main/webapp/; npm run build-dev-noTest:watch;

lint: flake8-lint isort-lint yapf-lint

format: yapf-format isort-format

flake8-lint:
flake8 .

isort-lint:
isort --check-only --diff --recursive .

isort-format:
isort --recursive .

yapf-format:
yapf -i -r --style .style.yapf -p -e "*/migrations/*.py" -e "env" -e "*/settings.py" .

yapf-lint:
yapf -d -r --style .style.yapf -e "*/migrations/*.py" -e "env" -e "*/settings.py" .

generate-tags:
ctags -R --exclude=.git --exclude=node_modules --exclude=dist --exclude=env .

build-scidash:
@echo "==========================="
@echo "= Build scidash ="
@echo "==========================="
@./service/scripts/build-image-scidash.sh

build-scidash-db:
@echo "==========================="
@echo "= Build scidash db ="
@echo "==========================="
@./service/scripts/build-image-db.sh

push-scidash:
@echo "==========================="
@echo "= Push scidash image ="
@echo "==========================="
@./service/scripts/push-image-scidash.sh

push-scidash-db:
@echo "==========================="
@echo "= Push scidash db image ="
@echo "==========================="
@./service/scripts/push-image-scidash-db.sh
81 changes: 14 additions & 67 deletions README.md

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions deploy/build-all.sh

This file was deleted.

3 changes: 0 additions & 3 deletions deploy/docker/Dockerfile-postgres

This file was deleted.

68 changes: 0 additions & 68 deletions deploy/docker/Dockerfile-scidash

This file was deleted.

19 changes: 0 additions & 19 deletions deploy/push-all.sh

This file was deleted.

14 changes: 0 additions & 14 deletions deploy/scripts/build-image-scidash.sh

This file was deleted.

5 changes: 0 additions & 5 deletions deploy/scripts/run.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- 5432:5432
scidash:
image: metacell/scidash:3.0.0
image: metacell/scidash:3.1.1
ports:
- 80:8000
depends_on:
Expand Down
Binary file removed dump.rdb
Binary file not shown.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scidash.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scidash.main.settings")

from django.core.management import execute_from_command_line

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion general/admin.py → scidash/general/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin

from general.models import ScidashUser
from scidash.general.models import ScidashUser

# Register your models here.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion general/serializers.py → scidash/general/serializers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rest_framework import serializers

from general.models import ScidashUser
from scidash.general.models import ScidashUser


class ScidashUserSerializer(serializers.ModelSerializer):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion general/urls.py → scidash/general/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
from general.views import FileUploadView
from scidash.general.views import FileUploadView

urlpatterns = [
url(r'^upload/(?P<filename>[^/]+)$', FileUploadView.as_view())
Expand Down
2 changes: 1 addition & 1 deletion general/views.py → scidash/general/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from rest_framework.parsers import MultiPartParser
from rest_framework.response import Response

from sciunittests.serializers import ScoreInstanceSerializer
from scidash.sciunittests.serializers import ScoreInstanceSerializer


class FileUploadView(APIView):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 14 additions & 9 deletions scidash/settings.py → scidash/main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
import datetime

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
)

dotenv.read_dotenv(os.path.join(os.path.dirname(os.path.dirname(__file__)),
'.env'))
dotenv.read_dotenv(
os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '.env'
)
)

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
Expand Down Expand Up @@ -55,9 +60,9 @@
]

SCIDASH_APPS = [
'sciunitmodels.apps.SciunitmodelsConfig',
'sciunittests.apps.SciunittestsConfig',
'general.apps.GeneralConfig',
'scidash.sciunitmodels',
'scidash.sciunittests',
'scidash.general',
]

INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + SCIDASH_APPS
Expand All @@ -84,7 +89,7 @@
]
}

ROOT_URLCONF = 'scidash.urls'
ROOT_URLCONF = 'scidash.main.urls'

TEMPLATES = [
{
Expand All @@ -102,7 +107,7 @@
},
]

ASGI_APPLICATION = 'scidash.routing.application'
ASGI_APPLICATION = 'scidash.main.routing.application'

# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
Expand Down Expand Up @@ -170,4 +175,4 @@
GEPPETTO_SERVLET_URL = 'ws://localhost:8080/org.geppetto.frontend/GeppettoServlet'
GEPPETTO_BASE_URL = 'http://localhost:8080/org.geppetto.frontend/geppetto'

ACCEPTABLE_SCORE_INSTANCES_AMOUNT = 30
ACCEPTABLE_SCORE_INSTANCES_AMOUNT = 50
8 changes: 4 additions & 4 deletions scidash/urls.py → scidash/main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"""
from django.conf.urls import include, url
from django.contrib import admin
from sciunitmodels.api import views as models_views
from sciunittests.api import views as tests_views
from sciunittests.views import DateRangeView
from scidash.sciunitmodels.api import views as models_views
from scidash.sciunittests.api import views as tests_views
from scidash.sciunittests.views import DateRangeView

from rest_framework.routers import DefaultRouter
from rest_framework_jwt.views import obtain_jwt_token
Expand Down Expand Up @@ -51,7 +51,7 @@
url(r'^admin/', admin.site.urls),
url(r'^api/login/', obtain_jwt_token),
url(r'^', include('pygeppetto_server.urls')),
url(r'^data/', include('general.urls')),
url(r'^data/', include('scidash.general.urls')),
url(r'^api/date-range', DateRangeView.as_view(), name='date-range-view'),
url(r'^api/', include(router.urls))
]
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sciunitmodels/admin.py → scidash/sciunitmodels/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib import admin
from sciunitmodels.models import ModelClass, ModelInstance, Capability
from scidash.sciunitmodels.models import ModelClass, ModelInstance, Capability

# Register your models here.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from rest_framework import viewsets, permissions

from sciunitmodels.serializers import CapabilitySerializer, \
from scidash.sciunitmodels.serializers import CapabilitySerializer, \
ModelClassSerializer, \
ModelInstanceSerializer

from sciunitmodels.models import Capability, ModelClass, ModelInstance
from scidash.sciunitmodels.models import Capability, ModelClass, ModelInstance


class CapabilityViewSet(viewsets.ReadOnlyModelViewSet):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from rest_framework_cache.serializers import CachedSerializerMixin
from rest_framework_cache.registry import cache_registry

from sciunitmodels.models import Capability, ModelClass, ModelInstance
from general.mixins import GetByKeyOrCreateMixin
from scidash.sciunitmodels.models import Capability, ModelClass, ModelInstance
from scidash.general.mixins import GetByKeyOrCreateMixin


class CapabilitySerializer(GetByKeyOrCreateMixin,
Expand Down Expand Up @@ -46,6 +46,6 @@ class Meta:
model = ModelInstance
fields = '__all__'

# cache_registry.register(CapabilitySerializer)
# cache_registry.register(ModelClassSerializer)
# cache_registry.register(ModelInstanceSerializer)
cache_registry.register(CapabilitySerializer)
cache_registry.register(ModelClassSerializer)
cache_registry.register(ModelInstanceSerializer)
File renamed without changes.
Loading