Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Dockerized #381

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from
Open

Dockerized #381

wants to merge 15 commits into from

Conversation

manicprone
Copy link
Contributor

No description provided.

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Dec 3, 2021
* WIP - Adding back migrate check, working to unify services into one image

* Unified utilities into one service

* Renamed to api-service

* Renaming to KEEP_ALIVE

* Removing obsolete dockerfile

* Pass full opts object to migrate

* Renaming to service.dockerfile

* Adding capabilities for running full system with docker compose

* Invoking all services to run as full

* Completed full system lifecycle, updated README

* Formatting tweak to README

* Reordered sections in README

* Only trigger ci/cd tests on relevant changes

* Fix on: syntax in test action
Copy link
Member

@bradleySuira bradleySuira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trafico-bot trafico-bot bot added ✅ Approved Pull Request has been approved and can be merged and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Dec 7, 2021
Copy link
Collaborator

@devaraj-s devaraj-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ...

One suggestion we can have one docker file and create two builds in two ways one passing build params or we can
`FROM node:17-alpine3.12 as base

Create app directory

WORKDIR /usr/src/app

Install app dependencies

A wildcard is used to ensure both package.json AND package-lock.json are copied

where available (npm@5+)

COPY package*.json ./

RUN npm install

If you are building your code for production

RUN npm ci --only=production

Bundle app source

COPY . .

-------------------- API release ----------------

From base as release-api
EXPOSE 8080
CMD ["npm","run","api"]

-------------------- API scraper----------------

From base as release-scraper
CMD ["npm","run","woker"]`
docker build --target release-api -t atomicagent-api:latest .

docker build --target release-scraper -t atomicagent-worker:latest .

@trafico-bot trafico-bot bot added 🔍 Ready for Review Pull Request is not reviewed yet and removed ✅ Approved Pull Request has been approved and can be merged labels Dec 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔍 Ready for Review Pull Request is not reviewed yet size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants