-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating dependencies and docker builds (#461)
* dependency update * fail fast false * pendulum bump
- Loading branch information
Showing
6 changed files
with
33 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tests | ||
scripts | ||
CHANGELOG.md | ||
Dockerfile | ||
docs | ||
pyoxidizer.template.bzl | ||
redis-doc |
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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
FROM python:3 | ||
FROM redis/redis-stack-server:latest | ||
|
||
WORKDIR /iredis | ||
COPY README.md poetry.lock pyproject.toml ./ | ||
COPY iredis ./iredis | ||
|
||
RUN apt-get update && apt-get install -y --allow-unauthenticated \ | ||
redis-server && \ | ||
rm -rf /var/lib/apt/lists/* | ||
COPY . /iredis | ||
|
||
RUN apt-get update --fix-missing | ||
RUN apt-get install -yqq python3 python3-pip python-is-python3 | ||
RUN python3 -m pip install poetry | ||
WORKDIR /iredis | ||
RUN poetry config virtualenvs.create false | ||
RUN poetry build | ||
RUN pip install dist/iredis*.tar.gz | ||
WORKDIR / | ||
RUN rm -rf .cache /var/cache/apt | ||
RUN rm -rf /iredis | ||
|
||
RUN python3 -m venv iredis_env && \ | ||
. iredis_env/bin/activate && \ | ||
pip install poetry && \ | ||
poetry install --no-dev && \ | ||
rm -rf ~/.cache | ||
|
||
CMD ["sh","-c","redis-server --daemonize yes && . iredis_env/bin/activate && iredis"] | ||
CMD ["sh", "-c", "/opt/redis-stack/bin/redis-stack-server --daemonize yes && iredis"] |
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
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