From 4581007845665f8e6976ad94cd46673b7595bc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Due=C3=B1as?= Date: Tue, 7 Jun 2022 16:02:14 +0200 Subject: [PATCH] [docker] Create image using released packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the image of Sir Mordred was created downloading the sources of the GrimoireLab components. With this change, the image is generated using the packages defined for a GrimoireLab release. Signed-off-by: Santiago DueƱas --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3fff2256..8caa5a4f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -66,11 +66,11 @@ USER ${DEPLOY_USER} WORKDIR ${DEPLOY_USER_DIR} RUN mkdir -p ${CONF_DIR} && \ - wget https://raw.githubusercontent.com/chaoss/grimoirelab/master/releases/${GRIMOIRELAB_RELEASE} -O ${CONF_DIR}/requirements.cfg && \ + git clone -b ${GRIMOIRELAB_RELEASE} --depth 1 https://github.com/grimoirelab/grimoirelab.git && \ + cp grimoirelab/requirements.txt ${CONF_DIR}/requirements.txt && \ echo ${GRIMOIRELAB_RELEASE} > ${DEPLOY_USER_DIR}/release && \ - git clone https://github.com/grimoirelab/grimoirelab.git --depth 1 && \ echo "Installing and checking GrimoireLab Release" -RUN sudo grimoirelab/utils/build_grimoirelab --build --install --check --install_system --relfile ${CONF_DIR}/requirements.cfg -l debug +RUN sudo pip install -r ${CONF_DIR}/requirements.txt HEALTHCHECK --interval=60s --timeout=6s --retries=1 CMD healthcheck.py -c ${CONF_DIR}/setup.cfg -s 'Exception in Task Manager' || exit 1