-
Notifications
You must be signed in to change notification settings - Fork 15
Merge into Dev from dev_msmstsv1.3 branch #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9c9d8b7
Update build.sh
nkumar-topcoder 83a55cc
Update Dockerfile
nkumar-topcoder b70f000
Update config.yml
nkumar-topcoder 1590a07
Update config.yml
nkumar-topcoder 88e679e
Update config.yml
nkumar-topcoder a5b0f83
Update Dockerfile
nkumar-topcoder a35874d
Update config.yml
nkumar-topcoder 23b36af
Update Dockerfile
nkumar-topcoder 837aef6
Update Dockerfile
nkumar-topcoder 5c8097b
Update default.js
896ebb5
Update config.yml
nkumar-topcoder fdc6e42
Update config.yml
nkumar-topcoder 000d823
adding health endpoint for processor service
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,93 @@ | ||
version: 2 | ||
|
||
jobs: | ||
# Build & Deploy against development backend rer | ||
"build-dev": | ||
version: 2 | ||
defaults: &defaults | ||
docker: | ||
- image: docker:17.06.1-ce-git | ||
steps: | ||
# Initialization. | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Installation of build dependencies. | ||
command: apk add --no-cache bash | ||
install_dependency: &install_dependency | ||
name: Installation of build and deployment dependencies. | ||
command: | | ||
apk update | ||
apk add --no-cache bash curl | ||
apk upgrade | ||
apk add --no-cache jq py-pip sudo | ||
sudo pip install awscli --upgrade | ||
install_deploysuite: &install_deploysuite | ||
name: Installation of install_deploysuite. | ||
command: | | ||
git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript | ||
cp ./../buildscript/master_deploy.sh . | ||
cp ./../buildscript/buildenv.sh . | ||
cp ./../buildscript/awsconfiguration.sh . | ||
|
||
restore_cache_settings_for_build: &restore_cache_settings_for_build | ||
key: docker-tc-notify-{{ checksum "package-lock.json" }} | ||
|
||
# Restoration of node_modules from cache. | ||
- restore_cache: | ||
key: docker-tc-notify-{{ checksum "package-lock.json" }} | ||
save_cache_settings: &save_cache_settings | ||
key: docker-tc-notify-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
|
||
# Build of Docker image. | ||
- run: | ||
run_build: &run_build | ||
name: Build of Docker image | ||
command: ./build.sh DEV | ||
command: ./build.sh | ||
|
||
# Caching node modules. | ||
- save_cache: | ||
key: docker-tc-notify-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
|
||
# Deployment. | ||
- run: | ||
name: Installing AWS client | ||
command: | | ||
apk add --no-cache jq py-pip sudo | ||
sudo pip install awscli --upgrade | ||
|
||
jobs: | ||
# Build & Deploy against development backend rer | ||
"build-dev": | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: *install_dependency | ||
- run: *install_deploysuite | ||
- restore_cache: *restore_cache_settings_for_build | ||
- run: *run_build | ||
- save_cache: *save_cache_settings | ||
- deploy: | ||
command: ./deploy.sh DEV $CIRCLE_SHA1 | ||
name: Running Masterscript - deploy tc-notifications-api service | ||
command: | | ||
./awsconfiguration.sh DEV | ||
source awsenvconf | ||
./buildenv.sh -e DEV -b dev-tc-notifications-deployvar | ||
source buildenvvar | ||
./master_deploy.sh -d ECS -e DEV -t latest -s dev-global-appvar,dev-tc-notifications-appvar -i tc-notifications | ||
echo "Running Masterscript - deploy tc-notifications-consumers service" | ||
if [ -e dev-tc-notifications-deployvar.json ]; then sudo rm -vf dev-tc-notifications-deployvar.json; fi | ||
./buildenv.sh -e DEV -b dev-tc-notifications-consumers-deployvar | ||
source buildenvvar | ||
./master_deploy.sh -d ECS -e DEV -t latest -s dev-global-appvar,dev-tc-notifications-appvar -i tc-notifications | ||
|
||
"build-prod": | ||
docker: | ||
- image: docker:17.06.1-ce-git | ||
<<: *defaults | ||
steps: | ||
# Initialization. | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Installation of build dependencies. | ||
command: apk add --no-cache bash | ||
|
||
# Restoration of node_modules from cache. | ||
- restore_cache: | ||
key: docker-tc-notify-{{ checksum "package-lock.json" }} | ||
|
||
# Build of Docker image. | ||
- run: | ||
name: Build of Docker image | ||
command: ./build.sh PROD | ||
|
||
# Caching node modules. | ||
- save_cache: | ||
key: docker-tc-notify-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
|
||
# Deployment. | ||
- run: | ||
name: Installing AWS client | ||
command: | | ||
apk add --no-cache jq py-pip sudo | ||
sudo pip install awscli --upgrade | ||
|
||
- run: *install_dependency | ||
- run: *install_deploysuite | ||
- restore_cache: *restore_cache_settings_for_build | ||
- run: *run_build | ||
- save_cache: *save_cache_settings | ||
- deploy: | ||
command: ./deploy.sh PROD $CIRCLE_SHA1 | ||
|
||
command: | | ||
./awsconfiguration.sh PROD | ||
source awsenvconf | ||
./buildenv.sh -e PROD -b prod-tc-notifications-deployvar | ||
source buildenvvar | ||
./master_deploy.sh -d ECS -e PROD -t latest -s prod-global-appvar,prod-tc-notifications-appvar -i tc-notifications | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
# Development builds are executed on "develop" branch only. | ||
- "build-dev": | ||
context : org-global | ||
filters: | ||
branches: | ||
only: [dev] | ||
only: ['dev', 'dev_msstsv1.3'] | ||
- "build-prod": | ||
context : org-global | ||
filters: | ||
branches: | ||
only: master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nkumar-topcoder just curious what is purpose of using
ENTRYPOINT
instead ofCMD
?