Fix: run was referencing files in a subdirectory.
Fix: Playbook was not importing the default vars. Improvement: Dockerfile casheing should improve.
This commit is contained in:
parent
6d3057bb55
commit
e732354671
@ -28,8 +28,6 @@ RUN \
|
|||||||
FROM python:3.12 AS runner
|
FROM python:3.12 AS runner
|
||||||
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
||||||
|
|
||||||
COPY barker/pyproject.toml /app/pyproject.toml
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y locales && \
|
apt-get install -y locales && \
|
||||||
sed --in-place --expression='s/# en_IN UTF-8/en_IN UTF-8/' /etc/locale.gen && \
|
sed --in-place --expression='s/# en_IN UTF-8/en_IN UTF-8/' /etc/locale.gen && \
|
||||||
@ -46,6 +44,8 @@ RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY barker/pyproject.toml /app/pyproject.toml
|
||||||
|
|
||||||
# Allow installing dev dependencies to run tests
|
# Allow installing dev dependencies to run tests
|
||||||
ARG INSTALL_DEV=false
|
ARG INSTALL_DEV=false
|
||||||
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
|
RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --only main ; fi"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- hosts: barker
|
- hosts: barker
|
||||||
become: true
|
become: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- default
|
- vars/default.yml
|
||||||
- "{{ var_file }}"
|
- "{{ var_file }}"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
gunicorn barker.main:app --worker-class uvicorn.workers.UvicornWorker --config ./barker/gunicorn.conf.py --log-config ./barker/logging.conf
|
gunicorn barker.main:app --worker-class uvicorn.workers.UvicornWorker --config ./gunicorn.conf.py --log-config ./logging.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user