Skip to content
Snippets Groups Projects
Select Git revision
  • 2c0d30115a46ab00297bec4b8fc754b5bcc52b98
  • master default protected
  • vertical_relations
  • lu_without_semantic_frames
  • hierarchy
  • additional-unification-filters
  • v0.1.1
  • v0.1.0
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
17 results

docker-entrypoint

Blame
  • docker-entrypoint 542 B
    #!/bin/bash
    echo 'Starting docker container'
    set -e
    
    function assertPresence() {
        VARIABLE_NAME=$1
        if [ -z ${!VARIABLE_NAME} ]; then
            echo "${VARIABLE_NAME} is unset. Please set this label to run this docker container";
            exit 1
        fi
    }
    
    assertPresence UWSGI_PROCESS_PER_CONTAINER
    sed -i.bak "s/UWSGI_PROCESS_PER_CONTAINER/$UWSGI_PROCESS_PER_CONTAINER/" /uwsgi.ini
    
    exec "$@"
    
    python manage.py compilemessages
    
    /app/docker/scripts/postgres-alive
    python manage.py migrate --noinput
    
    exec python manage.py runserver 0:8000