File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ FUSEKI_IMAGE=docker.io/secoresearch/fuseki:4.5.0
44METABASE_IMAGE=docker.io/metabase/metabase:v0.43.4
55AIRFLOW_POSTGRES_IMAGE=docker.io/postgres:14.4-alpine
66REDIS_IMAGE=docker.io/redis:7.0.4-alpine3.16
7- MONGO_EXPRESS_IMAGE=docker.io/mongo-express:0.54.0
7+
88
99
1010IMAGES_TO_BE_BUILD=(airflow digest_api metabase_postgres)
11- IMAGES_FROM_DOCKER_HUB=(fuseki airflow_postgres metabase mongo redis mongo_express )
11+ IMAGES_FROM_DOCKER_HUB=(fuseki airflow_postgres metabase mongo redis)
1212
1313touch .repositories_ids
1414
Original file line number Diff line number Diff line change 11source .env
22export $( cat .env | xargs)
3- CLUSTERS=(mongo digest-api airflow fuseki metabase mongo-express )
3+ CLUSTERS=(mongo digest-api airflow fuseki metabase)
44
55create_cluster_config_and_profiles () {
66 ecs-cli configure --cluster $1 -cluster --default-launch-type EC2 --config-name $1 -cluster --region $REGION
@@ -23,4 +23,3 @@ create_cluster $DIGEST_API_INSTANCE_TYPE digest-api-cluster digest-api-cluster-p
2323create_cluster $AIRFLOW_INSTANCE_TYPE airflow-cluster airflow-cluster-profile
2424create_cluster $FUSEKI_INSTANCE_TYPE fuseki-cluster fuseki-cluster-profile
2525create_cluster $METABASE_INSTANCE_TYPE metabase-cluster metabase-cluster-profile
26- create_cluster $MONGO_EXPRESS_INSTANCE_TYPE mongo-express-cluster mongo-express-cluster-profile
Original file line number Diff line number Diff line change 11source .env
22export $( cat .env | xargs)
33
4- SERVICES_WITHOUT_DNS=(airflow metabase mongo-express )
4+ SERVICES_WITHOUT_DNS=(airflow metabase)
55SERVICES_WITH_DNS_CREATION=(mongo digest-api fuseki)
66
77create_service_with_service_discovery (){
Original file line number Diff line number Diff line change 22source .env
33export $( cat .env | xargs)
44SERVICES_WITH_DNS_CREATION=(mongo digest-api fuseki)
5- SERVICES_WITHOUT_DNS=(airflow metabase mongo-express )
5+ SERVICES_WITHOUT_DNS=(airflow metabase)
66
77start_service_with_service_discovery (){
8- # ecs-cli compose --project-name $1-service --file $1.yml --ecs-params $1-ecs-params.yml --debug service up --region $REGION --ecs-profile $1-cluster-profile --cluster-config $1-cluster --private-dns-namespace ted_sws --vpc $VPC_ID --dns-type A --enable-service-discovery --create-log-groups
9- ecs-cli compose --project-name $1 -service --file $1 .yml --ecs-params $1 -ecs-params.yml --debug service up --region $REGION --ecs-profile $1 -cluster-profile --cluster-config $1 -cluster --private-dns-namespace ted_sws --vpc $VPC_ID --dns-type A --enable-service-discovery
8+ ecs-cli compose --project-name $1 -service --file $1 .yml --ecs-params $1 -ecs-params.yml --debug service up --region $REGION --ecs-profile $1 -cluster-profile --cluster-config $1 -cluster --private-dns-namespace ted_sws --vpc $VPC_ID --dns-type A --enable-service-discovery --create-log-groups
9+ # ecs-cli compose --project-name $1-service --file $1.yml --ecs-params $1-ecs-params.yml --debug service up --region $REGION --ecs-profile $1-cluster-profile --cluster-config $1-cluster --private-dns-namespace ted_sws --vpc $VPC_ID --dns-type A --enable-service-discovery
1010}
1111
1212start_service_without_service_discovery (){
13- # ecs-cli compose --project-name $1-service --file $1.yml --ecs-params $1-ecs-params.yml --debug service up --region $REGION --ecs-profile $1-cluster-profile --cluster-config $1-cluster --create-log-groups
14- ecs-cli compose --project-name $1 -service --file $1 .yml --ecs-params $1 -ecs-params.yml --debug service up --region $REGION --ecs-profile $1 -cluster-profile --cluster-config $1 -cluster
13+ ecs-cli compose --project-name $1 -service --file $1 .yml --ecs-params $1 -ecs-params.yml --debug service up --region $REGION --ecs-profile $1 -cluster-profile --cluster-config $1 -cluster --create-log-groups
14+ # ecs-cli compose --project-name $1-service --file $1.yml --ecs-params $1-ecs-params.yml --debug service up --region $REGION --ecs-profile $1-cluster-profile --cluster-config $1-cluster
1515}
1616
1717
You can’t perform that action at this time.
0 commit comments