Skip to content

Commit a09bb46

Browse files
committed
EBS to ECS migration
1 parent a528211 commit a09bb46

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,25 @@ build_steps: &build_steps
5555
#chmod +x /home/circleci/project/service/build/deploy.sh
5656
#/home/circleci/project/service/build/deploy.sh /home/circleci/project /home/circleci/project/service/build ap-review $DEPLOY_APP_ENV
5757
source awsenvconf
58-
./buildenv.sh -e $DEPLOY_ENV -b ${DEPLOY_ENV}-ap-review-microservice-deployvar
58+
./buildenv.sh -e $DEPLOY_ENV -b ${DEPLOY_ENV}-ap-review-microservice-ecs-deployvar
5959
source buildenvvar
60-
./master_deploy.sh -d EBS -e $DEPLOY_ENV -t "${DEPLOY_ENV}.${CIRCLE_BUILD_NUM}"
60+
#./master_deploy.sh -d EBS -e $DEPLOY_ENV -t "${DEPLOY_ENV}.${CIRCLE_BUILD_NUM}"
61+
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
6162
6263
jobs:
6364
"build-dev":
6465
<<: *java_env
6566
environment:
6667
DEPLOY_APP_ENV: "dev"
67-
DEPLOY_ENV: "DEV"
68+
DEPLOY_ENV: "DEV"
69+
APPNAME: "ap-review-microservice"
6870
steps: *build_steps
6971
"build-prod":
7072
<<: *java_env
7173
environment:
7274
DEPLOY_APP_ENV: "prod"
7375
DEPLOY_ENV: "PROD"
76+
APPNAME: "ap-review-microservice"
7477
steps: *build_steps
7578

7679
workflows:
@@ -85,6 +88,7 @@ workflows:
8588
only:
8689
- dev
8790
- dev-msinteg
91+
- dev-ecs
8892
- "build-prod":
8993
context : org-global
9094
filters:

service/build/buildimage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ aws s3 cp "s3://appirio-platform-$ENV/services/common/dockercfg" ~/.dockercfg
4444

4545
echo "Building docker image $DOCKER_REPO/$IMAGE"
4646
docker build -t $DOCKER_REPO/$IMAGE $DEPLOY_DIR
47-
47+
APPNAME="$SERVICE-microservice"
48+
docker tag $DOCKER_REPO/$IMAGE $APPNAME:latest

service/src/main/java/com/appirio/service/review/resources/ReviewResource.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,16 @@ public ApiResponse deleteReview(@Auth AuthUser user, @PathParam("reviewId") Long
311311
}
312312
}
313313

314+
/**
315+
* Health check issue integration
316+
*/
317+
@GET
318+
@Path("/health")
319+
@Timed
320+
public ApiResponse healthcheck() throws Exception {
321+
return ApiResponseFactory.createResponse("health is fine");
322+
}
323+
314324
/**
315325
* This private method checks whether the user has administrator permissions and if the given review exists.
316326
*

0 commit comments

Comments
 (0)