From 0047d38e0734729b5d53c1f7921b3c004b14da95 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Alapont Date: Tue, 31 Jan 2023 18:17:03 -0600 Subject: [PATCH 1/2] Remove wasm from readme and workflow --- .github/workflows/price-server-image-push.yml | 1 - price_service/server/README.md | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/price-server-image-push.yml b/.github/workflows/price-server-image-push.yml index ef94736f36..ebf34baf76 100644 --- a/.github/workflows/price-server-image-push.yml +++ b/.github/workflows/price-server-image-push.yml @@ -37,7 +37,6 @@ 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 $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 60e6ac9f3b..a7168ec855 100644 --- a/price_service/server/README.md +++ b/price_service/server/README.md @@ -46,14 +46,7 @@ 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`. ``` From 5b7ee28fdc82038aef8d1ec5a8fb274b1352eb2b Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Wed, 1 Feb 2023 14:04:53 +0000 Subject: [PATCH 2/2] Update CI and Readme with lerna --- .github/workflows/price-server-image-push.yml | 1 + price_service/server/README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/price-server-image-push.yml b/.github/workflows/price-server-image-push.yml index ebf34baf76..5a60910b94 100644 --- a/.github/workflows/price-server-image-push.yml +++ b/.github/workflows/price-server-image-push.yml @@ -37,6 +37,7 @@ jobs: env: AWS_REGION: us-east-1 - run: | + 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 a7168ec855..d9bd3ca4f9 100644 --- a/price_service/server/README.md +++ b/price_service/server/README.md @@ -50,6 +50,7 @@ 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 . ```