[price-pusher] update docker files (#654)
* update docker files * update package .json * remove nc * updated price pusher package name
This commit is contained in:
parent
5c16987153
commit
53c965481a
File diff suppressed because it is too large
Load Diff
|
@ -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" ]
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue