Skip to content

Commit de1f1f2

Browse files
author
sachin-maheshwari
authored
Merge pull request #133 from appirio-tech/dev
"New Auth Flow" - upgrading java build version for TLS1.2 support
2 parents 512c848 + 4437412 commit de1f1f2

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.circleci/config.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ build_steps: &build_steps
2020
- run:
2121
name: Installation of build dependencies.
2222
command: |
23+
sudo apt update
2324
sudo apt install jq
2425
sudo apt install awscli
2526
- setup_remote_docker
@@ -55,22 +56,25 @@ build_steps: &build_steps
5556
#chmod +x /home/circleci/project/service/build/deploy.sh
5657
#/home/circleci/project/service/build/deploy.sh /home/circleci/project /home/circleci/project/service/build ap-review $DEPLOY_APP_ENV
5758
source awsenvconf
58-
./buildenv.sh -e $DEPLOY_ENV -b ${DEPLOY_ENV}-ap-review-microservice-deployvar
59+
./buildenv.sh -e $DEPLOY_ENV -b ${DEPLOY_ENV}-ap-review-microservice-ecs-deployvar
5960
source buildenvvar
60-
./master_deploy.sh -d EBS -e $DEPLOY_ENV -t "${DEPLOY_ENV}.${CIRCLE_BUILD_NUM}"
61+
#./master_deploy.sh -d EBS -e $DEPLOY_ENV -t "${DEPLOY_ENV}.${CIRCLE_BUILD_NUM}"
62+
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${DEPLOY_ENV}-${APPNAME}-appvar -i ${APPNAME}
6163
6264
jobs:
6365
"build-dev":
6466
<<: *java_env
6567
environment:
6668
DEPLOY_APP_ENV: "dev"
67-
DEPLOY_ENV: "DEV"
69+
DEPLOY_ENV: "DEV"
70+
APPNAME: "ap-review-microservice"
6871
steps: *build_steps
6972
"build-prod":
7073
<<: *java_env
7174
environment:
7275
DEPLOY_APP_ENV: "prod"
7376
DEPLOY_ENV: "PROD"
77+
APPNAME: "ap-review-microservice"
7478
steps: *build_steps
7579

7680
workflows:
@@ -85,8 +89,11 @@ workflows:
8589
only:
8690
- dev
8791
- dev-msinteg
92+
- dev-ecs
8893
- "build-prod":
8994
context : org-global
9095
filters:
9196
branches:
92-
only: master
97+
only:
98+
- master
99+
- master-ecs

service/build/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM appiriodevops/ap-microservice-base:0.0.1
1+
FROM appiriodevops/ap-microservice-base:0.0.2
22

33
44

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)