This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Qizot
committed
Mar 21, 2020
1 parent
d240d95
commit 0a370d2
Showing
10 changed files
with
69 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__pycache__ | ||
venv |
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,22 @@ | ||
FROM python:3.7-slim | ||
|
||
LABEL Author="Jakub Perżyło" | ||
LABEL version="1.0.0" | ||
|
||
ENV FLASK_APP "scraper" | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN pip install --upgrade pip && \ | ||
pip install -r requirements.txt | ||
|
||
ADD . /app | ||
|
||
|
||
EXPOSE 5000 | ||
|
||
CMD flask run --host=0.0.0.0 | ||
|
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,2 @@ | ||
dist | ||
node_modules |
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,12 @@ | ||
FROM node:10.15.2-alpine as builder | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
COPY package* ./ | ||
COPY tsconfig.json ./ | ||
COPY src/ src/ | ||
RUN npm install | ||
RUN npm run build:prod | ||
|
||
CMD [ "npm", "run", "start:prod" ] | ||
|
||
EXPOSE 4000 |
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 +1,4 @@ | ||
export const PORT = process.env.PORT || 4000; | ||
export const PORT = process.env.PORT || 4000; | ||
export const HOST = process.env.HOST || "localhost"; | ||
export const MONGO_DB = process.env.MONGO_DB || "localhost"; | ||
export const VIRUS_DATA_API = process.env.VIRUS_DATA_API || "localhost:5000"; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3' | ||
services: | ||
mongo: | ||
image: mongo | ||
virus_server: | ||
image: virus_server | ||
build: ./backend/coronavirus-visualizer-api | ||
environment: | ||
- MONGO_DB=mongo | ||
- VIRUS_DATA_API=virus_data_api:5000 | ||
- HOST=0.0.0.0 | ||
ports: | ||
- "4000:4000" | ||
virus_data_api: | ||
image: virus_data_api | ||
build: ./DataScraper | ||
ports: | ||
- "5000:5000" |