Skip to content

Commit 538332c

Browse files
committed
first version
1 parent 34c24cd commit 538332c

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

infra/aws/create-and-deploy-images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ FUSEKI_IMAGE=docker.io/secoresearch/fuseki:4.5.0
44
METABASE_IMAGE=docker.io/metabase/metabase:v0.43.4
55
AIRFLOW_POSTGRES_IMAGE=docker.io/postgres:14.4-alpine
66
REDIS_IMAGE=docker.io/redis:7.0.4-alpine3.16
7-
MONGO_EXPRESS_IMAGE=docker.io/mongo-express:0.54.0
7+
88

99

1010
IMAGES_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

1313
touch .repositories_ids
1414

infra/aws/create-clusters.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source .env
22
export $(cat .env | xargs)
3-
CLUSTERS=(mongo digest-api airflow fuseki metabase mongo-express)
3+
CLUSTERS=(mongo digest-api airflow fuseki metabase)
44

55
create_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
2323
create_cluster $AIRFLOW_INSTANCE_TYPE airflow-cluster airflow-cluster-profile
2424
create_cluster $FUSEKI_INSTANCE_TYPE fuseki-cluster fuseki-cluster-profile
2525
create_cluster $METABASE_INSTANCE_TYPE metabase-cluster metabase-cluster-profile
26-
create_cluster $MONGO_EXPRESS_INSTANCE_TYPE mongo-express-cluster mongo-express-cluster-profile

infra/aws/create-services.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source .env
22
export $(cat .env | xargs)
33

4-
SERVICES_WITHOUT_DNS=(airflow metabase mongo-express)
4+
SERVICES_WITHOUT_DNS=(airflow metabase)
55
SERVICES_WITH_DNS_CREATION=(mongo digest-api fuseki)
66

77
create_service_with_service_discovery(){

infra/aws/start-services.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
source .env
33
export $(cat .env | xargs)
44
SERVICES_WITH_DNS_CREATION=(mongo digest-api fuseki)
5-
SERVICES_WITHOUT_DNS=(airflow metabase mongo-express)
5+
SERVICES_WITHOUT_DNS=(airflow metabase)
66

77
start_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

1212
start_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

0 commit comments

Comments
 (0)