-
Notifications
You must be signed in to change notification settings - Fork 44
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
Added docker deployment #9263
Open
kurtisassad
wants to merge
121
commits into
master
Choose a base branch
from
ka.dockerCD
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added docker deployment #9263
Changes from all commits
Commits
Show all changes
121 commits
Select commit
Hold shift + click to select a range
86224a8
Test docker upload
kurtisassad 476faff
temp
kurtisassad 48d9f03
temp
kurtisassad 63c9e69
temp
kurtisassad 1a0cbe8
temp
kurtisassad 9b8350b
temp
kurtisassad 58a6e30
temp
kurtisassad 7d1cf92
temp
kurtisassad c31edc2
temp
kurtisassad 89aef6f
temp
kurtisassad 53bf8f1
temp
kurtisassad be17371
temp
kurtisassad 4f20d7c
temp
kurtisassad 91b82bf
temp
kurtisassad b240a69
temp
kurtisassad 9fb76a5
temp
kurtisassad 46d8c73
temp
kurtisassad 81b08c8
temp
kurtisassad b966177
temp2
kurtisassad e099121
temp
kurtisassad 4a5faa1
temp
kurtisassad 5e8b6e7
temp
kurtisassad 8aa7c42
temp
kurtisassad 13cd283
temp
kurtisassad e68a491
temp
kurtisassad 687b237
temp
kurtisassad df92bbb
temp
kurtisassad 32ebea7
temp
kurtisassad f51d4a5
temp
kurtisassad 1731d10
temp
kurtisassad 6199ead
temp
kurtisassad e7563db
temp
kurtisassad c8f143c
temp
kurtisassad d60516a
temp
kurtisassad 84e8b93
temp
kurtisassad 8bb533f
temp
kurtisassad 0d0112f
temp
kurtisassad 50a5bcc
Finished deployment script for docker
kurtisassad ef4813d
Refactoring Dockerfiles
kurtisassad f01d2db
Cleanup
kurtisassad eda5ae1
Updated docs
kurtisassad e2527d1
Added datadog
kurtisassad 0f221a9
Added datadog
kurtisassad f8cadc4
Added datadog
kurtisassad 0c2fcff
Added datadog
kurtisassad 32ee5ba
Added datadog
kurtisassad 8a1a17f
Added datadog
kurtisassad 3a1f6f2
Added datadog
kurtisassad fc2cf45
Added datadog
kurtisassad ec64d88
Added datadog
kurtisassad 99af693
Added datadog
kurtisassad 000ea56
Added release phase
kurtisassad 16943d2
Refactored deployment
kurtisassad 5ab174d
Refactored deployment
kurtisassad 1224bb4
Refactored deployment
kurtisassad e80c0b1
Refactored deployment
kurtisassad d669aa8
Refactored deployment
kurtisassad 25339cf
Refactored deployment
kurtisassad 19c37ca
Refactored deployment
kurtisassad 84ec77c
Merge branch 'master' into ka.dockerCD
kurtisassad 01d2cf7
Updated lockfile
kurtisassad 982ee1f
Added envs for all heroku envs
kurtisassad fe07f2a
Added env for demo
kurtisassad 7451535
Added env vars
kurtisassad f19fad2
temp
kurtisassad cabd755
Refactored heroku deployment
kurtisassad 018814e
Refactored heroku deployment
kurtisassad 62a09b0
Refactored heroku deployment
kurtisassad 1e7d1ec
Refactored heroku deployment
kurtisassad 80a32fd
Refactored heroku deployment
kurtisassad b3fb71e
Refactored heroku deployment
kurtisassad 4750181
Refactored heroku deployment
kurtisassad 8f80530
Refactored heroku deployment
kurtisassad 4f79015
Refactored heroku deployment
kurtisassad ba9e50f
Refactored heroku deployment
kurtisassad d776c64
Refactored heroku deployment
kurtisassad 59ba513
Refactored heroku deployment
kurtisassad 9c43802
Refactored heroku deployment
kurtisassad 76b3dd2
Refactored heroku deployment
kurtisassad b5aa98e
Refactored heroku deployment
kurtisassad c457814
Refactored heroku deployment
kurtisassad 0d56ebd
Refactored heroku deployment
kurtisassad c285998
Refactored heroku deployment
kurtisassad 9c54302
Refactored heroku deployment
kurtisassad 845fad3
Added deploy scripts for remaining apps
kurtisassad 4180818
added tmate
kurtisassad ac8040b
Fixed CD
kurtisassad bafa138
Fixed CD
kurtisassad 462375f
Fixed CD
kurtisassad 3202fa0
Fixed CD
kurtisassad e46bff2
Fixed CD
kurtisassad 4dac7a1
Fixed CD
kurtisassad 5021e2b
Fixed CD
kurtisassad 8022905
Fixed CD
kurtisassad 8b5c22f
Updated packages
kurtisassad 090a91d
Updated packages
kurtisassad d345ead
Updated packages
kurtisassad c10b33c
Fixed docker images
kurtisassad 9a5b04d
Added packages
kurtisassad 650545f
Fixed docker image
kurtisassad ce19187
Fixed docker image
kurtisassad 5ac207d
Fixed docker image
kurtisassad 2662376
Fixed docker image
kurtisassad 7e9aff3
Added test log
kurtisassad d6888b5
Added test log
kurtisassad e3e3b68
Added ssl to db
kurtisassad b9fabdd
Reverted change
kurtisassad 68ecc64
Added debugging tools to web container
kurtisassad 261af32
Merge branch 'master' into ka.dockerCDV2
kurtisassad 3abe255
Resolved merge conflicts
kurtisassad 70cb4a1
Enforce ssl mode for federation db on production
kurtisassad 409bedd
Enforce ssl mode for federation db on production
kurtisassad ea4e700
Enforce ssl mode for federation db on production
kurtisassad b3bf412
Enforce ssl mode for federation db on production
kurtisassad e183bbc
debug logs
kurtisassad 40d37c8
Adding debug tools
kurtisassad 233e8fa
Adding debug tools
kurtisassad 0d9c31d
Removed debug stuff
kurtisassad b17b6d9
Remove get-nax-old-space-size.sh
kurtisassad d615a23
Merge branch 'master' into ka.dockerCD
kurtisassad 30b14e5
Updated pnpm lock
kurtisassad 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 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 |
---|---|---|
|
@@ -12,7 +12,6 @@ node_modules/ | |
**/test-results | ||
**/*.tsbuildinfo | ||
**/.DS_Store | ||
*.env | ||
*.log | ||
.idea | ||
.vscode | ||
|
This file contains 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build Docker Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
- frick | ||
- frack | ||
- production | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set Heroku app name based on branch | ||
id: set-heroku-app-name | ||
run: | | ||
BRANCH_NAME=${GITHUB_REF##*/} | ||
case $BRANCH_NAME in | ||
frick) | ||
APP_NAME="commonwealth-frick" | ||
;; | ||
frack) | ||
APP_NAME="commonwealth-frack" | ||
;; | ||
staging) | ||
APP_NAME="commonwealth-beta" | ||
;; | ||
demo) | ||
APP_NAME="commonwealth-demo" | ||
;; | ||
production) | ||
APP_NAME="commonwealthapp" | ||
;; | ||
*) | ||
echo "Branch $BRANCH_NAME is not configured for deployment." | ||
exit 1 | ||
;; | ||
esac | ||
echo "HEROKU_APP_NAME=$APP_NAME" >> $GITHUB_ENV | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Deploy to Heroku | ||
run: | | ||
chmod +x ./scripts/deploy-to-heroku.sh | ||
./scripts/deploy-to-heroku.sh "${{ secrets.HEROKU_EMAIL }}" "${{ secrets.HEROKU_API_TOKEN }}" "${{ env.HEROKU_APP_NAME }}" |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM datadog-base AS base | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
FROM base AS build | ||
## needed for node-gyp to build | ||
RUN apt-get update && \ | ||
apt-get install -y python3 make gcc g++ | ||
COPY . /usr/src/app | ||
WORKDIR /usr/src/app | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm run build | ||
|
||
RUN pnpm -F discord-bot run build | ||
RUN pnpm deploy -F discord-bot --prod /prod/discord-bot | ||
RUN mv /usr/src/app/packages/discord-bot/build /prod/discord-bot/build | ||
|
||
RUN pnpm -F snapshot-listener run build | ||
RUN pnpm deploy -F snapshot-listener --prod /prod/snapshot-listener | ||
RUN mv /usr/src/app/packages/snapshot-listener/build /prod/snapshot-listener/build | ||
|
||
RUN pnpm deploy -F commonwealth --prod /prod/commonwealth | ||
RUN mv /usr/src/app/packages/commonwealth/build /prod/commonwealth/build | ||
|
||
FROM base AS commonwealth | ||
ENV NODE_ENV=production | ||
COPY --from=build /prod/commonwealth /prod/commonwealth | ||
WORKDIR /prod/commonwealth | ||
COPY ./scripts/datadog-entrypoint.sh /prod/commonwealth | ||
RUN chmod +x /prod/commonwealth/datadog-entrypoint.sh | ||
ENV PORT=$PORT | ||
|
||
FROM base AS snapshot-listener | ||
ENV NODE_ENV=production | ||
COPY --from=build /prod/snapshot-listener /prod/snapshot-listener | ||
WORKDIR /prod/snapshot-listener | ||
COPY ./scripts/datadog-entrypoint.sh /prod/snapshot-listener | ||
RUN chmod +x /prod/snapshot-listener/datadog-entrypoint.sh | ||
ENV PORT=$PORT | ||
|
||
FROM base AS discord-bot | ||
ENV NODE_ENV=production | ||
COPY --from=build /prod/discord-bot /prod/discord-bot | ||
WORKDIR /prod/discord-bot | ||
COPY ./scripts/datadog-entrypoint.sh /prod/discord-bot | ||
RUN chmod +x /prod/discord-bot/datadog-entrypoint.sh | ||
ENV PORT=$PORT |
This file contains 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM node:20-slim AS datadog-base | ||
|
||
# Install Datadog dependencies | ||
RUN apt-get update && apt-get install -y gnupg apt-transport-https gpg-agent curl ca-certificates | ||
|
||
# Add Datadog repository and signing keys | ||
ENV DATADOG_APT_KEYRING="/usr/share/keyrings/datadog-archive-keyring.gpg" | ||
ENV DATADOG_APT_KEYS_URL="https://keys.datadoghq.com" | ||
RUN sh -c "echo 'deb [signed-by=${DATADOG_APT_KEYRING}] https://apt.datadoghq.com/ stable 7' > /etc/apt/sources.list.d/datadog.list" | ||
RUN touch ${DATADOG_APT_KEYRING} | ||
RUN curl -o /tmp/DATADOG_APT_KEY_CURRENT.public "${DATADOG_APT_KEYS_URL}/DATADOG_APT_KEY_CURRENT.public" && \ | ||
gpg --ignore-time-conflict --no-default-keyring --keyring ${DATADOG_APT_KEYRING} --import /tmp/DATADOG_APT_KEY_CURRENT.public | ||
RUN curl -o /tmp/DATADOG_APT_KEY_06462314.public "${DATADOG_APT_KEYS_URL}/DATADOG_APT_KEY_06462314.public" && \ | ||
gpg --ignore-time-conflict --no-default-keyring --keyring ${DATADOG_APT_KEYRING} --import /tmp/DATADOG_APT_KEY_06462314.public | ||
RUN curl -o /tmp/DATADOG_APT_KEY_C0962C7D.public "${DATADOG_APT_KEYS_URL}/DATADOG_APT_KEY_C0962C7D.public" && \ | ||
gpg --ignore-time-conflict --no-default-keyring --keyring ${DATADOG_APT_KEYRING} --import /tmp/DATADOG_APT_KEY_C0962C7D.public | ||
RUN curl -o /tmp/DATADOG_APT_KEY_F14F620E.public "${DATADOG_APT_KEYS_URL}/DATADOG_APT_KEY_F14F620E.public" && \ | ||
gpg --ignore-time-conflict --no-default-keyring --keyring ${DATADOG_APT_KEYRING} --import /tmp/DATADOG_APT_KEY_F14F620E.public | ||
RUN curl -o /tmp/DATADOG_APT_KEY_382E94DE.public "${DATADOG_APT_KEYS_URL}/DATADOG_APT_KEY_382E94DE.public" && \ | ||
gpg --ignore-time-conflict --no-default-keyring --keyring ${DATADOG_APT_KEYRING} --import /tmp/DATADOG_APT_KEY_382E94DE.public | ||
|
||
# Install Datadog Agent | ||
RUN apt-get update && apt-get -y install --reinstall datadog-agent | ||
|
||
# Expose DogStatsD and trace-agent ports | ||
EXPOSE 8125/udp 8126/tcp | ||
|
||
COPY datadog-config/ /etc/datadog-agent/ |
This file contains 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Deployment Flow | ||
In order to perform a deployment, we need to push to a branch that corresponds with a heroku application. The branches | ||
are frick, frack, beta. This then runs a github action that takes care of the deployment. | ||
|
||
# Deployment Details | ||
We use Heroku for deploying our applications. The deployment process is automated via GitHub Actions using a Continuous Deployment (CD) pipeline. Every time we push changes to a branch associated with a specific app (e.g., frick, frack, beta, etc.), the CD.yml GitHub action is triggered, which initiates the deployment process. | ||
|
||
## Deployment Workflow Overview | ||
### Base Container Build: | ||
|
||
First, our base container image is built using the following command: | ||
bash | ||
```shell | ||
docker build -f Dockerfile.commonwealth_base -t commonwealth_base . | ||
``` | ||
This image contains the core setup required by all of our apps, ensuring consistency and reducing redundancy across different services. | ||
### Individual Process Builds: | ||
|
||
After building the base container, the individual process-specific Dockerfiles (e.g., Dockerfile.web, Dockerfile.evm_ce) are built and pushed to Heroku using the following command: | ||
bash | ||
```shell | ||
heroku container:push --recursive -a ${heroku_app_name} | ||
``` | ||
The --recursive flag ensures that all defined processes (web, consumer, evm_ce, etc.) are built and pushed to the appropriate Heroku app. | ||
### Release on Heroku: | ||
|
||
After the container images are successfully pushed, the next step is to release these images to Heroku: | ||
```shell | ||
heroku container:release web evm_ce consumer message_relayer knock -a ${heroku_app_name} | ||
``` | ||
This command releases the defined processes to their respective dynos on Heroku, making the application live. |
This file contains 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
Empty file.
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "chmod u+x scripts/build.sh && ./scripts/build.sh", | ||
"docker-build-commonwealth": "docker build . --target commonwealth --tag commonwealth:latest", | ||
"docker-build-commonwealth": "docker build -f Dockerfile.commonwealth_base --tag commonwealth:latest .", | ||
"chromatic": "chromatic --exit-zero-on-changes", | ||
"clean": "chmod u+x scripts/clean-modules.sh && ./scripts/clean-modules.sh", | ||
"db-all": "pnpm -F commonwealth db-all", | ||
|
@@ -125,7 +125,6 @@ | |
"prettier-plugin-organize-imports": "^4.0.0", | ||
"process": "^0.11.10", | ||
"readline-sync": "^1.4.10", | ||
"sequelize-cli": "^6.2.0", | ||
"sharp": "^0.31.2", | ||
"sinon": "^15.0.4", | ||
"source-map-support": "^0.5.21", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM commonwealth | ||
CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register build/server/workers/commonwealthConsumer/commonwealthConsumer.js |
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM commonwealth | ||
CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register build/server/workers/evmChainEvents/startEvmPolling.js |
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM commonwealth | ||
CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register build/server/workers/knock/knockWorker.js |
2 changes: 2 additions & 0 deletions
2
packages/commonwealth/deploy/dockerfiles/Dockerfile.message_relayer
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM commonwealth | ||
CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register build/server/workers/messageRelayer/messageRelayer.js |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM commonwealth | ||
RUN apt-get update && apt-get install -y curl # Needed for heroku | ||
CMD node --import=extensionless/register build/server/scripts/releasePhaseEnvCheck.js && \ | ||
npx sequelize-cli db:migrate --config server/sequelize.json && \ | ||
node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js |
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM commonwealth | ||
CMD NODE_ENV=production ./datadog-entrypoint.sh node --import=extensionless/register --enable-source-maps ./build/server.js |
10 changes: 10 additions & 0 deletions
10
packages/commonwealth/deploy/environments/.env.public.commonwealth-beta
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
UNLEASH_FRONTEND_SERVER_URL=https://flag.commonwealth.im/api/frontend | ||
UNLEASH_FRONTEND_API_TOKEN=*:development.309ede2a4ac83b15b51c0cd6b55acdc9f4edefeda5b6325e2414f9b0 | ||
HEROKU_APP_NAME=commonwealth-beta | ||
APP_ENV=beta | ||
NODE_ENV=production | ||
KNOCK_PUBLIC_API_KEY=pk_RLg22EIJ6jsuci6c7VvBU59gDQJZeFoeBKlOkgJLWvA | ||
KNOCK_IN_APP_FEED_ID=fc6e68e5-b7b9-49c1-8fab-6dd7e3510ffb | ||
SERVER_URL=https://qa.commonwealth.im | ||
MIXPANEL_DEV_TOKEN=312b6c5fadb9a88d98dc1fb38de5d900 | ||
MAGIC_PUBLISHABLE_KEY=pk_live_B0604AA1B8EEFDB4 |
7 changes: 7 additions & 0 deletions
7
packages/commonwealth/deploy/environments/.env.public.commonwealth-demo
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
UNLEASH_FRONTEND_SERVER_URL=https://flag.commonwealth.im/api/frontend | ||
UNLEASH_FRONTEND_API_TOKEN=*:development.309ede2a4ac83b15b51c0cd6b55acdc9f4edefeda5b6325e2414f9b0 | ||
HEROKU_APP_NAME=commonwealth-demo | ||
APP_ENV=demo | ||
NODE_ENV=production | ||
MIXPANEL_DEV_TOKEN=312b6c5fadb9a88d98dc1fb38de5d900 | ||
MAGIC_PUBLISHABLE_KEY=pk_live_EF89AABAFB87D6F4 |
10 changes: 10 additions & 0 deletions
10
packages/commonwealth/deploy/environments/.env.public.commonwealth-frack
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
UNLEASH_FRONTEND_SERVER_URL=https://flag.commonwealth.im/api/frontend | ||
UNLEASH_FRONTEND_API_TOKEN=*:development.309ede2a4ac83b15b51c0cd6b55acdc9f4edefeda5b6325e2414f9b0 | ||
HEROKU_APP_NAME=commonwealth-frack | ||
APP_ENV=frack | ||
NODE_ENV=production | ||
SERVER_URL=https://commonwealth-frack.herokuapp.com | ||
KNOCK_PUBLIC_API_KEY=pk_EkjqgrIByZo85tIqdBkCmihVBtTB_ixY_37oTG_Au1Y | ||
KNOCK_IN_APP_FEED_ID=fc6e68e5-b7b9-49c1-8fab-6dd7e3510ffb | ||
MIXPANEL_DEV_TOKEN=312b6c5fadb9a88d98dc1fb38de5d900 | ||
MAGIC_PUBLISHABLE_KEY=pk_live_B0604AA1B8EEFDB4 |
8 changes: 8 additions & 0 deletions
8
packages/commonwealth/deploy/environments/.env.public.commonwealth-frick
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
UNLEASH_FRONTEND_SERVER_URL=https://flag.commonwealth.im/api/frontend | ||
UNLEASH_FRONTEND_API_TOKEN=*:development.309ede2a4ac83b15b51c0cd6b55acdc9f4edefeda5b6325e2414f9b0 | ||
HEROKU_APP_NAME=commonwealth-frick | ||
APP_ENV=frick | ||
NODE_ENV=production | ||
SERVER_URL=https://commonwealth-frick.herokuapp.com | ||
MIXPANEL_DEV_TOKEN=312b6c5fadb9a88d98dc1fb38de5d900 | ||
MAGIC_PUBLISHABLE_KEY=pk_live_EF89AABAFB87D6F4 |
9 changes: 9 additions & 0 deletions
9
packages/commonwealth/deploy/environments/.env.public.commonwealthapp
This file contains 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
UNLEASH_FRONTEND_SERVER_URL=https://flag.commonwealth.im/api/frontend | ||
UNLEASH_FRONTEND_API_TOKEN=*:production.b966a7bcb033f291f1151de9e144129eda0c99553b5e8e781ecc72a0 | ||
HEROKU_APP_NAME=commonwealthapp | ||
APP_ENV=production | ||
KNOCK_PUBLIC_API_KEY=pk_ynCCqD_rlxXTO0TvBCYUKYV5BSG5-vHoy451WGDHW5w | ||
KNOCK_IN_APP_FEED_ID=fc6e68e5-b7b9-49c1-8fab-6dd7e3510ffb | ||
NODE_ENV=production | ||
SERVER_URL=https://commonwealth.im | ||
MAGIC_PUBLISHABLE_KEY=pk_live_B0604AA1B8EEFDB4 |
Oops, something went wrong.
Oops, something went wrong.
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.
Did we decide that the max old space script is still needed? If so, perhaps it could be chained here at the
RUN
declaration? e.g../get-max-old-space-size.sh && ./datadog-entrypoint.sh
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.
We can't use the get-max-old-space-size because the docker container does not know at image build time how much memory the container has.
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.
I'm not talking about container build time, but rather container runtime, during the
RUN
step.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.
Oops, for some reason I thought that was the entrypoint 😅
What I meant was the
CMD
step in the other dockerfiles. Nonetheless, LGTM– tweaks can be made later.