-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
92 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM python:3.11 | ||
|
||
ENV PIP_DISABLE_PIP_VERSION_CHECK=on | ||
ENV REDIS_HOST="redis" | ||
|
||
RUN pip install poetry | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Install project dependencies | ||
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 | ||
|
||
|
||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3' | ||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- .:/app | ||
redis: | ||
image: redis/redis-stack-server:latest | ||
ports: | ||
- "6379:6379" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters