-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added deploy scripts for remaining apps
- Loading branch information
1 parent
9c54302
commit 845fad3
Showing
16 changed files
with
94 additions
and
65 deletions.
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
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,26 @@ | ||
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 |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM commonwealth_base | ||
CMD node --import=extensionless/register build/server/workers/commonwealthConsumer/commonwealthConsumer.js | ||
FROM commonwealth | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM commonwealth_base | ||
CMD node --import=extensionless/register build/server/workers/evmChainEvents/startEvmPolling.js | ||
FROM commonwealth | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM commonwealth_base | ||
CMD node --import=extensionless/register build/server/workers/knock/knockWorker.js | ||
FROM commonwealth | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production node --import=extensionless/register build/server/workers/knock/knockWorker.js |
4 changes: 2 additions & 2 deletions
4
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM commonwealth_base | ||
CMD node --import=extensionless/register build/server/workers/messageRelayer/messageRelayer.js | ||
FROM commonwealth | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production 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
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 |
---|---|---|
@@ -1,37 +1,2 @@ | ||
FROM commonwealth_base | ||
|
||
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 the Datadog Agent | ||
RUN apt-get update && apt-get -y --force-yes install --reinstall datadog-agent | ||
|
||
# Copy entrypoint | ||
COPY ./scripts/heroku-entrypoint.sh /prod/commonwealth | ||
|
||
RUN chmod +x /prod/commonwealth/heroku-entrypoint.sh | ||
|
||
# Copy your Datadog configuration | ||
COPY datadog-config/ /etc/datadog-agent/ | ||
|
||
# Expose DogStatsD and trace-agent ports | ||
EXPOSE 8125/udp 8126/tcp | ||
|
||
CMD ["./heroku-entrypoint.sh"] | ||
FROM commonwealth | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production node --import=extensionless/register --enable-source-maps" ./build/server.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 discord-bot | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production node --import=extensionless/register ./build/discord-consumer/discordConsumer.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 discord-bot | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production node --import=extensionless/register ./build/discord-listener/discordListener.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,3 @@ | ||
FROM discord-bot | ||
RUN apt-get update && apt-get install -y curl | ||
CMD node --import=extensionless/register ./build/scripts/releasePhaseEnvCheck.js |
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/snapshot-listener/deploy/dockerfiles/Dockerfile.release
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,3 @@ | ||
FROM snapshot-listener | ||
RUN apt-get update && apt-get install | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production node --import=extensionless/register ./build/scripts/releasePhaseEnvCheck.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 snapshot-listener | ||
CMD ./datadog-entrypoint.sh NODE_ENV=production --import=extensionless/register --enable-source-maps ./build/src/index.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
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