From 9396f606d626f1f478de676a04736ac19a691903 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Mon, 6 May 2024 12:02:22 +1200 Subject: [PATCH] fix(cli): Copy static files into cli container for health smoke test. (#3257) #### Motivation Running smoke test inside basemaps container missing static files for health endpoint test. #### Modification Copy the static files into basemaps container. #### Checklist _If not applicable, provide explanation of why._ - [ ] Tests updated - [ ] Docs updated - [ ] Issue linked in Title --- .github/workflows/containers.yml | 1 + packages/cli/Dockerfile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 5c4ebf6c4..18b5b54ff 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -50,6 +50,7 @@ jobs: # Files are packed into the base directory cp *.tgz packages/server/ cp *.tgz packages/cli/ + cp -r packages/lambda-tiler/static/ packages/cli/ - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin diff --git a/packages/cli/Dockerfile b/packages/cli/Dockerfile index f60416847..3ba8ea493 100644 --- a/packages/cli/Dockerfile +++ b/packages/cli/Dockerfile @@ -22,6 +22,9 @@ COPY ./basemaps-landing*.tgz /app/ COPY ./basemaps-cogify*.tgz /app/ COPY ./basemaps-smoke*.tgz /app/ +# Copy the static files for v1/health check +COPY ./static/ /app/static/ + RUN npm install ./basemaps-landing*.tgz ./basemaps-cogify*.tgz ./basemaps-smoke*.tgz COPY dist/index.cjs /app/