Skip to content

Commit

Permalink
[Dockerfile] updated to use /bin/sh. Removed partner demo from CI dep…
Browse files Browse the repository at this point in the history
…loyments. (#56)

* [Dockerfile] updated to use /bin/sh.

* [CI] sentry org named updated.

* [CI] removed the partner demo from the deployment setup.
  • Loading branch information
rsmets authored Jul 1, 2024
1 parent b5afdc3 commit 222d817
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 57 deletions.
112 changes: 56 additions & 56 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ workflows:
script_name: sentry:upload_sourcemaps
compile_script_name: build:sourcemap
cache_version: v6
sentry_org: verified-inc
sentry_org: verified-network
sentry_project: hooli-demo-web
filters:
branches:
Expand All @@ -72,23 +72,23 @@ workflows:
only:
- main

- unumid/deploy-image:
name: unumid/deploy-image-dev-partner
requires:
- unumid/build-and-push-image
context:
- AWS-Root-Account
- Slack-Context
account_id: '408067220840'
repo: hooli-demo-web # update with actual repo name
deployment: hooli-partner-demo-web # update with actual deployment name
cluster_name: dev-account-saas-cluster
namespace: demos
image_tag: dev-latest
filters:
branches:
only:
- main
# - unumid/deploy-image:
# name: unumid/deploy-image-dev-partner
# requires:
# - unumid/build-and-push-image
# context:
# - AWS-Root-Account
# - Slack-Context
# account_id: '408067220840'
# repo: hooli-demo-web # update with actual repo name
# deployment: hooli-partner-demo-web # update with actual deployment name
# cluster_name: dev-account-saas-cluster
# namespace: demos
# image_tag: dev-latest
# filters:
# branches:
# only:
# - main

build-and-deploy-staging:
jobs:
Expand Down Expand Up @@ -128,7 +128,7 @@ workflows:
script_name: sentry:upload_sourcemaps
compile_script_name: build:sourcemap
cache_version: v6
sentry_org: verified-inc
sentry_org: verified-network
sentry_project: hooli-demo-web
filters:
tags:
Expand Down Expand Up @@ -156,25 +156,25 @@ workflows:
branches:
ignore: /.*/

- unumid/deploy-image:
name: unumid/deploy-image-staging-partner
requires:
- unumid/build-and-push-image-staging
context:
- AWS-Root-Account
- Slack-Context
account_id: 058264190665
repo: hooli-demo-web # update with actual repo name
deployment: hooli-partner-demo-web # update with actual deployment name
cluster_name: staging-account-core-cluster
namespace: demos
image_tag: '${CIRCLE_TAG}'
slack_pass_notify_template: success_tagged_deploy_1
filters:
tags:
only: /^v\d+\.\d+\.\d+/
branches:
ignore: /.*/
# - unumid/deploy-image:
# name: unumid/deploy-image-staging-partner
# requires:
# - unumid/build-and-push-image-staging
# context:
# - AWS-Root-Account
# - Slack-Context
# account_id: 058264190665
# repo: hooli-demo-web # update with actual repo name
# deployment: hooli-partner-demo-web # update with actual deployment name
# cluster_name: staging-account-core-cluster
# namespace: demos
# image_tag: '${CIRCLE_TAG}'
# slack_pass_notify_template: success_tagged_deploy_1
# filters:
# tags:
# only: /^v\d+\.\d+\.\d+/
# branches:
# ignore: /.*/

build-and-deploy-test:
jobs:
Expand All @@ -199,7 +199,7 @@ workflows:
script_name: sentry:upload_sourcemaps
compile_script_name: build:sourcemap
cache_version: v6
sentry_org: verified-inc
sentry_org: verified-network
sentry_project: hooli-demo-web
filters:
branches:
Expand All @@ -223,20 +223,20 @@ workflows:
branches:
only:
- test-circleci
- unumid/deploy-image:
name: unumid/deploy-image-test-partner
requires:
- unumid/build-and-push-image-test
context:
- AWS-Root-Account
- Slack-Context
account_id: '408067220840'
repo: hooli-demo-web # update with actual repo name
deployment: hooli-partner-demo-web # update with actual deployment name
cluster_name: dev-account-saas-cluster
namespace: demos
image_tag: test-latest
filters:
branches:
only:
- test-circleci
# - unumid/deploy-image:
# name: unumid/deploy-image-test-partner
# requires:
# - unumid/build-and-push-image-test
# context:
# - AWS-Root-Account
# - Slack-Context
# account_id: '408067220840'
# repo: hooli-demo-web # update with actual repo name
# deployment: hooli-partner-demo-web # update with actual deployment name
# cluster_name: dev-account-saas-cluster
# namespace: demos
# image_tag: test-latest
# filters:
# branches:
# only:
# - test-circleci
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ RUN npm cache clean --force

# bootstrapping using "node" (not using the npm start script) so that the running node process gets OS signals (e.g. SIGTERM) and can gracefully shut down
# CMD syntax ref: https://www.baeldung.com/linux/docker-cmd-multiple-commands#2-run-multiple-commands-with-the-exec-form
CMD ["/bin/bash", "-c", "cross-env NODE_ENV=production node ./server.js/"]
CMD ["/bin/sh", "-c", "npm run start"]

0 comments on commit 222d817

Please sign in to comment.