Skip to content

Commit

Permalink
upgrade nucliadb-admin-assets to latest before running NucliaDB Admin…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
ebrehault committed Dec 22, 2023
1 parent 86426d4 commit eeb879e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -53,4 +54,4 @@ jobs:
message: |
⚠️ tests failed
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>
username: 'Cypress E2E'
username: 'Cypress E2E'
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit eeb879e

Please sign in to comment.