[price-pusher] update docker files (#654)

* update docker files

* update package .json

* remove nc

* updated price pusher package name
This commit is contained in:
Dev Kalra 2023-03-03 13:53:43 +05:30 committed by GitHub
parent 5c16987153
commit 53c965481a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 952 additions and 1012 deletions

1928
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,19 @@
FROM node:16-alpine@sha256:72a490e7ed8aed68e16b8dc8f37b5bcc35c5b5c56ee3256effcdee63e2546f93 # Defined in tilt_devnet/docker_images/Dockerfile.lerna
FROM lerna:latest
RUN addgroup -S pyth -g 10001 && adduser -S pyth -G pyth -u 10001 USER root
USER pyth
ARG PRICE_PUSHER_PATH=/usr/src/pyth-evm-price-pusher WORKDIR /home/node/
WORKDIR ${PRICE_PUSHER_PATH} USER 1000
COPY --chown=pyth:pyth . .
RUN npm ci && npm run build && npm cache clean --force # local dependencies
COPY --chown=1000:1000 price_service/client/js price_service/client/js
COPY --chown=1000:1000 price_service/sdk/js price_service/sdk/js
COPY --chown=1000:1000 price_pusher price_pusher
RUN npx lerna run build --scope="@pythnetwork/pyth-price-pusher" --include-dependencies
WORKDIR /home/node/price_pusher
ENTRYPOINT [ "npm", "run", "start" ] ENTRYPOINT [ "npm", "run", "start" ]

View File

@ -58,6 +58,7 @@ services:
restart: always restart: always
command: command:
- "--" - "--"
- "evm"
- "--endpoint" - "--endpoint"
# Replace this with RPC endpoint URL for the EVM network. # Replace this with RPC endpoint URL for the EVM network.
- "https://bsc-dataseed2.binance.org" - "https://bsc-dataseed2.binance.org"

View File

@ -70,4 +70,4 @@ services:
condition: service_healthy condition: service_healthy
configs: configs:
command_config: command_config:
file: ./config.injective.sample.json # Replace this with the path to the configuration file file: ./config.injective.testnet.sample.json # Replace this with the path to the configuration file

View File

@ -1,7 +1,7 @@
{ {
"name": "@pythnetwork/pyth-evm-price-pusher", "name": "@pythnetwork/pyth-price-pusher",
"version": "2.0.2", "version": "3.0.0",
"description": "Pyth EVM Price Pusher", "description": "Pyth Price Pusher",
"homepage": "https://pyth.network", "homepage": "https://pyth.network",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
@ -9,7 +9,7 @@
"lib/**/*" "lib/**/*"
], ],
"bin": { "bin": {
"pyth-evm-price-pusher": "./lib/index.js" "pyth-price-pusher": "./lib/index.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -31,7 +31,8 @@
"pyth", "pyth",
"oracle", "oracle",
"evm", "evm",
"ethereum" "ethereum",
"injective"
], ],
"license": "Apache-2.0", "license": "Apache-2.0",
"devDependencies": { "devDependencies": {