From 3f2b9130feba11cdcbc797d4f36ac205b8d41a4f Mon Sep 17 00:00:00 2001 From: VictoriaAjala Date: Sun, 30 Oct 2022 00:05:37 +0100 Subject: [PATCH 1/3] run buildfixtures when using docker-init --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3bf64452..10d5a545 100644 --- a/Makefile +++ b/Makefile @@ -59,4 +59,4 @@ docker-exec: docker exec -it guide_latest /bin/bash docker-init: - docker exec -it guide_latest /bin/bash -c "make backend" + docker exec -it guide_latest /bin/bash -c "make backend && make buildfixtures" From a38df7856f6909bb420a7e3b920d0a1701061356 Mon Sep 17 00:00:00 2001 From: VictoriaAjala Date: Sun, 30 Oct 2022 00:10:09 +0100 Subject: [PATCH 2/3] fixes dependency issue with docker-init --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6903edb2..62f88c71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,13 +12,15 @@ RUN npm ci COPY ./apps/frontend/static_src/ ./apps/frontend/static_src/ RUN npm run build - # We use Debian images because they are considered more stable than the alpine -# ones becase they use a different C compiler. Debian images also come with +# ones because they use a different C compiler. Debian images also come with # all useful packages required for image manipulation out of the box. They # however weigh a lot, approx. up to 1.5GiB per built image. FROM python:3.9 as production +# Install dependency needed to run guide init script +RUN apt-get install -y gettext + ARG POETRY_HOME=/opt/poetry ARG POETRY_INSTALL_ARGS="--without dev" From 4bc7b2c6b31a78a94a3c1d6550d1ea431eead459 Mon Sep 17 00:00:00 2001 From: VictoriaAjala Date: Sun, 30 Oct 2022 00:24:15 +0100 Subject: [PATCH 3/3] update before installing gettext --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 62f88c71..49eeaaeb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN npm run build FROM python:3.9 as production # Install dependency needed to run guide init script -RUN apt-get install -y gettext +RUN apt-get update && apt-get install -y gettext ARG POETRY_HOME=/opt/poetry ARG POETRY_INSTALL_ARGS="--without dev"