Loading docker-compose-dev.yml 0 → 100644 +33 −0 Original line number Diff line number Diff line version: '3' services: api-gateway: image: "esap/api-gateway" container_name: api-gateway hostname: api-gateway environment: - DJANGO_DEV_SERVER=True - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL #- DJANGO_SECRET_KEY="" ports: - "8000:8000" #volumes: # - ./services/api-gateway/opt/esap-api-gateway:/opt/opt/esap-api-gateway proxy: image: "esap/proxy" container_name: proxy hostname: proxy ports: - "80:80" - "443:443" esap/build 0 → 100755 +40 −0 Original line number Diff line number Diff line #!/bin/bash set -e # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi # Set service and cacheing if [[ "x$1" == "xnocache" ]] ; then NOCACHE=True SERVICE="" elif [[ "x$2" == "xnocache" ]] ; then NOCACHE=True SERVICE=$1 else NOCACHE=False SERVICE=$1 fi if [[ "x$NOCACHE" == "xTrue" ]] ; then BUILD_COMMAND="docker build --no-cache" else BUILD_COMMAND="docker build" fi if [[ "x$SERVICE" == "x" ]] ; then # Build all services $BUILD_COMMAND services/api-gateway -t esap/api-gateway $BUILD_COMMAND services/proxy -t esap/proxy else # Build a specific image $BUILD_COMMAND services/$SERVICE -t esap/$SERVICE fi esap/clean 0 → 100755 +13 −0 Original line number Diff line number Diff line #!/bin/bash # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi if [[ $# -eq 0 ]] ; then docker-compose down else docker-compose down $@ fi esap/makemigrations 0 → 100755 +10 −0 Original line number Diff line number Diff line #!/bin/bash # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi esap/shell api-gateway "cd /opt/esap-api-gateway/esap/ && source /tmp/env.sh && python3 manage.py makemigrations --settings=esap.settings.dev" esap/migrate 0 → 100755 +9 −0 Original line number Diff line number Diff line #!/bin/bash # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi rosetta/shell api-gateway "cd /opt/esap-api-gateway/esap/ && source /tmp/env.sh && python3 manage.py migrate --settings=esap.settings.dev" Loading
docker-compose-dev.yml 0 → 100644 +33 −0 Original line number Diff line number Diff line version: '3' services: api-gateway: image: "esap/api-gateway" container_name: api-gateway hostname: api-gateway environment: - DJANGO_DEV_SERVER=True - DJANGO_DEBUG=True - DJANGO_LOG_LEVEL=CRITICAL #- DJANGO_SECRET_KEY="" ports: - "8000:8000" #volumes: # - ./services/api-gateway/opt/esap-api-gateway:/opt/opt/esap-api-gateway proxy: image: "esap/proxy" container_name: proxy hostname: proxy ports: - "80:80" - "443:443"
esap/build 0 → 100755 +40 −0 Original line number Diff line number Diff line #!/bin/bash set -e # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi # Set service and cacheing if [[ "x$1" == "xnocache" ]] ; then NOCACHE=True SERVICE="" elif [[ "x$2" == "xnocache" ]] ; then NOCACHE=True SERVICE=$1 else NOCACHE=False SERVICE=$1 fi if [[ "x$NOCACHE" == "xTrue" ]] ; then BUILD_COMMAND="docker build --no-cache" else BUILD_COMMAND="docker build" fi if [[ "x$SERVICE" == "x" ]] ; then # Build all services $BUILD_COMMAND services/api-gateway -t esap/api-gateway $BUILD_COMMAND services/proxy -t esap/proxy else # Build a specific image $BUILD_COMMAND services/$SERVICE -t esap/$SERVICE fi
esap/clean 0 → 100755 +13 −0 Original line number Diff line number Diff line #!/bin/bash # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi if [[ $# -eq 0 ]] ; then docker-compose down else docker-compose down $@ fi
esap/makemigrations 0 → 100755 +10 −0 Original line number Diff line number Diff line #!/bin/bash # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi esap/shell api-gateway "cd /opt/esap-api-gateway/esap/ && source /tmp/env.sh && python3 manage.py makemigrations --settings=esap.settings.dev"
esap/migrate 0 → 100755 +9 −0 Original line number Diff line number Diff line #!/bin/bash # Check if we are in the right place if [ ! -d ./services ]; then echo "You must run this command from the project's root folder." exit 1 fi rosetta/shell api-gateway "cd /opt/esap-api-gateway/esap/ && source /tmp/env.sh && python3 manage.py migrate --settings=esap.settings.dev"