Skip to content

Commit

Permalink
Switch to bkex for oSQTH data
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Sep 14, 2022
1 parent 757e493 commit ba6e3e5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.env
.env
api/privkey.pem
api/cert.pem
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN poetry install --no-dev

COPY ./api /code/api

CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "80"]
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "80", "--ssl-keyfile", "/code/api/privkey.pem", "--ssl-certfile", "/code/api/cert.pem"]
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fastapi = "^0.78.0"
httpx = "^0.23.0"
pendulum = "^2.1.2"
SQLAlchemy = "^1.4.37"
psycopg2 = "^2.9.3"
psycopg2-binary = "^2.9.3"
asyncpg = "^0.25.0"
databases = "^0.6.0"
fastapi-cache2 = "^0.1.8"
Expand Down
6 changes: 4 additions & 2 deletions pipeline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update -y && apt-get install -y openssh-client git cron curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash

RUN apt-get -y install nodejs
RUN apt-get -y install libpq-dev libpq5

# download public key for github.com
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
Expand All @@ -27,8 +28,9 @@ COPY ./meltano.yml .
RUN --mount=type=ssh meltano install

RUN npm i -g graphql-api-to-json-schema npm-cli-login
RUN NPM_USER=${NPM_USER} NPM_PASS=${NPM_PASS} NPM_EMAIL=${NPM_EMAIL} NPM_SCOPE=${NPM_SCOPE} NPM_REGISTRY=https://npm.pkg.github.com npm-cli-login
RUN npm i -g @superkeyio/block-gobbler
# RUN NPM_USER=${NPM_USER} NPM_PASS=${NPM_PASS} NPM_EMAIL=${NPM_EMAIL} NPM_SCOPE=${NPM_SCOPE} NPM_REGISTRY=https://npm.pkg.github.com npm-cli-login
# RUN npm i -g @superkeyio/block-gobbler
RUN npm i -g https://github.com/superkeyio/block-gobbler

# Pin `discovery.yml` manifest by copying cached version to project root
RUN cp -n .meltano/cache/discovery.yml . 2>/dev/null || :
Expand Down
4 changes: 3 additions & 1 deletion pipeline/meltano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ plugins:
quote: USDT
timeframe: 1m
start_date: '2022-02-08T00:00:00Z'
-id: bkex
pairs:
- base: OSQTH
quote: USD
quote: USDT
timeframe: 1m
start_date: '2022-09-08T00:00:00Z'
- id: gateio
Expand Down
1 change: 1 addition & 0 deletions pipeline/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
psycopg2-binary

0 comments on commit ba6e3e5

Please sign in to comment.