Skip to content

Commit

Permalink
ci: change time freeze agent platform and app path for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-t-97 committed Jun 27, 2024
1 parent 30a0ed7 commit 46575ac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ NODE_ENV=production
ENVIRONMENT_NAME=docker
REDIS_HOST=redis
REDIS_PORT=6379
APP_PATH=/Users/apple/repos/template/node-express-graphql-template
# ENABLE_DEDUP=true
APP_PATH=/home/runner/work/node-express-graphql-template/node-express-graphql-template
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM node:18
ARG ENVIRONMENT_NAME
ARG BUILD_NAME
ARG APP_PATH
ARG PLATFORM
ENV NODE_OPTIONS=--openssl-legacy-provider

# RUN mkdir -p /app-build
Expand All @@ -19,6 +20,7 @@ FROM node:18-alpine
ARG ENVIRONMENT_NAME
ARG BUILD_NAME
ARG APP_PATH
ARG PLATFORM
ENV NODE_OPTIONS=--openssl-legacy-provider

WORKDIR ${APP_PATH}
Expand All @@ -30,9 +32,9 @@ ADD scripts/migrate-and-run.sh ${APP_PATH}/
ADD package.json ${APP_PATH}/
ADD . ./
COPY --from=0 ${APP_PATH}/dist ${APP_PATH}/dist
ADD https://keploy-enterprise.s3.us-west-2.amazonaws.com/releases/latest/assets/freeze_time_arm64.so /lib/keploy/freeze_time_arm64.so
RUN chmod +x /lib/keploy/freeze_time_arm64.so
ENV LD_PRELOAD=/lib/keploy/freeze_time_arm64.so
ADD https://keploy-enterprise.s3.us-west-2.amazonaws.com/releases/latest/assets/freeze_time_$PLATFORM.so /lib/keploy/freeze_time_$PLATFORM.so
RUN chmod +x /lib/keploy/freeze_time_$PLATFORM.so
ENV LD_PRELOAD=/lib/keploy/freeze_time_$PLATFORM.so

STOPSIGNAL SIGINT

Expand Down
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
args:
ENVIRONMENT_NAME: .docker
BUILD_NAME: docker
APP_PATH: /Users/apple/repos/template/node-express-graphql-template
PLATFORM: amd64
APP_PATH: ${APP_PATH}
restart: always
depends_on:
- db_postgres
Expand All @@ -30,7 +31,5 @@ services:
env_file:
- ./.env.docker
volumes:
- type: bind
source: ./dedupData.yaml
target: ${APP_PATH}/dedupData.yaml
- ${APP_PATH}/dedupData.yaml:${APP_PATH}.dedupData.yaml
stop_grace_period: 50s

0 comments on commit 46575ac

Please sign in to comment.