From eeb879ee3bc9504f830ef14ce95c5f399e440161 Mon Sep 17 00:00:00 2001 From: Eric BREHAULT Date: Fri, 22 Dec 2023 14:02:04 +0100 Subject: [PATCH] upgrade nucliadb-admin-assets to latest before running NucliaDB Admin tests --- .github/workflows/run-e2e.yml | 5 +++-- Dockerfile | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/.github/workflows/run-e2e.yml b/.github/workflows/run-e2e.yml index 59f3897..19a87ce 100644 --- a/.github/workflows/run-e2e.yml +++ b/.github/workflows/run-e2e.yml @@ -21,11 +21,12 @@ jobs: # Launch NucliaDB in docker - run: | docker pull nuclia/nucliadb:latest + docker build -t nucliadb-server . docker run -p 8080:8080 \ -v nucliadb-standalone:/data \ -e NUCLIA_PUBLIC_URL="https://{zone}.stashify.cloud" \ -e NUA_API_KEY=${{ secrets.NUA_KEY }} \ - nuclia/nucliadb:latest & + nucliadb-server & # Install npm dependencies, cache them correctly and run all Cypress tests - name: Cypress run id: cypress @@ -53,4 +54,4 @@ jobs: message: | ⚠️ tests failed <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}> - username: 'Cypress E2E' \ No newline at end of file + username: 'Cypress E2E' diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ba2160d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM nuclia/nucliadb:latest + +WORKDIR /usr/src/app + +RUN pip install --upgrade nucliadb-admin-assets + +ENV NUA_ZONE=europe-1 +ENV NUA_API_KEY= +ENV NUCLIA_PUBLIC_URL=https://{zone}.nuclia.cloud +ENV PYTHONUNBUFFERED=1 +ENV DRIVER=LOCAL +ENV HTTP_PORT=8080 +ENV INGEST_GRPC_PORT=8060 +ENV TRAIN_GRPC_PORT=8040 + +# HTTP +EXPOSE 8080/tcp +# GRPC +EXPOSE 8060/tcp +# GRPC - TRAIN +EXPOSE 8040/tcp + +CMD ["nucliadb"]