Loading README.md +8 −2 Original line number Diff line number Diff line Loading @@ -17,9 +17,9 @@ Requirements: *Windows not fully supported in development mode due to lack of support for symbolic links. Setup Inizialize $ rosetta/setup $ cp docker-compose-dev.yml docker-compose.yml Build Loading @@ -46,6 +46,12 @@ Clean Webapp service configuraion parameters and their defaults: - SAFEMODE=false - DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" - DJANGO_DB_NAME="rosetta" - DJANGO_DB_USER="rosetta_master" - DJANGO_DB_PASSWORD="949fa84a" - DJANGO_DB_HOST="postgres" - DJANGO_DB_PORT=5432 - DJANGO_DEV_SERVER=true - DJANGO_DEBUG=true - DJANGO_LOG_LEVEL=ERROR Loading docker-compose-dev.yml +7 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ services: privileged: true volumes: - ./data/shared:/shared # - ./data/singularity_cache:/rosetta/.singularity/cache # Not working, check permissions... slurmclusterworker: image: "rosetta/slurmclusterworker" Loading Loading @@ -54,6 +53,12 @@ services: hostname: webapp environment: - SAFEMODE=False - DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" - DJANGO_DB_NAME="rosetta" - DJANGO_DB_USER="rosetta_master" - DJANGO_DB_PASSWORD="949fa84a" - DJANGO_DB_HOST="postgres" - DJANGO_DB_PORT=5432 - DJANGO_DEV_SERVER=True - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL Loading @@ -68,6 +73,7 @@ services: #- ROSETTA_TASKS_PROXY_HOST= #- ROSETTA_TASKS_TUNNEL_HOST= - ROSETTA_HOST=localhost ports: - "8080:8080" - "7000-7020:7000-7020" Loading rosetta/setupdeleted 100755 → 0 +0 −18 Original line number Diff line number Diff line #!/bin/bash # Use dev (local) database for backend if not alredy set up if [ ! -f services/webapp/db_conf.sh ]; then echo "Using dev webapp database settings." cp services/webapp/db_conf-dev.sh services/webapp/db_conf.sh else echo "Not using dev webapp database settings as settings are already present." fi # Use dev docker-compose.yml if not already set up if [ ! -f docker-compose.yml ]; then echo "Using dev docker-compose.yml" cp docker-compose-dev.yml docker-compose.yml else echo "Not using dev docker-compose.yml as already present." fi services/webapp/Dockerfile +0 −3 Original line number Diff line number Diff line Loading @@ -60,9 +60,6 @@ COPY code /opt/code # Fix permissions RUN chown -R rosetta:rosetta /opt/code # Copy db conf COPY db_conf.sh /db_conf.sh # Prepare for logs RUN mkdir /var/log/webapp/ && chown rosetta:rosetta /var/log/webapp/ Loading services/webapp/db_conf-dev.shdeleted 100644 → 0 +0 −13 Original line number Diff line number Diff line #!/bin/bash # SQlite Django DB conf #export DJANGO_DB_ENGINE="django.db.backends.sqlite3" #export DJANGO_DB_NAME="/data/resources/database.sqlite3" # Postgres Django DB conf export DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" export DJANGO_DB_NAME="rosetta" export DJANGO_DB_USER="rosetta_master" export DJANGO_DB_PASSWORD="949fa84a" export DJANGO_DB_HOST="postgres" export DJANGO_DB_PORT=5432 Loading
README.md +8 −2 Original line number Diff line number Diff line Loading @@ -17,9 +17,9 @@ Requirements: *Windows not fully supported in development mode due to lack of support for symbolic links. Setup Inizialize $ rosetta/setup $ cp docker-compose-dev.yml docker-compose.yml Build Loading @@ -46,6 +46,12 @@ Clean Webapp service configuraion parameters and their defaults: - SAFEMODE=false - DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" - DJANGO_DB_NAME="rosetta" - DJANGO_DB_USER="rosetta_master" - DJANGO_DB_PASSWORD="949fa84a" - DJANGO_DB_HOST="postgres" - DJANGO_DB_PORT=5432 - DJANGO_DEV_SERVER=true - DJANGO_DEBUG=true - DJANGO_LOG_LEVEL=ERROR Loading
docker-compose-dev.yml +7 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ services: privileged: true volumes: - ./data/shared:/shared # - ./data/singularity_cache:/rosetta/.singularity/cache # Not working, check permissions... slurmclusterworker: image: "rosetta/slurmclusterworker" Loading Loading @@ -54,6 +53,12 @@ services: hostname: webapp environment: - SAFEMODE=False - DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" - DJANGO_DB_NAME="rosetta" - DJANGO_DB_USER="rosetta_master" - DJANGO_DB_PASSWORD="949fa84a" - DJANGO_DB_HOST="postgres" - DJANGO_DB_PORT=5432 - DJANGO_DEV_SERVER=True - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL Loading @@ -68,6 +73,7 @@ services: #- ROSETTA_TASKS_PROXY_HOST= #- ROSETTA_TASKS_TUNNEL_HOST= - ROSETTA_HOST=localhost ports: - "8080:8080" - "7000-7020:7000-7020" Loading
rosetta/setupdeleted 100755 → 0 +0 −18 Original line number Diff line number Diff line #!/bin/bash # Use dev (local) database for backend if not alredy set up if [ ! -f services/webapp/db_conf.sh ]; then echo "Using dev webapp database settings." cp services/webapp/db_conf-dev.sh services/webapp/db_conf.sh else echo "Not using dev webapp database settings as settings are already present." fi # Use dev docker-compose.yml if not already set up if [ ! -f docker-compose.yml ]; then echo "Using dev docker-compose.yml" cp docker-compose-dev.yml docker-compose.yml else echo "Not using dev docker-compose.yml as already present." fi
services/webapp/Dockerfile +0 −3 Original line number Diff line number Diff line Loading @@ -60,9 +60,6 @@ COPY code /opt/code # Fix permissions RUN chown -R rosetta:rosetta /opt/code # Copy db conf COPY db_conf.sh /db_conf.sh # Prepare for logs RUN mkdir /var/log/webapp/ && chown rosetta:rosetta /var/log/webapp/ Loading
services/webapp/db_conf-dev.shdeleted 100644 → 0 +0 −13 Original line number Diff line number Diff line #!/bin/bash # SQlite Django DB conf #export DJANGO_DB_ENGINE="django.db.backends.sqlite3" #export DJANGO_DB_NAME="/data/resources/database.sqlite3" # Postgres Django DB conf export DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" export DJANGO_DB_NAME="rosetta" export DJANGO_DB_USER="rosetta_master" export DJANGO_DB_PASSWORD="949fa84a" export DJANGO_DB_HOST="postgres" export DJANGO_DB_PORT=5432