Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
rbs333 committed May 21, 2024
1 parent 9e54ab7 commit 1e0c79a
Show file tree
Hide file tree
Showing 6 changed files with 2,986 additions and 85 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.9
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:3.11

RUN apt-get update && apt-get install -y libgl1-mesa-glx

ENV PIP_DISABLE_PIP_VERSION_CHECK=on
ENV REDIS_HOST="redis"

Expand All @@ -14,9 +16,11 @@ COPY pyproject.toml poetry.lock /app/
# Copy the notebooks from getting_started
# COPY getting_started /app/getting_started
COPY python-examples/auto_test /app/auto_test
COPY python-examples/auto_test/resources /app/resources


RUN poetry config virtualenvs.create false && poetry install --all-extras

# Run tests
CMD ["poetry", "run", "pytest", "--nbval", "python-examples/auto_test/01_redis-py.ipynb"]
CMD ["tail", "-f", "/dev/null"]
# CMD ["poetry", "run", "pytest", "--nbval", "python-examples/auto_test/01_redis-py.ipynb"]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
# volumes:
# - .:/app
redis:
image: redis/redis-stack-server:latest
ports:
Expand Down
Loading

0 comments on commit 1e0c79a

Please sign in to comment.