File tree 6 files changed +49
-8
lines changed
6 files changed +49
-8
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,6 @@ USER ingestor:pragma
25
25
WORKDIR /home/pragma-ingestor
26
26
27
27
COPY --from=builder --chown=ingestor:pragma /home/pragma-ingestor/bin/pragma-ingestor /usr/local/bin/pragma-ingestor
28
- COPY infra/pragma-ingestor/config/.env.example .env
28
+ # COPY infra/pragma-ingestor/config/.env.example .env
29
29
30
30
CMD ["pragma-ingestor" ]
Original file line number Diff line number Diff line change
1
+ version : 0.2
2
+ phases :
3
+ pre_build :
4
+ commands :
5
+ - echo Logging in to Amazon ECR...
6
+ - aws --version
7
+ - aws ecr get-login-password --region $ECR_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$ECR_REGION.amazonaws.com
8
+ - REPOSITORY_URI=$AWS_ACCOUNT_ID.dkr.ecr.$ECR_REGION.amazonaws.com/$ECR_REPOSITORY_NAME
9
+ - COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
10
+ - IMAGE_TAG=${COMMIT_HASH:=latest}
11
+ build :
12
+ commands :
13
+ - echo Build started on `date`
14
+ - echo Building the Docker image...
15
+ - ls -ltr
16
+ - docker build -f infra/pragma-ingestor/Dockerfile -t $REPOSITORY_URI:latest .
17
+ - docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
18
+ post_build :
19
+ commands :
20
+ - echo Build completed on `date`
21
+ - echo Pushing the Docker images...
22
+ - docker push $REPOSITORY_URI:latest
23
+ - docker push $REPOSITORY_URI:$IMAGE_TAG
24
+ - echo Writing image definitions file...
25
+ - printf '[{"name":"%s","imageUri":"%s"}]' $ECS_CONTAINER_NAME $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json
26
+ artifacts :
27
+ files :
28
+ - imagedefinitions.json
29
+ - infra/pragma-ingestor/config.yml
30
+ discard-paths : yes
Original file line number Diff line number Diff line change
1
+ path : " /"
2
+ container_port : 8080
3
+ health_check_path : " /"
4
+ container_environment :
5
+ - region : " eu-west-3"
6
+ - prefix : " /conf/{{ SERVICE_NAME }}/{{ RUN_ENV }}"
7
+ - keys :
8
+ - DATABASE_URL
9
+ - BROKERS
10
+ - TOPIC
11
+ - GROUP_ID
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ USER node:pragma
26
26
WORKDIR /home/pragma-node
27
27
28
28
COPY --from=builder --chown=node:pragma /home/pragma-node/bin/pragma-node /usr/local/bin/pragma-node
29
- COPY infra/pragma-node/config/.env.example .env
29
+ # COPY infra/pragma-node/config/.env.example .env
30
30
31
31
EXPOSE 3000
32
32
Original file line number Diff line number Diff line change 1
1
version : 0.2
2
2
phases :
3
- install :
4
- runtime-versions :
5
- nodejs : 18
6
3
pre_build :
7
4
commands :
8
5
- echo Logging in to Amazon ECR...
@@ -16,7 +13,7 @@ phases:
16
13
- echo Build started on `date`
17
14
- echo Building the Docker image...
18
15
- ls -ltr
19
- - docker build -t $REPOSITORY_URI:latest .
16
+ - docker build -f infra/pragma-node/Dockerfile - t $REPOSITORY_URI:latest .
20
17
- docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
21
18
post_build :
22
19
commands :
@@ -29,4 +26,5 @@ phases:
29
26
artifacts :
30
27
files :
31
28
- imagedefinitions.json
32
- - config.yml
29
+ - infra/pragma-node/config.yml
30
+ discard-paths : yes
Original file line number Diff line number Diff line change 1
1
path : " /"
2
2
container_port : 8080
3
- alb_scheme : internal
4
3
health_check_path : " /node"
5
4
container_environment :
6
5
- region : " eu-west-3"
7
6
- prefix : " /conf/{{ SERVICE_NAME }}/{{ RUN_ENV }}"
8
7
- keys :
9
8
- DATABASE_URL
9
+ - DATABASE_MAX_CONN
10
+ - TOPIC
10
11
- HOST
11
12
- PORT
13
+ - KAFKA_BROKERS
You can’t perform that action at this time.
0 commit comments