Skip to content
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

Docker test 2 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

.yarn

# PM2 config

ecosystem.config.js
Expand Down
33 changes: 29 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,41 @@ RUN curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-c
RUN npm install -g yarn pm2
RUN apt -y install unzip

WORKDIR crusher
COPY package*.json ./
COPY yarn*.lock ./
COPY tsconfig.json ./

COPY ./packages/code-generator/package.json ./packages/code-generator/
COPY ./packages/crusher-app/package.json ./packages/crusher-app/
COPY ./packages/crusher-app/yarn.lock ./packages/crusher-app/
COPY ./packages/dyson/yarn.lock ./packages/dyson/
COPY ./packages/crusher-server/package.json ./packages/crusher-server/
COPY ./packages/crusher-shared/ ./packages/crusher-shared/
COPY ./packages/dyson/package.json ./packages/dyson/
COPY ./packages/electron-app/package.json ./packages/electron-app/
COPY ./packages/runner-utils/ ./packages/runner-utils/
COPY ./packages/test-runner/package.json ./packages/test-runner/
COPY ./packages/unique-selector/package.json ./packages/unique-selector/
COPY ./packages/video-processor/package.json ./packages/video-processor/
COPY ./scripts ./scripts
COPY ./packages/electron-app/scripts ./packages/electron-app/scripts
COPY ./patches ./patches

RUN apt-get install -y git && apt-get install -y wget
RUN yarn set version berry
RUN yarn install

COPY . ./crusher
WORKDIR crusher
# RUN cp ./ecosystem.config.sample.js ecosystem.config.js
# WORKDIR crusher


# # RUN mkdir db && curl "$SCHEMA_OBJ_URL" > db/schema.sql

RUN yarn set version berry
RUN yarn install
RUN yarn setup:ee
# RUN yarn set version berry
# RUN yarn install
# RUN yarn setup:ee


# ENV STANDALONE_APP_URL=https://$GIT_BRANCH.test-app.crusher.dev \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"start": "pm2 start",
"log:app": "pm2 logs crusher-app",
"lint": "lerna run prettify",
"postinstall": "patch-package && sh scripts/download-binaries.sh && yarn workspace crusher-runner-utils build",
"postinstall": "",
"docker:heroku": "cd docker/oss/ && docker-compose up --build -d",
"docker:build:heroku": "sh scripts/build/build-oss.sh && yarn docker:heroku",
"db:migration": "node setup/dbMigration.js"
Expand Down
Loading