Proper support for Poetry's dev dependencies.
This commit is contained in:
parent
4552b817f5
commit
6fbcad7088
2 changed files with 7 additions and 3 deletions
|
@ -11,7 +11,7 @@ WORKDIR /service
|
||||||
COPY pyproject.toml .
|
COPY pyproject.toml .
|
||||||
COPY poetry.lock .
|
COPY poetry.lock .
|
||||||
RUN pip install 'poetry==1.2.2'
|
RUN pip install 'poetry==1.2.2'
|
||||||
RUN poetry config virtualenvs.create false && poetry install
|
RUN poetry config virtualenvs.create false
|
||||||
|
|
||||||
RUN mkdir /images
|
RUN mkdir /images
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ CMD [ "bootstrap/init.sh" ]
|
||||||
# Release container
|
# Release container
|
||||||
FROM base AS release
|
FROM base AS release
|
||||||
|
|
||||||
|
RUN poetry install --without dev
|
||||||
|
|
||||||
COPY bootstrap/supervisord.conf.release /etc/supervisord.conf
|
COPY bootstrap/supervisord.conf.release /etc/supervisord.conf
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,6 +35,8 @@ COPY bootstrap/supervisord.conf.release /etc/supervisord.conf
|
||||||
# Dev container
|
# Dev container
|
||||||
FROM release AS dev
|
FROM release AS dev
|
||||||
|
|
||||||
|
RUN poetry install --with dev
|
||||||
|
|
||||||
# Install our tweaked sqlalchemy-easy-profile
|
# Install our tweaked sqlalchemy-easy-profile
|
||||||
COPY thirdparty/sqlalchemy-easy-profile sqlalchemy-easy-profile
|
COPY thirdparty/sqlalchemy-easy-profile sqlalchemy-easy-profile
|
||||||
RUN cd sqlalchemy-easy-profile && python3 setup.py install
|
RUN cd sqlalchemy-easy-profile && python3 setup.py install
|
||||||
|
@ -42,7 +46,7 @@ COPY bootstrap/supervisord.conf.dev /etc/supervisord.conf
|
||||||
|
|
||||||
###################################################################
|
###################################################################
|
||||||
# Utility container for running commands (tests, most notably)
|
# Utility container for running commands (tests, most notably)
|
||||||
FROM release AS operation
|
FROM dev AS operation
|
||||||
|
|
||||||
# don't run the server itself, just start up the environment and assume we'll exec things from the outside
|
# don't run the server itself, just start up the environment and assume we'll exec things from the outside
|
||||||
CMD sleep infinity
|
CMD sleep infinity
|
||||||
|
|
|
@ -39,9 +39,9 @@ yattag = "*"
|
||||||
webptools = "*"
|
webptools = "*"
|
||||||
supervisor = "*"
|
supervisor = "*"
|
||||||
superlance = "*"
|
superlance = "*"
|
||||||
pytest = "*"
|
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
|
pytest = "*"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue