Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
refactor: TT-293 refactor docker-compose to execute a valid entrypoin…
…t.sh
  • Loading branch information
jcalarcon98 committed Jul 21, 2021
commit 99cabf78a9431781dfa7189cb6b88f4e78e1416f
20 changes: 0 additions & 20 deletions cosmosdb-emulator/entrypoint.sh

This file was deleted.

36 changes: 0 additions & 36 deletions cosmosdb-emulator/init_emulator.sh

This file was deleted.

64 changes: 0 additions & 64 deletions cosmosdb-emulator/init_emulator_db.py

This file was deleted.

38 changes: 13 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,27 @@ services:
- .env
volumes:
- .:/usr/src/app
# depends_on:
# - cosmosdb
depends_on:
- cosmosdb
entrypoint:
- /bin/sh
- ./cosmosdb-emulator/entrypoint.sh
# networks:
# services_net:
# ipv4_address: 172.20.0.77
- ./cosmosdb_emulator/entrypoint.sh

cosmosdb:
container_name: "azurecosmosemulator"
hostname: "azurecosmosemulator"
image: 'mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator'
tty: true
cpu_count: 2
restart: always
mem_limit: 3GB
ports:
- '8081:8081'
- '10251:10251'
- '10252:10252'
- '10253:10253'
- '10254:10254'
- '8081:8081'
- '10251:10251'
- '10252:10252'
- '10253:10253'
- '10254:10254'
environment:
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=7
- AZURE_COSMOS_EMULATOR_ARGS=/alternativenames=azurecosmosemulator

# networks:
# services_net:
# ipv4_address: 172.20.0.78


# networks:
# services_net:
# ipam:
# driver: default
# config:
# - subnet: 172.20.0.0/16
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=7
- AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true
- AZURE_COSMOS_EMULATOR_ARGS=/alternativenames=azurecosmosemulator
5 changes: 5 additions & 0 deletions requirements/time_tracker_api/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ coverage==4.5.1

# Git hooks
pre-commit==2.2.0

# CLI tools
PyInquirer==1.0.3
pyfiglet==0.7
factory_boy==3.2.0