From 34347c8629650cc9027d01c2099b7ba474a9ba7b Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Wed, 1 Feb 2023 10:18:27 -0600 Subject: [PATCH] [price-service] Remove wasm from readme and workflow (#548) * Remove wasm from readme and workflow * Update CI and Readme with lerna --------- Co-authored-by: Ali Behjati --- .github/workflows/price-server-image-push.yml | 2 +- price_service/server/README.md | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/price-server-image-push.yml b/.github/workflows/price-server-image-push.yml index ef94736f..5a60910b 100644 --- a/.github/workflows/price-server-image-push.yml +++ b/.github/workflows/price-server-image-push.yml @@ -37,7 +37,7 @@ jobs: env: AWS_REGION: us-east-1 - run: | - DOCKER_BUILDKIT=1 docker build -f tilt_devnet/docker_images/Dockerfile.wasm -o type=local,dest=. . + DOCKER_BUILDKIT=1 docker build -t lerna -f tilt_devnet/docker_images/Dockerfile.lerna . DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f price_service/server/Dockerfile . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG env: diff --git a/price_service/server/README.md b/price_service/server/README.md index 60e6ac9f..d9bd3ca4 100644 --- a/price_service/server/README.md +++ b/price_service/server/README.md @@ -46,17 +46,11 @@ price service you should: ## Build an image -First, build the wasm files from [the repo root](../../) like below. This command generates the wasm files necessary -for parsing Pyth messages coming from Wormhole and stores them on [this](../../wormhole_attester/sdk/js) directory. - -``` -docker buildx build -f tilt_devnet/docker_images/Dockerfile.wasm -o type=local,dest=. . -``` - -Then, build the image from [the repo root](../../) like below. It will create a +Build the image from [the repo root](../../) like below. It will create a local image named `pyth_price_server`. ``` +$ docker buildx build -f tilt_devnet/docker_images/Dockerfile.lerna -t lerna . $ docker buildx build -f price_service/server/Dockerfile -t pyth_price_server . ```